This change parses type usages in function and method bodies and saves them with an edge of type EDGE_TYPE_USAGE. This also includes base class types used in initialization lists of derived class constructors.
45 lines
505 B
C++
45 lines
505 B
C++
#include "header.h"
|
|
|
|
int main();
|
|
void foo();
|
|
int sum(int a, int b);
|
|
int diff(int a, int b);
|
|
|
|
int main()
|
|
{
|
|
A aInstance('m');
|
|
aInstance.doImportantStuff();
|
|
|
|
int a = sum(1, 2);
|
|
int b = diff(a, 3);
|
|
int c = a * b;
|
|
return 0;
|
|
}
|
|
|
|
int sum(int a, int b);
|
|
|
|
int diff(int a, int b);
|
|
|
|
void foo()
|
|
{
|
|
const char* foo = "bar";
|
|
}
|
|
|
|
int diff(int a, int b);
|
|
|
|
int sum(int a, int b)
|
|
{
|
|
return a + b;
|
|
}
|
|
|
|
int diff(int a, int b)
|
|
{
|
|
return a - b;
|
|
}
|
|
|
|
void funk()
|
|
{
|
|
A aInstance('x');
|
|
aInstance.doModeratelyImportantStuff();
|
|
}
|