From 4bc52fdd7504d42a28c1da3be24cc8c30c2d8237 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 24 Oct 2008 21:23:51 +0000 Subject: [PATCH] Generalize searching for the keyword "leak" in a bug type. llvm-svn: 58115 --- clang/tools/scan-view/Reporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/tools/scan-view/Reporter.py b/clang/tools/scan-view/Reporter.py index 25c41bcc12f7..41af16a49bfa 100644 --- a/clang/tools/scan-view/Reporter.py +++ b/clang/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'