save location of using directive (not used yet)
This commit is contained in:
parent
07fe361964
commit
836fadcb6a
|
@ -101,6 +101,15 @@ SymbolDatabase::SymbolDatabase(const Tokenizer *tokenizer, const Settings *setti
|
|||
continue;
|
||||
}
|
||||
|
||||
// using namespace
|
||||
else if (Token::Match(tok, "using namespace %type% ;|::"))
|
||||
{
|
||||
// save location
|
||||
scope->usingList.push_back(tok);
|
||||
|
||||
tok = tok->tokAt(3);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
// check for end of space
|
||||
|
|
|
@ -400,7 +400,10 @@ public:
|
|||
AccessControl access;
|
||||
unsigned int numConstructors;
|
||||
NeedInitialization needInitialization;
|
||||
Scope *functionOf; // class/struct this function belongs to
|
||||
std::list<const Token *> usingList;
|
||||
|
||||
// function specific fields
|
||||
Scope *functionOf; // scope this function belongs to
|
||||
|
||||
bool isClassOrStruct() const
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue