data: Saving TokenLocations of scopes separately

This change parses the TokenLocations of scopes of classes, structs, functions, methods, namespaces and enums and
saves them in Storage with type LOCATION_SCOPE. The TokenLocations of these nodes are just their name declarations now.
Scope locations are displayed in blue color in the code view.
This commit is contained in:
Eberhard Graether
2014-07-28 17:54:36 +02:00
parent 182e18840e
commit 96df63055a
18 changed files with 261 additions and 114 deletions
+18 -15
View File
@@ -1,18 +1,3 @@
/*
class e
{
};
class x: public e
{
};
struct y;
enum z;
x foox();
y fooy();
z fooz();
*/
const bool *ab(int abc, int bca);
bool const *abc(int a, int b);
@@ -86,4 +71,22 @@ private:
int m_valuable;
};
namespace
{
namespace noname
{
struct V
{
int x;
int y;
};
}
enum E
{
X,
Y
};
}
typedef A* D;