diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-10-24 21:23:51 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-10-24 21:23:51 +0000 |
commit | 03373df257589e482771513f2f29cab1d4a34dcd (patch) | |
tree | 424a6d2bded2d039d34b0ff2cfab5efbcb822e6d /tools/scan-view | |
parent | 9d1d57092e7e1cf2c56c64a32a1b816e99d2ae8c (diff) |
Generalize searching for the keyword "leak" in a bug type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58115 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/scan-view')
-rw-r--r-- | tools/scan-view/Reporter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scan-view/Reporter.py b/tools/scan-view/Reporter.py index 25c41bcc12..41af16a49b 100644 --- a/tools/scan-view/Reporter.py +++ b/tools/scan-view/Reporter.py @@ -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' |