aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorKristof Umann <dkszelethus@gmail.com>2019-02-02 14:50:04 +0000
committerKristof Umann <dkszelethus@gmail.com>2019-02-02 14:50:04 +0000
commitffe93a1670399698b0c0f2b61684205c152d980a (patch)
tree6fdd6b636f9d7ac589416e2abd4b8c6b524702a7 /clang/lib/Frontend/CompilerInvocation.cpp
parent509b48a64a1baf497a85a2a1f86d9141b18cb1e1 (diff)
downloadllvm-ffe93a1670399698b0c0f2b61684205c152d980a.zip
llvm-ffe93a1670399698b0c0f2b61684205c152d980a.tar.gz
llvm-ffe93a1670399698b0c0f2b61684205c152d980a.tar.bz2
[analyzer][UninitializedObjectChecker] New flag to ignore guarded uninitialized fields
This patch is an implementation of the ideas discussed on the mailing list[1]. The idea is to somewhat heuristically guess whether the field that was confirmed to be uninitialized is actually guarded with ifs, asserts, switch/cases and so on. Since this is a syntactic check, it is very much prone to drastically reduce the amount of reports the checker emits. The reports however that do not get filtered out though have greater likelihood of them manifesting into actual runtime errors. [1] http://lists.llvm.org/pipermail/cfe-dev/2018-September/059255.html Differential Revision: https://reviews.llvm.org/D51866 llvm-svn: 352959
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions