data: Extended CxxParser to detect elements
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.
This commit is contained in:
+51
-2
@@ -1,12 +1,61 @@
|
||||
#include "test_header.h"
|
||||
|
||||
char* name;
|
||||
H g;
|
||||
|
||||
int ceil(float a)
|
||||
{
|
||||
return static_cast<int>(a) + 1;
|
||||
}
|
||||
|
||||
namespace X
|
||||
{
|
||||
class A;
|
||||
struct A;
|
||||
|
||||
enum E
|
||||
{
|
||||
P,
|
||||
Q
|
||||
};
|
||||
}
|
||||
|
||||
class B
|
||||
{
|
||||
public:
|
||||
class C;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user