diff --git a/Project-Setup.md b/Project-Setup.md index 94579db..9d10459 100644 --- a/Project-Setup.md +++ b/Project-Setup.md @@ -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'`.