[cfe-commits] r50113 - /cfe/trunk/lib/Analysis/BugReporter.cpp
Ted Kremenek
kremenek at apple.com
Tue Apr 22 15:29:46 PDT 2008
Author: kremenek
Date: Tue Apr 22 17:29:46 2008
New Revision: 50113
URL: http://llvm.org/viewvc/llvm-project?rev=50113&view=rev
Log:
For default branches in switch statements with no default label, print out
the line we are going to.
Modified:
cfe/trunk/lib/Analysis/BugReporter.cpp
Modified: cfe/trunk/lib/Analysis/BugReporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/BugReporter.cpp?rev=50113&r1=50112&r2=50113&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/BugReporter.cpp (original)
+++ cfe/trunk/lib/Analysis/BugReporter.cpp Tue Apr 22 17:29:46 2008
@@ -232,9 +232,7 @@
switch (S->getStmtClass()) {
default:
- continue;
-
- case Stmt::DefaultStmtClass: {
+ case Stmt::DefaultStmtClass: {
os << "Control jumps to the 'default' case at line "
<< SMgr.getLogicalLineNumber(S->getLocStart()) << ".\n";
More information about the cfe-commits
mailing list