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:
Eberhard Graether
2014-05-19 12:51:00 +02:00
parent bb6640369a
commit 38c8aaebe8
15 changed files with 738 additions and 68 deletions
+51 -2
View File
@@ -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;
}
}