Skip to content

Commit 92f9b2e

Browse files
Update token.cpp
1 parent a03d710 commit 92f9b2e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/token.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2361,6 +2361,8 @@ const ::Type* Token::typeOf(const Token* tok, const Token** typeTok)
23612361
return tok->variable()->type();
23622362
if (tok->function())
23632363
return tok->function()->retType;
2364+
if (tok->valueType() && tok->valueType()->typeScope && tok->valueType()->typeScope->definedType)
2365+
return tok->valueType()->typeScope->definedType;
23642366
if (Token::simpleMatch(tok, "return")) {
23652367
// cppcheck-suppress shadowFunction - TODO: fix this
23662368
const Scope *scope = tok->scope();

0 commit comments

Comments
 (0)