add global namespace derived class support
This commit is contained in:
parent
443dd4c392
commit
18369ea6ac
|
@ -1236,6 +1236,13 @@ const Token *SymbolDatabase::initBaseInfo(Scope *scope, const Token *tok)
|
||||||
tok2 = tok2->next();
|
tok2 = tok2->next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// handle global namespace
|
||||||
|
if (tok2->str() == "::")
|
||||||
|
{
|
||||||
|
base.name = ":: ";
|
||||||
|
tok2 = tok2->next();
|
||||||
|
}
|
||||||
|
|
||||||
// handle derived base classes
|
// handle derived base classes
|
||||||
while (Token::Match(tok2, "%var% ::"))
|
while (Token::Match(tok2, "%var% ::"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue