aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorArtem Dergachev <artem.dergachev@gmail.com>2021-08-25 21:33:38 -0700
committerArtem Dergachev <artem.dergachev@gmail.com>2021-08-26 13:34:29 -0700
commit73093599287cc6d546ac46652ee781789d7de61f (patch)
tree1c158f7d8d21c8a79cf82513b1dabdb337d4d872 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parenta3f413962627a1e70099731620cbf8308390f734 (diff)
downloadllvm-73093599287cc6d546ac46652ee781789d7de61f.zip
llvm-73093599287cc6d546ac46652ee781789d7de61f.tar.gz
llvm-73093599287cc6d546ac46652ee781789d7de61f.tar.bz2
[analyzer] Fix scan-build report deduplication.
The previous behavior was to deduplicate reports based on md5 of the html file. This algorithm might have worked originally but right now HTML reports contain information rich enough to make them virtually always distinct which breaks deduplication entirely. The new strategy is to (finally) take advantage of IssueHash - the stable report identifier provided by clang that is the same if and only if the reports are duplicates of each other. Additionally, scan-build no longer performs deduplication on its own. Instead, the report file name is now based on the issue hash, and clang instances will silently refuse to produce a new html file when a duplicate already exists. This eliminates the problem entirely. The '-analyzer-config stable-report-filename' option is deprecated because report filenames are no longer unstable. A new option is introduced, '-analyzer-config verbose-report-filename', to produce verbose file names that look similar to the old "stable" file names. The old option acts as an alias to the new option. Differential Revision: https://reviews.llvm.org/D105167
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions