Open llvmbot opened 4 years ago
Seems like a reasonable request.
In the mean time, you can use "diagtool list-warnings" for this (but 'diagtool' is not meant for redistribution, so you'll typically need to build it yourself), or you can consult http://clang.llvm.org/docs/DiagnosticsReference.html
Extended Description
GCC provides a
--help=warning
option that lists all warnings which don't affect compilation. There is no such option in clang, and theclang --help
isn't machine consumable (for a good reason).An option to query for warn flags and compile options separately would be nice. It'd be amazing if the warn flag option also worked like GCC (aka listed flags that aren't provided to clang) to see which options are not in use.