[PATCH] D74467: [analyzer] Teach scan-build how to rebuild index.html without analyzing.
Artem Dergachev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 12 00:52:46 PST 2020
NoQ created this revision.
NoQ added reviewers: dcoughlin, Charusso.
Herald added subscribers: cfe-commits, martong, dkrupp, donat.nagy, Szelethus, arphaman, mikhail.ramalho, a.sidorin, szepet, baloghadamsoftware, xazax.hun.
Herald added a project: clang.
NoQ marked an inline comment as done.
NoQ added inline comments.
================
Comment at: clang/test/Analysis/scan-build/rebuild_index/rebuild_index.test:11-12
+RUN: cp %S/report-3.html %t.output_dir
+RUN: mkdir %t.output_dir/subdirectory
+RUN: cp %S/subdirectory/report-4.html %t.output_dir/subdirectory
+
----------------
The script is indeed capable of finding html reports in sub-directories and it's a fairly useful feature because in a custom build system integration it's likely that clang's `-o` flag will be very messed up.
This is useful for performing custom build system integration that works by appending '--analyze --analyzer-output html' to all clang build commands. In this case there is now still a way to have a fancy index.html with the output.
Repository:
rC Clang
https://reviews.llvm.org/D74467
Files:
clang/test/Analysis/scan-build/rebuild_index/rebuild_index.test
clang/test/Analysis/scan-build/rebuild_index/report-1.html
clang/test/Analysis/scan-build/rebuild_index/report-2.html
clang/test/Analysis/scan-build/rebuild_index/report-3.html
clang/test/Analysis/scan-build/rebuild_index/subdirectory/report-4.html
clang/tools/scan-build/bin/scan-build
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74467.244084.patch
Type: text/x-patch
Size: 9758 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200212/33c9f901/attachment-0001.bin>
More information about the cfe-commits
mailing list