]> granicus.if.org Git - clang/commitdiff
Make a separate parameter class for "Radar classifications".
authorTed Kremenek <kremenek@apple.com>
Tue, 30 Sep 2008 17:00:30 +0000 (17:00 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 30 Sep 2008 17:00:30 +0000 (17:00 +0000)
Do not save the radar classification to the config file.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56856 91177308-0d34-0410-b5e6-96231b3b80d8

tools/scan-view/Reporter.py

index 2f05fdfd837157a5d7dea617cd28289a12f2908b..b951cc029b6effa9e286c6c07c80fecca6f5cb95 100644 (file)
@@ -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', '')