From 10f88bd34deef5508c58c85a6555b5f82559faa6 Mon Sep 17 00:00:00 2001 From: chrchr-github <78114321+chrchr-github@users.noreply.github.com> Date: Tue, 18 Jun 2024 12:08:37 +0200 Subject: [PATCH] Update tokenlist.cpp --- lib/tokenlist.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/tokenlist.cpp b/lib/tokenlist.cpp index 970bad3a2211..2c77b818ffce 100644 --- a/lib/tokenlist.cpp +++ b/lib/tokenlist.cpp @@ -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); }