From 06f2dcc539a175b704ca83d52c1a553891f9bf45 Mon Sep 17 00:00:00 2001 From: firewave Date: Sun, 26 Apr 2026 22:45:18 +0200 Subject: [PATCH] refs #14616 - use `std::unordered_set` in `TokenList::validateAst()` --- lib/tokenlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tokenlist.cpp b/lib/tokenlist.cpp index 3df17141f24..e2ec40725fb 100644 --- a/lib/tokenlist.cpp +++ b/lib/tokenlist.cpp @@ -1919,7 +1919,7 @@ void TokenList::validateAst(bool print) const mTokensFrontBack->front->printOut(std::cout); }}; // Check for some known issues in AST to avoid crash/hang later on - std::set safeAstTokens; // list of "safe" AST tokens without endless recursion + std::unordered_set safeAstTokens; // list of "safe" AST tokens without endless recursion for (const Token *tok = mTokensFrontBack->front; tok; tok = tok->next()) { // Syntax error if binary operator only has 1 operand if ((tok->isAssignmentOp() || tok->isComparisonOp() || Token::Match(tok,"[|^/%]")) && tok->astOperand1() && !tok->astOperand2())