[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)
commit8cf3dfea54187769b9c3feeb032f084857e8c79c
tree2f8a88ea9f55c6612e3b0df1e7067de8c71fe68e
parentee92f12fd18e42dd417174bcbb6429da60f47afa
[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

llvm-svn: 369321
clang/include/clang/Analysis/CallGraph.h
clang/lib/Analysis/CallGraph.cpp
clang/test/Analysis/cxx-callgraph.cpp [new file with mode: 0644]
clang/test/Analysis/exploded-graph-rewriter/objects_under_construction.cpp