FAQ: add --include

Fangrui Song 2019-08-06 01:07:40 -07:00
parent 3ce346092f
commit d8b0fc0ac0

8
FAQ.md

@ -210,6 +210,14 @@ One approach ccls explored before was to compile its import file `a.c`, but it
caused severe performance issues for some projects. For smaller files this
does not matter and checking for a header guard may help the situation.
If missing declarations are known to be provided by `base.h`, you can specify `--include`,
e.g.
```
%compile_commands.json
%h %hpp --include=base.h
```
## Multi-version headers
A header can be included in different translation units with different