summaryrefslogtreecommitdiff
path: root/tools
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
commitb78303a715232f5a0fdcaa3d0676a5b58255fc3c (patch)
treea297676a7c6355d2e3cf4b8160b25a40a03b0ed3 /tools
parent71cb4aa32fab71646f152dcfcf8e2a04607e25b1 (diff)
downloadclang-b78303a715232f5a0fdcaa3d0676a5b58255fc3c.tar.gz
clang-b78303a715232f5a0fdcaa3d0676a5b58255fc3c.tar.bz2
clang-b78303a715232f5a0fdcaa3d0676a5b58255fc3c.tar.xz
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) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210970 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rwxr-xr-xtools/scan-build/scan-build9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/scan-build/scan-build b/tools/scan-build/scan-build
index 7502a42432..f46f0933c0 100755
--- a/tools/scan-build/scan-build
+++ b/tools/scan-build/scan-build
@@ -498,6 +498,8 @@ my $baseDir;
sub FileWanted {
my $baseDirRegEx = quotemeta $baseDir;
my $file = $File::Find::name;
+
+ # The name of the file is generated by clang binary (HTMLDiagnostics.cpp)
if ($file =~ /report-.*\.html$/) {
my $relative_file = $file;
$relative_file =~ s/$baseDirRegEx//g;
@@ -1175,6 +1177,13 @@ ADVANCED OPTIONS:
-analyzer-config <options>
Provide options to pass through to the analyzer's -analyzer-config flag.
+ Several options are separated with comma: 'key1=val1,key2=val2'
+
+ Available options:
+ * stable-report-filename=true or false (default)
+ Switch the page naming to:
+ report-<filename>-<function/method name>-<id>.html
+ instead of report-XXXXXX.html
CONTROLLING CHECKERS: