[cfe-commits] r152083 -	/cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp
    Ted Kremenek 
    kremenek at apple.com
       
    Mon Mar  5 17:00:36 PST 2012
    
    
  
Author: kremenek
Date: Mon Mar  5 19:00:36 2012
New Revision: 152083
URL: http://llvm.org/viewvc/llvm-project?rev=152083&view=rev
Log:
[analyzer] 'Looping back to the head of the loop' diagnostics are prunable.
Modified:
    cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp?rev=152083&r1=152082&r2=152083&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp Mon Mar  5 19:00:36 2012
@@ -1279,6 +1279,7 @@
           PathDiagnosticEventPiece *p =
             new PathDiagnosticEventPiece(L,
                                         "Looping back to the head of the loop");
+          p->setPrunable(true);
 
           EB.addEdge(p->getLocation(), true);
           PD.getActivePath().push_front(p);
    
    
More information about the cfe-commits
mailing list