[LLVMbugs] [Bug 11329] empty loops should be flagged
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Feb 15 09:16:54 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=11329
Dmitri Gribenko <gribozavr at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |gribozavr at gmail.com
Resolution| |FIXED
--- Comment #4 from Dmitri Gribenko <gribozavr at gmail.com> 2012-02-15 11:16:54 CST ---
Fixed in r150515.
Generalize -Wempty-body: warn when statement body is empty
* if, switch, range-based for: warn if semicolon is on the same line.
* for, while: warn if semicolon is on the same line and either next
statement is compound statement or next statement has more
indentation.
Replacing the semicolon with {} or moving the semicolon to the next
line will always silence the warning.
I'll close this bug. A more general request to flag infinite loops is
http://llvm.org/bugs/show_bug.cgi?id=11683
--
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