We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d9a26f commit 44c05b1Copy full SHA for 44c05b1
1 file changed
lib/tokenize.cpp
@@ -1042,6 +1042,10 @@ void Tokenizer::simplifyTypedef()
1042
std::map<std::string, std::set<std::string>> numberOfTypedefs;
1043
for (Token* tok = list.front(); tok; tok = tok->next()) {
1044
if (tok->str() == "typedef") {
1045
+ if (Token::simpleMatch(tok, "typedef ( *") &&
1046
+ tok->linkAt(1) && Token::simpleMatch(tok->linkAt(1), ") ("))
1047
+ // Implicit return type
1048
+ tok->insertToken("int");
1049
TypedefSimplifier ts(tok);
1050
if (ts.fail() || !ts.nameToken())
1051
continue;
0 commit comments