[LLVMbugs] [Bug 9001] New: clang should warn if |= is used without parens in an if / while
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jan 18 09:52:03 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=9001
Summary: clang should warn if |= is used without parens in an
if / while
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
Clang currently warns about
if (a = b)
and suggests parentheses if the assignment is really what the author intended.
It should do the same for
if (a |= b)
This would have caught this bug:
http://codereview.chromium.org/6320005/diff/1/chrome/browser/tab_contents/thumbnail_generator.cc
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list