[cfe-commits] r109517 - /cfe/trunk/lib/Checker/IdempotentOperationChecker.cpp
Ted Kremenek
kremenek at apple.com
Tue Jul 27 10:52:52 PDT 2010
Author: kremenek
Date: Tue Jul 27 12:52:52 2010
New Revision: 109517
URL: http://llvm.org/viewvc/llvm-project?rev=109517&view=rev
Log:
Put 'Idempotent operations' static analyzer issues in the 'Dead code' category.
Modified:
cfe/trunk/lib/Checker/IdempotentOperationChecker.cpp
Modified: cfe/trunk/lib/Checker/IdempotentOperationChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Checker/IdempotentOperationChecker.cpp?rev=109517&r1=109516&r2=109517&view=diff
==============================================================================
--- cfe/trunk/lib/Checker/IdempotentOperationChecker.cpp (original)
+++ cfe/trunk/lib/Checker/IdempotentOperationChecker.cpp Tue Jul 27 12:52:52 2010
@@ -348,7 +348,8 @@
// Create the SourceRange Arrays
SourceRange S[2] = { i->first->getLHS()->getSourceRange(),
i->first->getRHS()->getSourceRange() };
- B.EmitBasicReport("Idempotent operation", msg, i->first->getOperatorLoc(),
+ B.EmitBasicReport("Idempotent operation", "Dead code",
+ msg, i->first->getOperatorLoc(),
S, 2);
}
}
More information about the cfe-commits
mailing list