From b17bf58ee62ca152b23ad6587643b236702236cf Mon Sep 17 00:00:00 2001 From: chrchr-github Date: Tue, 22 Aug 2023 22:01:07 +0200 Subject: [PATCH] Fix --- lib/forwardanalyzer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/forwardanalyzer.cpp b/lib/forwardanalyzer.cpp index d2fe9d73613..cd5e71c734e 100644 --- a/lib/forwardanalyzer.cpp +++ b/lib/forwardanalyzer.cpp @@ -143,7 +143,7 @@ struct ForwardTraversal { // Traverse the parameters of the function before escaping traverseRecursive(tok->next()->astOperand2(), f, traverseUnknown); return Break(Analyzer::Terminate::Escape); - } else if (isUnevaluated(tok)) { + } else if (isUnevaluated(tok->previous())) { if (out) *out = tok->link(); return Progress::Skip; @@ -835,7 +835,7 @@ struct ForwardTraversal { return false; if (Token::simpleMatch(tok->link(), ") {")) return false; - if (isUnevaluated(tok)) + if (isUnevaluated(tok->previous())) return false; return Token::Match(tok->previous(), "%name%|)|]|>"); }