Skip to content

Commit

Permalink
Update tokenlist.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github authored Jun 18, 2024
1 parent e678e7d commit 10f88bd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/tokenlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1874,9 +1874,6 @@ void TokenList::validateAst(bool print) const
// Skip lambda assignment and/or initializer
if (Token::Match(tok, "= {|^|["))
continue;
// FIXME: Workaround broken AST assignment in type aliases
if (Token::Match(tok->previous(), "%name% = %name%"))
continue;
if (!tok->astOperand1() || !tok->astOperand2())
throw InternalError(tok, "Syntax Error: AST broken, binary operator '" + tok->str() + "' doesn't have two operands.", InternalError::AST);
}
Expand Down

0 comments on commit 10f88bd

Please sign in to comment.