diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 194db6fca..f893b379b 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -1236,6 +1236,13 @@ const Token *SymbolDatabase::initBaseInfo(Scope *scope, const Token *tok) tok2 = tok2->next(); } + // handle global namespace + if (tok2->str() == "::") + { + base.name = ":: "; + tok2 = tok2->next(); + } + // handle derived base classes while (Token::Match(tok2, "%var% ::")) {