[llvm-bugs] [Bug 35206] New: Clang-cl /Wall doesn't include all warnings

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Nov 5 02:56:54 PST 2017


https://bugs.llvm.org/show_bug.cgi?id=35206

            Bug ID: 35206
           Summary: Clang-cl /Wall doesn't include all warnings
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jvapen at gmail.com
                CC: llvm-bugs at lists.llvm.org

When one looks at the documentation of MSVC for the warnings, it contains
several warning levels /W0-/W4 + /Wall
https://msdn.microsoft.com/en-us/library/thxezb7y.aspx

The documentation of clang-cl
https://clang.llvm.org/docs/UsersManual.html#clang-cl indicates that it
supports the same warning levels by mapping:
/W1-/W3 to -Wall
/W4 and /Wall to -Wall -Wextra

It would be more logical that /Wall would be mapped to -Weverything as /Wall in
MSVC includes all warnings in MSVC, including several warnings its STL
violates.
-Weverything seems like the best fit for these.

-- 
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/20171105/ff7bd8f9/attachment.html>


More information about the llvm-bugs mailing list