summaryrefslogtreecommitdiffstats
path: root/clang/tools/scan-view
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-09-30 17:00:30 +0000
committerTed Kremenek <kremenek@apple.com>2008-09-30 17:00:30 +0000
commitfb0fef91576660285a7f59b8b1534f1d811d2db4 (patch)
tree4e6e4f1390cec83c0ce773929f03e53212c4a937 /clang/tools/scan-view
parentb166299f2b4b33451ac6117f82812725c684bc92 (diff)
downloadbcm5719-llvm-fb0fef91576660285a7f59b8b1534f1d811d2db4.tar.gz
bcm5719-llvm-fb0fef91576660285a7f59b8b1534f1d811d2db4.zip
Make a separate parameter class for "Radar classifications".
Do not save the radar classification to the config file. llvm-svn: 56856
Diffstat (limited to 'clang/tools/scan-view')
-rw-r--r--clang/tools/scan-view/Reporter.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/clang/tools/scan-view/Reporter.py b/clang/tools/scan-view/Reporter.py
index 2f05fdfd837..b951cc029b6 100644
--- a/clang/tools/scan-view/Reporter.py
+++ b/clang/tools/scan-view/Reporter.py
@@ -146,7 +146,18 @@ class BugzillaReporter:
def fileReport(self, report, parameters):
raise NotImplementedError
-
+
+
+class RadarClassificationParameter(SelectionParameter):
+ def __init__(self):
+ SelectionParameter.__init__(self,"Classification",
+ [['1', 'Security'], ['2', 'Crash/Hang/Data Loss'],
+ ['3', 'Performance'], ['4', 'UI/Usability'],
+ ['6', 'Serious Bug'], ['7', 'Other']])
+
+ def saveConfigValue(self):
+ return False
+
class RadarReporter:
@staticmethod
def isAvailable():
@@ -167,10 +178,7 @@ class RadarReporter:
def getParameters(self):
return [ TextParameter('Component'), TextParameter('Component Version'),
- SelectionParameter('Classification',
- [ ['1', 'Security'], ['2', 'Crash/Hang/Data Loss'],
- ['3', 'Performance'], ['4', 'UI/Usability'],
- ['6', 'Serious Bug'], ['7', 'Other'] ]) ]
+ RadarClassificationParameter() ]
def fileReport(self, report, parameters):
component = parameters.get('Component', '')
OpenPOWER on IntegriCloud