From d8b0fc0ac0229a38c265abd7c6aa0daed3ee551e Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 6 Aug 2019 01:07:40 -0700 Subject: [PATCH] FAQ: add --include --- FAQ.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/FAQ.md b/FAQ.md index 0c8408e..9cc300d 100644 --- a/FAQ.md +++ b/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