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

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

GCC supports -Wbool-compare compiler flag as seen from
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

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
-Wtautological-constant-out-of-range-compare.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to