mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-21 23:25:07 +00:00
Update README.md
This commit is contained in:
parent
592ef1c3cf
commit
1b2219f509
22
README.md
22
README.md
@ -52,6 +52,28 @@ If you run into issues, you can view debug output by running the
|
||||
|
||||
## Project setup
|
||||
|
||||
### System includes
|
||||
|
||||
cquery will likely fail to resolve system includes like `<vector>` unless the include path is updated to point to them. Add the system include paths to `cquery.extraClangArguments`. For example,
|
||||
|
||||
```js
|
||||
{
|
||||
// ...
|
||||
"cquery.extraClangArguments": [
|
||||
// Generated by running the following in a Chrome checkout:
|
||||
// $ ./third_party/llvm-build/Release+Asserts/bin/clang++ -v ash/debug.cc
|
||||
"-isystem/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8",
|
||||
"-isystem/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8",
|
||||
"-isystem/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward",
|
||||
"-isystem/usr/local/include",
|
||||
"-isystem/work/chrome/src/third_party/llvm-build/Release+Asserts/lib/clang/5.0.0/include",
|
||||
"-isystem/usr/include/x86_64-linux-gnu",
|
||||
"-isystem/usr/include",
|
||||
],
|
||||
// ...
|
||||
}
|
||||
```
|
||||
|
||||
### compile_commands.json (Best)
|
||||
|
||||
To get the most accurate index possible, you can give cquery a compilation
|
||||
|
Loading…
Reference in New Issue
Block a user