Skip to content

Commit

Permalink
Update tokenize.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored Jun 12, 2024
1 parent 5ef9ba0 commit 23a53d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tokenize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1794,7 +1794,7 @@ void Tokenizer::simplifyTypedefCpp()
}

// check for typedef that can be substituted
else if ((tok2->isNameOnly() || (tok2->isName() && (tok2->isExpandedMacro() || tok2->isInline()))) &&
else if ((tok2->isNameOnly() || (tok2->isName() && (tok2->isExpandedMacro() || tok2->isInline() || tok2->isExternC()))) &&
(Token::simpleMatch(tok2, pattern.c_str(), pattern.size()) ||
(inMemberFunc && tok2->str() == typeName->str()))) {
// member function class variables don't need qualification
Expand Down

0 comments on commit 23a53d6

Please sign in to comment.