]> granicus.if.org Git - clang/commit
[analyzer] Prune calls to functions with linear CFGs that return a non-zero constrain...
authorKristof Umann <dkszelethus@gmail.com>
Tue, 13 Aug 2019 23:22:33 +0000 (23:22 +0000)
committerKristof Umann <dkszelethus@gmail.com>
Tue, 13 Aug 2019 23:22:33 +0000 (23:22 +0000)
commit827055e72dfe5dc098a5bd60435d3efd63a4aaf1
tree663ed737ecba46020a09b1ba1892a634812df937
parentdb6fabf91bcf4e2501fbb6a3ef6a0f78cd48f9e2
[analyzer] Prune calls to functions with linear CFGs that return a non-zero constrained value

During the evaluation of 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.

Differential Revision: https://reviews.llvm.org/D64232

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@368771 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
test/Analysis/diagnostics/find_last_store.c
test/Analysis/track-control-dependency-conditions.cpp
test/Analysis/uninit-vals.c