Fangrui Song
e1398ff319
.
2019-10-23 21:56:50 -07:00
Fangrui Song
b839389f77
Resurrection of ccls
2019-10-23 21:56:50 -07:00
Pavel Davydov
fdba724f07
Add comment with short issue description. ( #545 )
2019-10-23 21:56:50 -07:00
Pavel Davydov
a6e62aa28c
Blacklist '-include' and '-include-pch' flags. ( #545 )
2019-10-23 21:56:50 -07:00
Patrick Reisert
9ba87673b8
Ignore cl's -showIncludes
2019-10-23 21:56:50 -07:00
Boris Staletic
39fbd1a2d5
Make overridden flags persistent
...
didOpen can override flags from compilation database.
didSave was able to reset the flags back.
This makes sure that the overridden flags persist.
2019-10-23 21:56:50 -07:00
Jacob Dufault
db7e25c542
Reformat
2019-10-23 21:56:50 -07:00
Jacob Dufault
259d30ef8a
Don't use std::mismatch. Unit tests crash on Windows.
2019-10-23 21:56:50 -07:00
Jacob Dufault
997bcdf05a
Restore call to GetPlatformClangArguments
2019-10-23 21:56:50 -07:00
Fangrui Song
90329e5453
Simplify ComputeGuessScore
2019-10-23 21:56:50 -07:00
Boris Staletic
193d42ea78
Make CL mode detection fool-proof ( #528 )
2019-10-23 21:56:50 -07:00
Boris Staletic
13cccda781
Add -idirafter ot kPathArgs ( #529 )
2019-10-23 21:56:50 -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
89d45fb48a
Reload .cquery compile_commands.json upon workspace/didChangeConfiguration. fix #378
...
And backport https://github.com/waf-project/waf/pull/2127
2018-03-11 15:15:15 -07:00
DaanDeMeyer
9b3ec699e0
fix windows relative path include dirs ( #501 )
...
* Only do path normalization on clang-cl + clang-format
* Improve clang-cl checking + add /I to args that could be followed by a relative path + add two test cases
2018-03-11 10:08:41 -07:00
Fangrui Song
2a7117e6e5
Fix hierarchical .cquery
2018-03-10 19:51:08 -08:00
Daan De Meyer
6b167e7773
remove unnecessary include
2018-03-06 13:15:37 -08:00
Daan De Meyer
46bc43acc4
Add unit test for IsWindowsAbsolutePath and remove explitic true/false checks (! instead)
2018-03-06 13:15:37 -08:00
Daan De Meyer
26e50e695d
Add unit test for IsWindowsAbsolutePath
2018-03-06 13:15:37 -08:00
Daan De Meyer
99904874ca
Fix libclang generic error on Windows
2018-03-06 13:15:37 -08:00
Fangrui Song
df95cd4780
Fix #487 dead loop in hierarchical .cquery
2018-03-03 14:43:51 -08:00
Chao Shen
e03a3a8e7c
Add dummy compiler argument.
2018-03-01 19:12:59 -08:00
Jacob Dufault
78fe0c7ebe
Better comment in project.cc
2018-02-27 23:08:23 -08:00
Fangrui Song
b53c41408e
Support %c %cpp %clang in clang command line and remove -std=gnu11 -std=gnu++14 defaults
...
If you want to mix C/C++ source files in a `.cquery` project:
echo -e '%clang\n%cpp -std=gnu++14' > .cquery
2018-02-24 15:21:32 -08:00
Fangrui Song
61b5ef4fa0
Reduce <iostream>; don't include rapidjson in language_server_api.h; add role to lsReferenceContext
2018-02-22 14:39:46 -08:00
Fangrui Song
cfa0308ff6
Update tests
2018-02-22 08:54:05 -08:00
Fangrui Song
b9fcbddc6d
Use -working-directory=
2018-02-22 08:50:49 -08:00
scturtle
319cec6e0a
fix ci
2018-02-22 17:02:00 +08:00
Jacob Dufault
01fe19f280
Format code
2018-02-21 23:34:32 -08:00
Fangrui Song
702cdbe9bb
Group initialization options and rename $cquery/typeHierarchyTree to $cquery/inheritanceHierarchy
2018-02-21 21:57:15 -08:00
Fangrui Song
20d1636024
Support clang-cl and cl.exe
2018-02-21 00:24:34 -08:00
Fangrui Song
40233104a6
Fix GCC __wur
2018-02-19 19:06:48 -08:00
Fangrui Song
3f4b727b4b
Remove -xc -xc++; add -std=gnu11 -std=gnu++14 only in .cquery mode and when --driver-mode is unspecified
2018-02-19 18:23:30 -08:00
Fangrui Song
e83fce65c2
Add loose mode in project.cc
2018-02-19 17:19:50 -08: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
Boris Staletic
be4d37dac3
Fix integer sign comparison
2018-02-18 09:10:27 -08:00
Fangrui Song
7e45983d6d
Don't store -fsyntax-only in compilation entries
...
There is a FIXME about the usage of -fsyntax-only in clang::createInvocationFromCommandLine
2018-02-14 23:02:37 -08:00
Jacob Dufault
aba38a9da1
Ask user for relevant diagnostics when clang translation unit creation fails.
...
Closes issue #450 .
2018-02-13 21:23:35 -08:00
Fangrui Song
9b0256355e
Address ODR violation spot by @Riatre and work around .o .a in compile_commands.json
2018-02-07 10:27:30 -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
Jacob Dufault
a392301be3
Format
2018-01-29 16:27:43 -08:00
Jacob Dufault
3f4866208f
Fix unit tests properly
2018-01-24 10:42:09 -08:00
Fangrui Song
549f4f3674
Fix --test-unit
2018-01-24 10:26:01 -08:00
Snibod
69d439ae8d
Detect Windows absolute paths in LoadCompilationEntriesFromDirectory
2018-01-21 07:44:35 -08:00
Fangrui Song
bc28bfef45
Cleanup
2018-01-20 22:55:29 -08:00
Fangrui Song
b305beb419
Address nitpicking
2018-01-19 19:05:26 -08:00
Fangrui Song
9b8a0b01e6
Recognize .exe in GetCompilationEntryFromCompileCommandEntry
2018-01-18 09:12:55 -08:00
Fangrui Song
98fb9ee821
.
2018-01-15 17:38:28 -08:00
Fangrui Song
22aa939d3d
Fix null pointer dereference but .cquery + header only still does not work
2018-01-15 17:30:26 -08:00