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: [email protected]
Reporter: [email protected]
CC: [email protected]
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
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs