Skip to content

Commit 3b937af

Browse files
Update tokenize.cpp
1 parent cd2fd4a commit 3b937af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/tokenize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,6 +1125,8 @@ void Tokenizer::simplifyTypedef()
11251125
list.front()->deleteThis();
11261126
}
11271127

1128+
validate();
1129+
11281130
simplifyTypedefCpp();
11291131
}
11301132

@@ -1696,8 +1698,6 @@ void Tokenizer::simplifyTypedefCpp()
16961698
while (tok2 && !Token::simpleMatch(tok2, "}")) {
16971699
if (Token::Match(tok2, "(|{|["))
16981700
tok2 = tok2->link();
1699-
if (!tok2)
1700-
syntaxError(varDecl);
17011701
tok2 = tok2->next();
17021702
}
17031703
}

0 commit comments

Comments
 (0)