[llvm-bugs] [Bug 42130] New: Support -Wbool-compare compiler flag

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 4 20:36:50 PDT 2019


            Bug ID: 42130
           Summary: Support -Wbool-compare compiler flag
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: joeloser93 at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

GCC supports -Wbool-compare compiler flag as seen from

For portability, it would be nice if Clang also supported -Wbool-compare flag. 

Sample code at https://wandbox.org/permlink/WO2fLz8XtrLpXhu6 shows GCC warning
with -Wbool-compare and Clang warns with

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/20190605/03c972c8/attachment.html>

More information about the llvm-bugs mailing list