[llvm-bugs] [Bug 44743] New: Unable to check if a flag is warning or compile option

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 31 12:11:20 PST 2020


            Bug ID: 44743
           Summary: Unable to check if a flag is warning or compile option
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Documentation
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kunal.tyagi at rakuten.com
                CC: llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk

GCC provides a `--help=warning` option that lists all warnings which don't
affect compilation. There is no such option in clang, and the `clang --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.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200131/3e794508/attachment.html>

More information about the llvm-bugs mailing list