I have a large C/C++ project where I would like to analyse the call graph for a subset of functions.
Ex for something like:
void A_Func1(){}
void A_Func2(){}
void IntermediateFunc()
{
A_Func1();
A_Func2();
}
void StartFunc()
{
IntermediateFunc();
}
I would like to get the list of functions that starts with "A_" called directly or indirectly from StartFunc.
My first thought was using clang which has the CallGraph action, but the documentation is sparse and I am slowly getting to the conclusion that I cannot use it how I want.
So the question: How do I use clangs tooling libraries to perform generate such a list?