lang语标志的完整列表 [英] Complete list of Clang flags
问题描述
在哪里可以找到Clang标志的完整列表?
Where can I find a complete list of Clang flags?
有些内容,例如 -include-pch
,甚至没有在手册页中列出.:(
There are some, like -include-pch
, that don't appear to be even listed in the man page. :(
我知道GCC使用了一些相同的标志,但是它不包括 -Os
之类的文档,我相信这些文档仅在Clang中可用.在哪里可以找到一个统一的所有Clang选项的列表?
I know that GCC uses some of the same flags, but it doesn't include documentation for stuff like -Os
which I believe is only available in Clang. Is there a place where I can find a single, consolidated list of all the Clang options ever?
推荐答案
我不知道这是否正是您想要的.也许其他地方介绍了更多选项,但我认为您对Clang前端选项感兴趣.默认情况下,显示的选项似乎描述了"GCC兼容驱动程序".
I don't know if this is exactly what you want. Maybe more options are described elsewhere, but I think you are interested in the Clang frontend options. By default, the options displayed seem to describe the "GCC-compatible driver".
clang -cc1 --help
应该会给您您想要的东西.
clang -cc1 --help
should give you what you want.
这篇关于lang语标志的完整列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!