mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-21 23:25:07 +00:00
fix %h example since you can't put two options on the same line
parent
5f260563cd
commit
06ea6db0f9
@ -157,7 +157,12 @@ Objective-C (`%objective-c`), or Objective-C++ (`%objective-c++`) files.
|
||||
This argument should be added only when indexing C header files (`%h`: `*.h`) or C++
|
||||
header files (`%hpp`: `*.hh` `*.hpp`). Note, `*.h` files are considered as C, not C++.
|
||||
|
||||
You may add a line `%h -x c++-header` to make every `*.h` parsed as C++.
|
||||
You may add these lines to make every `*.h` parsed as C++:
|
||||
|
||||
```
|
||||
%h -x
|
||||
%h c++-header
|
||||
```
|
||||
|
||||
Note, if your project has both C and C++ files, `a.h`'s flags may be inferred from a C file and thus parsed as C.
|
||||
You may run into parsing errors like `unknown type name 'class'`.
|
||||
|
Loading…
Reference in New Issue
Block a user