[llvm-bugs] [Bug 27444] New: Do not supply -Wbitwise-op-parentheses by default

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 21 03:52:05 PDT 2016


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

            Bug ID: 27444
           Summary: Do not supply -Wbitwise-op-parentheses by default
           Product: clang
           Version: 3.7
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: fuzxxl at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

clang seems to have -Wbitwise-op-parentheses enabled by default, causing
hundreds of suprious warnings to appear when compiling perfectly fine code. I
request that clang should not warn about things like "&& within ||" or "&
within |" by default as these things appear often in normal C code and are
usually not an indication of incorrect code. After all, most C programmers are
able to remember that & has higher precedence than | by analogy to * and + as
has been the case in mathematics since the 18th century.

-- 
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/20160421/604b01b9/attachment.html>


More information about the llvm-bugs mailing list