From bd4b47123a1d94883badeee0dba9ba2c70596f33 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Tue, 15 Dec 2015 11:30:20 +0300 Subject: [PATCH] Better variable name --- lib/tokenize.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index bf5182baf..877b96998 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -8673,7 +8673,7 @@ void Tokenizer::simplifyComma() void Tokenizer::validate() const { - std::stack linktok; + std::stack linkTokens; const Token *lastTok = nullptr; for (const Token *tok = tokens(); tok; tok = tok->next()) { lastTok = tok; @@ -8681,31 +8681,31 @@ void Tokenizer::validate() const if (tok->link() == nullptr) cppcheckError(tok); - linktok.push(tok); + linkTokens.push(tok); } else if (Token::Match(tok, "[})]]") || (tok->str() == ">" && tok->link())) { if (tok->link() == nullptr) cppcheckError(tok); - if (linktok.empty() == true) + if (linkTokens.empty() == true) cppcheckError(tok); - if (tok->link() != linktok.top()) + if (tok->link() != linkTokens.top()) cppcheckError(tok); if (tok != tok->link()->link()) cppcheckError(tok); - linktok.pop(); + linkTokens.pop(); } else if (tok->link() != nullptr) cppcheckError(tok); } - if (!linktok.empty()) - cppcheckError(linktok.top()); + if (!linkTokens.empty()) + cppcheckError(linkTokens.top()); // Validate that the Tokenizer::list.back() is updated correctly during simplifications if (lastTok != list.back())