fix %h example since you can't put two options on the same line

Joel Hock 2019-04-09 10:03:22 -05:00 committed by Fangrui Song
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'`.