Fangrui Song
d3a36a4ae6
Use llvm::cl and simplify main.cc import_pipeline.cc
2018-05-13 12:08:33 -07:00
Fangrui Song
224ba97f27
Use clang+llvm C++ in cmake; parse args with clang driver
2018-05-13 01:13:14 -07:00
Fangrui Song
d821ac34d8
Merge {timestamp_manager,iindexer}.{cc,h}; remove standard_includes.*; use last_write_time
2018-04-28 23:37:55 -07:00
Fangrui Song
6e68e9edbd
Simplify
2018-04-07 21:04:20 -07:00
Fangrui Song
1dc55843e7
Remove unused fs code.
2018-04-04 10:48:13 -07:00
Fangrui Song
f8a816d110
.
2018-03-31 09:07:53 -07:00
Fangrui Song
da649891ae
Resurrection of ccls
2018-03-30 22:02:26 -07:00
Jacob Dufault
b5bd29b702
Restore platform arguments
2018-03-19 16:25:35 -07:00
Fangrui Song
cebd6bb7c7
Remove platform arguments, update Travis & AppVeyor to use clang+llvm 6.0.0
...
Close #509
2018-03-13 17:39:06 -07:00
Fangrui Song
3a752a3c8f
Adjust order of GetPlatformClangArguments
2018-03-11 22:13:17 -07:00
Fangrui Song
f9d7361953
Add Config::compilationDatabaseCommand
...
If specified, this is an external command that provides the JSON compilation database, instead of compile_commands.json
2018-02-19 16:20:02 -08:00
Riatre Foo
54c587a700
Look for .cquery in any directory above the source file in the hierarchy. ( #409 )
...
* Look for .cquery in any directory above the source file in the hierarchy.
Currently cquery only reads compiler arguments (.cquery) from project
root. Under some circumstances (e.g. remote compiling), generating a
compilation database with correct path in it is non-trivial, and
allowing per directory compile arguments usually helps.
* unused var buf
2018-02-03 13:16:38 -08:00
Jan Niklas Hasse
358c001d3c
Don't use MSVC specific exception handler for MinGW
2018-01-23 10:01:10 -08:00
Jacob Dufault
54394ed868
Format
2018-01-10 18:43:01 -08:00
Fangrui Song
0a7b9209df
Add TraceMe() to main()
...
On POSIX systems, you may set CQUERY_TRACEME=1 before running your editor.
cquery will inherit that environment variable and stop itself at the start of main().
2018-01-06 23:42:45 -08:00
Jacob Dufault
31c7fddf3d
More work to fix AppVeyor
2018-01-03 18:32:15 -08:00
Jacob Dufault
0b53c871dc
Remove platform specific mutex/shared memory
2018-01-02 01:37:39 -06:00
Fangrui Song
aca8e42033
Use --bundled-clang=5.0.1 in appveyor ( #212 )
2017-12-31 17:21:35 -08:00
Jacob Dufault
fb491e6c6d
Format using clang format 4.0.0
2017-12-23 08:33:26 -08:00
Jacob Dufault
b4b45d36b5
Only run Objective-C tests on Apple platforms
2017-12-22 09:07:21 -08:00
Jacob Dufault
3d4ebcd7ee
Update tests for llvm 4
2017-12-18 20:40:12 -08:00
Jacob Dufault
883f886d2a
Make sure GetExecutablePath is normalized on windows.
2017-12-15 21:18:23 -08:00
Chen
f3f7bc26cd
Better default resource dir heuristics: use system resource dir with system clang and relative path to resource dir with bundled clang ( #137 )
2017-12-14 14:35:21 -08:00
Jacob Dufault
58f2107714
Inject -resource-dir automatically.
2017-10-24 18:02:15 -07:00
Jacob Dufault
f5314b62b1
Reformat to Chromium style.
2017-09-21 18:14:57 -07:00
Jacob Dufault
3f44307268
Call malloc_trim(0) on Linux
2017-08-17 11:02:47 -07:00
Jacob Dufault
7901653698
Make sure file exists before importing it.
2017-08-15 22:39:50 -07:00
Jacob Dufault
a9bac06b83
Add MoveFileTo
2017-07-28 17:08:18 -07:00
Jacob Dufault
c37396a36d
First pass at logging using loguru
2017-07-27 19:14:46 -07:00
Jacob Dufault
37787290cb
Make sure every include candidate is unique w.r.t. absolute path.
...
Also do not follow symlinks when iterating a directory.
2017-05-23 00:24:14 -07:00
Jacob Dufault
8910d0a13e
Fix warnings (almost all numeric cast-related)
2017-05-21 16:22:00 -07:00
Jacob Dufault
7741991b72
Simplify threading model a bit.
2017-04-23 13:19:09 -07:00
Jacob Dufault
11d6623938
Update WorkingFile indexed content correctly.
...
We copy the file contents we indexed over to the index cache folder. Then we load those file contents into the WorkingFile instance as needed.
This means code lens should never get out of sync, as the index buffer cache will always be correct.
2017-04-20 23:32:18 -07:00
Jacob Dufault
d83b1591a4
Serialized indexes are now versioned. Old versions are not imported.
2017-04-19 23:02:24 -07:00
Jacob Dufault
b4fb350140
Include file modification time in index
2017-04-19 21:57:44 -07:00
Jacob Dufault
2d4b910836
Allow configuration of cache directory. Use a good default value as well.
2017-04-17 20:02:41 -07:00
Jacob Dufault
9d8c027cfb
Set thread names. Fix initialization race condition when not using shared memory.
2017-04-16 15:48:54 -07:00
Jacob Dufault
c0fb407447
Cross-process support can now be disabled.
2017-04-16 14:49:48 -07:00
Jacob Dufault
71d1b1ffc6
Implement textDocument/documentHighlight
2017-04-13 23:43:50 -07:00
Jacob Dufault
527439b7c2
WIP on updating index; locations still broken
2017-04-09 17:08:54 -07:00
Jacob Dufault
a19d4f732f
wip
2017-03-28 23:33:38 -07:00
Jacob Dufault
cf1012b98c
small fixes
2017-03-27 22:27:06 -07:00
Jacob Dufault
876296d62f
more code completion work
2017-03-26 21:04:48 -07:00
Jacob Dufault
b6978b1a38
move platform init code to platform
2017-03-25 13:27:28 -07:00
Jacob Dufault
695048baa7
move code into src
2017-03-25 13:15:00 -07:00
Jacob Dufault
cd4d63dd9c
Small winapi fixes
2017-03-20 23:03:59 -07:00
Jacob Dufault
4bd284ee7e
Format
2017-03-19 15:08:36 -07:00
Jacob Dufault
4cec26ae12
WIP
2017-03-19 15:06:22 -07:00