[cfe-commits] r58115 - /cfe/trunk/tools/scan-view/Reporter.py

Ted Kremenek kremenek at apple.com
Fri Oct 24 14:23:51 PDT 2008


Author: kremenek
Date: Fri Oct 24 16:23:51 2008
New Revision: 58115

URL: http://llvm.org/viewvc/llvm-project?rev=58115&view=rev
Log:
Generalize searching for the keyword "leak" in a bug type.

Modified:
    cfe/trunk/tools/scan-view/Reporter.py

Modified: cfe/trunk/tools/scan-view/Reporter.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-view/Reporter.py?rev=58115&r1=58114&r2=58115&view=diff

==============================================================================
--- cfe/trunk/tools/scan-view/Reporter.py (original)
+++ cfe/trunk/tools/scan-view/Reporter.py Fri Oct 24 16:23:51 2008
@@ -162,7 +162,7 @@
     return False
     
   def getValue(self,r,bugtype,getConfigOption):
-    if bugtype.startswith("leak"):
+    if bugtype.find("leak") != -1:
       return '3'
     elif bugtype.find("dereference") != -1:
       return '2'





More information about the cfe-commits mailing list