[PATCH] D64232: [analyzer] Prune calls to functions with linear CFGs that return a non-zero constrained value
Kristóf Umann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 4 17:10:40 PDT 2019
Szelethus created this revision.
Szelethus added reviewers: NoQ, xazax.hun, rnkovacs, baloghadamsoftware, dcoughlin, Charusso.
Szelethus added a project: clang.
Herald added subscribers: cfe-commits, gamesh411, dkrupp, donat.nagy, mikhail.ramalho, a.sidorin, szepet, whisperity.
During the evaluation of D62883 <https://reviews.llvm.org/D62883>, I noticed a bunch of totally meaningless notes with the pattern of "Calling 'A'" -> "Returning value" -> "Returning from 'A'", which added no value to the report at all.
This patch (not only affecting tracked conditions mind you) prunes diagnostic messages to functions that return a value not constrained to be 0, and are also linear.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D64232
Files:
clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
clang/test/Analysis/diagnostics/find_last_store.c
clang/test/Analysis/track-control-dependency-conditions.cpp
clang/test/Analysis/uninit-vals.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64232.208101.patch
Type: text/x-patch
Size: 10453 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190705/63ac5b6a/attachment-0001.bin>
More information about the cfe-commits
mailing list