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:
+18
-15
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user