From 06ea6db0f9916798a7c5df8eb75b87f0570aef3a Mon Sep 17 00:00:00 2001 From: Joel Hock Date: Tue, 9 Apr 2019 10:03:22 -0500 Subject: [PATCH] fix %h example since you can't put two options on the same line --- Project-Setup.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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'`.