summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2014-06-14 08:45:32 +0000
committerSylvestre Ledru <sylvestre@debian.org>2014-06-14 08:45:32 +0000
commit9882e1a52cfcdf5c829612468f1697c94cd1286e (patch)
treecc1bfa93bd6369aaccb487ae32abcff2cecb5ddc /clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
parent5eb038a9f2ac7ed0903502285690299f5be7d979 (diff)
downloadbcm5719-llvm-9882e1a52cfcdf5c829612468f1697c94cd1286e.tar.gz
bcm5719-llvm-9882e1a52cfcdf5c829612468f1697c94cd1286e.zip
With the option '-analyzer-config stable-report-filename=true',
instead of report-XXXXXX.html, scan-build/clang analyzer generate report-<filename>-<function, method name>-<function position>-<id>.html. (id = i++ for several issues found in the same function/method) llvm-svn: 210970
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp b/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
index 38aac288a14..85d66ba600f 100644
--- a/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
+++ b/clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
@@ -189,6 +189,13 @@ bool AnalyzerOptions::shouldReportIssuesInMainSourceFile() {
/* Default = */ false);
}
+
+bool AnalyzerOptions::shouldWriteStableReportFilename() {
+ return getBooleanOption(StableReportFilename,
+ "stable-report-filename",
+ /* Default = */ false);
+}
+
int AnalyzerOptions::getOptionAsInteger(StringRef Name, int DefaultVal) {
SmallString<10> StrBuf;
llvm::raw_svector_ostream OS(StrBuf);
OpenPOWER on IntegriCloud