Skip to content

Commit

Permalink
Update symboldatabase.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored Apr 5, 2024
1 parent ee43aba commit 0f2bb03
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/symboldatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1463,10 +1463,13 @@ void SymbolDatabase::createSymbolDatabaseIncompleteVars()
tok = tok->link();
continue;
}
if (Token::Match(tok, "catch|typeid (")) {
if (tok->isCpp() && (Token::Match(tok, "catch|typeid (") ||
Token::Match(tok, "static_cast|dynamic_cast|const_cast|reinterpret_cast"))) {
tok = tok->linkAt(1);
continue;
}
if (tok->str() == "NULL")
continue;
if (tok->isKeyword() || !tok->isNameOnly())
continue;
if (tok->type())
Expand Down

0 comments on commit 0f2bb03

Please sign in to comment.