]> granicus.if.org Git - clang/commit
[CallGraph] Take into accound calls that aren't within any function bodies.
authorArtem Dergachev <artem.dergachev@gmail.com>
Tue, 20 Aug 2019 02:22:37 +0000 (02:22 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Tue, 20 Aug 2019 02:22:37 +0000 (02:22 +0000)
commita94f64bfc77e930a2636d06009f94fb4ed20a545
tree4a92d506c72ad5e748f8dc3da08177818ace9acb
parent3929c711543f9ed3a51d137717cd13eb07b59d7f
[CallGraph] Take into accound calls that aren't within any function bodies.

This patch improves Clang call graph analysis by adding in expressions
that are not found in regular function bodies, such as default arguments
or member initializers.

Patch by Joshua Cranmer!

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369321 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/CallGraph.h
lib/Analysis/CallGraph.cpp
test/Analysis/cxx-callgraph.cpp [new file with mode: 0644]
test/Analysis/exploded-graph-rewriter/objects_under_construction.cpp