Complete list of clang flags?

后端 未结 3 1754
無奈伤痛
無奈伤痛 2020-12-04 07:23

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

相关标签:
3条回答
  • 2020-12-04 07:49

    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.

    0 讨论(0)
  • 2020-12-04 07:59

    For Clang, they are listed in the diagnostics reference, which can be found on the documentation website here

    0 讨论(0)
  • 2020-12-04 08:08

    I wonder no one mentioned this, there are many hidden options in LLVM.

    clang --help-hidden
    opt --help-hidden
    
    0 讨论(0)
提交回复
热议问题