[cfe-commits] r56856 - /cfe/trunk/tools/scan-view/Reporter.py

Ted Kremenek kremenek at apple.com
Tue Sep 30 10:00:30 PDT 2008


Author: kremenek
Date: Tue Sep 30 12:00:30 2008
New Revision: 56856

URL: http://llvm.org/viewvc/llvm-project?rev=56856&view=rev
Log:
Make a separate parameter class for "Radar classifications".
Do not save the radar classification to the config file.

Modified:
    cfe/trunk/tools/scan-view/Reporter.py

Modified: cfe/trunk/tools/scan-view/Reporter.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-view/Reporter.py?rev=56856&r1=56855&r2=56856&view=diff

==============================================================================
--- cfe/trunk/tools/scan-view/Reporter.py (original)
+++ cfe/trunk/tools/scan-view/Reporter.py Tue Sep 30 12:00:30 2008
@@ -146,7 +146,18 @@
 
     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 @@
 
     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', '')





More information about the cfe-commits mailing list