Detects most elements in the code, currently classes, structs, global variables, fields, functions, methods, namespaces and enums. The structs ParseLocation and ParseVariable are helper objects to transmit information to the ParserClient. Currently the parsed information only gets logged in the Storage. review id = 15 fortune cookie message = In dreams and in life, nothing is impossible.
62 lines
462 B
C++
62 lines
462 B
C++
#include "test_header.h"
|
|
|
|
char* name;
|
|
H g;
|
|
|
|
int ceil(float a)
|
|
{
|
|
return static_cast<int>(a) + 1;
|
|
}
|
|
|
|
namespace X
|
|
{
|
|
struct A;
|
|
|
|
enum E
|
|
{
|
|
P,
|
|
Q
|
|
};
|
|
}
|
|
|
|
class B
|
|
{
|
|
public:
|
|
class C
|
|
{
|
|
static const int amount;
|
|
};
|
|
|
|
B();
|
|
|
|
virtual ~B()
|
|
{
|
|
}
|
|
|
|
protected:
|
|
virtual void process() = 0;
|
|
|
|
private:
|
|
int getCount() const
|
|
{
|
|
return count;
|
|
}
|
|
|
|
const int count;
|
|
H h;
|
|
};
|
|
|
|
B::B()
|
|
: count(0)
|
|
{
|
|
}
|
|
|
|
namespace
|
|
{
|
|
int sum(int a, int b)
|
|
{
|
|
int c = a + b;
|
|
return c;
|
|
}
|
|
}
|