Generalize searching for the keyword "leak" in a bug type.

llvm-svn: 58115
This commit is contained in:
Ted Kremenek 2008-10-24 21:23:51 +00:00
parent 920406b5ca
commit 4bc52fdd75
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ class RadarClassificationParameter(SelectionParameter):
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'