Skip to content

Commit

Permalink
Add Original Name to types
Browse files Browse the repository at this point in the history
  • Loading branch information
wienans committed Feb 9, 2024
1 parent 503c109 commit 5eabbb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tokenize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,8 @@ namespace {
Token* const tok2 = insertTokens(tok, rangeType);
Token* const tok3 = insertTokens(tok2, mRangeTypeQualifiers);

tok2->originalName(tok->str());
tok3->originalName(tok->str());
Token *after = tok3;
while (Token::Match(after, "%name%|*|&|&&|::"))
after = after->next();
Expand Down

0 comments on commit 5eabbb3

Please sign in to comment.