[cfe-commits] r148868 - in /cfe/trunk: tools/scan-build/scan-build utils/analyzer/CmpRuns.py utils/analyzer/SATestBuild.py
Anna Zaks
ganna at apple.com
Tue Jan 24 13:57:35 PST 2012
Author: zaks
Date: Tue Jan 24 15:57:35 2012
New Revision: 148868
URL: http://llvm.org/viewvc/llvm-project?rev=148868&view=rev
Log:
[analyzer] Add the HTML file to the SATest diagnostic diff.
(Uses the functionality which has been in CmpRuns long before.)
Modified:
cfe/trunk/tools/scan-build/scan-build
cfe/trunk/utils/analyzer/CmpRuns.py
cfe/trunk/utils/analyzer/SATestBuild.py
Modified: cfe/trunk/tools/scan-build/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/scan-build?rev=148868&r1=148867&r2=148868&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/scan-build (original)
+++ cfe/trunk/tools/scan-build/scan-build Tue Jan 24 15:57:35 2012
@@ -961,7 +961,11 @@
-plist - By default the output of scan-build is a set of HTML files.
This option outputs the results as a set of .plist files.
-
+
+ -plist-html - By default the output of scan-build is a set of HTML files.
+ This option outputs the results as a set of HTML
+ and .plist files.
+
--status-bugs - By default, the exit status of $Prog is the same as the
executed build command. Specifying this option causes the
exit status of $Prog to be 1 if it found potential bugs
Modified: cfe/trunk/utils/analyzer/CmpRuns.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/analyzer/CmpRuns.py?rev=148868&r1=148867&r2=148868&view=diff
==============================================================================
--- cfe/trunk/utils/analyzer/CmpRuns.py (original)
+++ cfe/trunk/utils/analyzer/CmpRuns.py Tue Jan 24 15:57:35 2012
@@ -77,9 +77,10 @@
def getReportData(self):
if self.htmlReport is None:
return " "
-
- return open(os.path.join(self.report.run.path,
- self.htmlReport), "rb").read()
+ return os.path.join(self.report.run.path, self.htmlReport)
+ # We could also dump the report with:
+ # return open(os.path.join(self.report.run.path,
+ # self.htmlReport), "rb").read()
class AnalysisRun:
def __init__(self, path, opts):
Modified: cfe/trunk/utils/analyzer/SATestBuild.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/analyzer/SATestBuild.py?rev=148868&r1=148867&r2=148868&view=diff
==============================================================================
--- cfe/trunk/utils/analyzer/SATestBuild.py (original)
+++ cfe/trunk/utils/analyzer/SATestBuild.py Tue Jan 24 15:57:35 2012
@@ -132,7 +132,7 @@
if not os.path.exists(BuildScriptPath):
print "Error: build script is not defined: %s" % BuildScriptPath
sys.exit(-1)
- SBOptions = "-plist -o " + SBOutputDir + " "
+ SBOptions = "-plist-html -o " + SBOutputDir + " "
SBOptions += "-enable-checker " + Checkers + " "
try:
SBCommandFile = open(BuildScriptPath, "r")
More information about the cfe-commits
mailing list