Skip to content

Commit

Permalink
Tokenizer: run simplifyTypedefCpp() on C++ code only
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed May 31, 2024
1 parent 886e306 commit 849e272
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/tokenize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,8 @@ void Tokenizer::simplifyTypedef()
list.front()->deleteThis();
}

simplifyTypedefCpp();
if (isCPP())
simplifyTypedefCpp();
}

void Tokenizer::simplifyTypedefCpp()
Expand Down

0 comments on commit 849e272

Please sign in to comment.