[cfe-commits] r56852 - /cfe/trunk/tools/scan-view/ScanView.py
Ted Kremenek
kremenek at apple.com
Tue Sep 30 09:11:33 PDT 2008
Author: kremenek
Date: Tue Sep 30 11:11:33 2008
New Revision: 56852
URL: http://llvm.org/viewvc/llvm-project?rev=56852&view=rev
Log:
Conditionally load/save default parameter value from config file.
Modified:
cfe/trunk/tools/scan-view/ScanView.py
Modified: cfe/trunk/tools/scan-view/ScanView.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-view/ScanView.py?rev=56852&r1=56851&r2=56852&view=diff
==============================================================================
--- cfe/trunk/tools/scan-view/ScanView.py (original)
+++ cfe/trunk/tools/scan-view/ScanView.py Tue Sep 30 11:11:33 2008
@@ -130,6 +130,7 @@
for r in self.reporters:
self.config.add_section(r.getName())
for p in r.getParameters():
+ if p.saveConfigValue():
self.config.set(r.getName(), p.getName(), '')
# Ignore parse errors
@@ -316,6 +317,7 @@
if report != 'None':
self.server.config.set('ScanView', 'reporter', reporterIndex)
for o in reporter.getParameters():
+ if o.saveConfigValue():
name = o.getName()
self.server.config.set(reporter.getName(), name, parameters[name])
More information about the cfe-commits
mailing list