.

Fangrui Song 2018-05-21 21:42:40 -07:00
parent 1614087827
commit f787152558

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.