Where can I find a complete list of clang flags? There are some, like -include-pch, that don\'t appear to be even listed in the man page. :(
I know that GCC uses som
I don't know if this is exactly what you want, maybe more options are described elsewhere but I think you are interested by the Clang frontend options, by default the options displayed seem to describe the "GCC-compatible driver".
clang -cc1 --help
should give you what you want.
For Clang, they are listed in the diagnostics reference, which can be found on the documentation website here
I wonder no one mentioned this, there are many hidden options in LLVM.
clang --help-hidden
opt --help-hidden