clang标志的完整列表? [英] Complete list of clang flags?
问题描述
我在哪里可以找到ang标志的完整列表?有一些,像-include-pch,似乎甚至没有列在手册页。 :(
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. :(
我知道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 by the Clang frontend options, by default the options displayed seem to describe the "GCC-compatible driver".
clang -cc1 --help
应该给你你想要的。
这篇关于clang标志的完整列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!