From: Ted Kremenek Date: Tue, 27 Jul 2010 17:52:52 +0000 (+0000) Subject: Put 'Idempotent operations' static analyzer issues in the 'Dead code' category. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b698688fe116ef6fc4711798af7292537f4d0d12;p=clang Put 'Idempotent operations' static analyzer issues in the 'Dead code' category. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109517 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Checker/IdempotentOperationChecker.cpp b/lib/Checker/IdempotentOperationChecker.cpp index 48b5a597ca..95d488c6af 100644 --- a/lib/Checker/IdempotentOperationChecker.cpp +++ b/lib/Checker/IdempotentOperationChecker.cpp @@ -348,7 +348,8 @@ void IdempotentOperationChecker::VisitEndAnalysis(ExplodedGraph &G, // 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); } }