Skip to content

Commit 4bc52fd

Browse files
committed
Generalize searching for the keyword "leak" in a bug type.
llvm-svn: 58115
1 parent 920406b commit 4bc52fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/tools/scan-view/Reporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def saveConfigValue(self):
162162
return False
163163

164164
def getValue(self,r,bugtype,getConfigOption):
165-
if bugtype.startswith("leak"):
165+
if bugtype.find("leak") != -1:
166166
return '3'
167167
elif bugtype.find("dereference") != -1:
168168
return '2'

0 commit comments

Comments
 (0)