mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
FAQ: add --include
parent
3ce346092f
commit
d8b0fc0ac0
8
FAQ.md
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
|
||||
|
Loading…
Reference in New Issue
Block a user