diff options
Diffstat (limited to 'clang/utils')
| -rwxr-xr-x | clang/utils/analyzer/CmpRuns.py | 7 | ||||
| -rwxr-xr-x | clang/utils/analyzer/SATestBuild.py | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/clang/utils/analyzer/CmpRuns.py b/clang/utils/analyzer/CmpRuns.py index 6d4be712994..e68c45df184 100755 --- a/clang/utils/analyzer/CmpRuns.py +++ b/clang/utils/analyzer/CmpRuns.py @@ -77,9 +77,10 @@ class AnalysisDiagnostic: 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): diff --git a/clang/utils/analyzer/SATestBuild.py b/clang/utils/analyzer/SATestBuild.py index a45263b15ca..ce64ae45d7e 100755 --- a/clang/utils/analyzer/SATestBuild.py +++ b/clang/utils/analyzer/SATestBuild.py @@ -132,7 +132,7 @@ def runScanBuild(Dir, SBOutputDir, PBuildLogFile): 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") |

