llvm / clangd-www

Apache License 2.0
27 stars 53 forks source link

Fix syntax for including individual header in FAQ #98

Closed Liamolucko closed 8 months ago

Liamolucko commented 8 months ago

At https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-include-file, you can see that only --include supports being used like --include=foo.h. -include can only be used like -includefoo.h, and so trying to follow the instructions and use -include=* doesn't do anything.

I'm kind of surprised that I didn't get any errors trying to use -include=*, clangd seems to be suppressing them or something.