Hello to all,
I am looking for a way to display only the names of function (calls & definition) of a C++ source code.There is already a post related to this, but the script is to find the functions using a specific variable, and the replies are not that convincing since they cannot be used for all combinations of function calls/definitions. Kindly help me.
Is there any command in linux that can print the function calls/definitions, variables etc used in a C++ source code ?
Input
-----
File:Sample.cpp
Content:
void display_here() {
cdef
}
int sample() {
abcd
process_somewhere(nowhere(abc),
abc)
display_here()
rstuv
}
Output
-------
void display_here()
int sample()
process_somewhere(nowhere(abc),
abc)
display_here()
Thanks.

