diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-09-30 17:00:30 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-09-30 17:00:30 +0000 |
commit | fb0fef91576660285a7f59b8b1534f1d811d2db4 (patch) | |
tree | 4e6e4f1390cec83c0ce773929f03e53212c4a937 /clang/tools/scan-view | |
parent | b166299f2b4b33451ac6117f82812725c684bc92 (diff) | |
download | bcm5719-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.py | 18 |
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', '') |