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: unassignedclangb...@nondot.org Reporter: fuz...@gmail.com CC: llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs