add global namespace derived class support

This commit is contained in:
Robert Reif 2011-06-29 19:43:39 -04:00
parent 443dd4c392
commit 18369ea6ac
1 changed files with 7 additions and 0 deletions

View File

@ -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% ::"))
{ {