]> granicus.if.org Git - clang/commitdiff
Put 'Idempotent operations' static analyzer issues in the 'Dead code' category.
authorTed Kremenek <kremenek@apple.com>
Tue, 27 Jul 2010 17:52:52 +0000 (17:52 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 27 Jul 2010 17:52:52 +0000 (17:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109517 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Checker/IdempotentOperationChecker.cpp

index 48b5a597caf6b1c19331505e39180dff20328305..95d488c6af620d7857a81b485f3d45269af5d693 100644 (file)
@@ -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);
     }
   }