mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-21 23:25:07 +00:00
.
parent
1614087827
commit
f787152558
7
FAQ.md
7
FAQ.md
@ -126,7 +126,12 @@ ccls will save a file in `cacheDirectory`:
|
||||
...
|
||||
```
|
||||
|
||||
#### AST deserialisation error when precompiled headers are used
|
||||
### System header completion
|
||||
|
||||
* `print '%clang\n%cpp -std=gnu++14\n-isystem/usr/include' > .ccls`
|
||||
* `(setq ccls-extra-init-params '(:clang (:extraArgs ["-isystem", "/usr/include"])))`
|
||||
|
||||
### AST deserialisation error when precompiled headers are used
|
||||
|
||||
Unfortunately, libclang is very picky when it comes to precompiled headers. Even if your system compiler and the bundled libclang are the same versions there will be problems. Namely, to avoid AST deresialisation errors while using PCH, you need to create them with the same toolchain which will be used inside ccls for completions.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user