Skip to content

Commit 454df6d

Browse files
committed
Merge pull request #726 from Dmitry-Me/betterVariableName9
Better variable name
2 parents 18693a7 + bd4b471 commit 454df6d

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

lib/tokenize.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8673,39 +8673,39 @@ void Tokenizer::simplifyComma()
86738673

86748674
void Tokenizer::validate() const
86758675
{
8676-
std::stack<const Token *> linktok;
8676+
std::stack<const Token *> linkTokens;
86778677
const Token *lastTok = nullptr;
86788678
for (const Token *tok = tokens(); tok; tok = tok->next()) {
86798679
lastTok = tok;
86808680
if (Token::Match(tok, "[{([]") || (tok->str() == "<" && tok->link())) {
86818681
if (tok->link() == nullptr)
86828682
cppcheckError(tok);
86838683

8684-
linktok.push(tok);
8684+
linkTokens.push(tok);
86858685
}
86868686

86878687
else if (Token::Match(tok, "[})]]") || (tok->str() == ">" && tok->link())) {
86888688
if (tok->link() == nullptr)
86898689
cppcheckError(tok);
86908690

8691-
if (linktok.empty() == true)
8691+
if (linkTokens.empty() == true)
86928692
cppcheckError(tok);
86938693

8694-
if (tok->link() != linktok.top())
8694+
if (tok->link() != linkTokens.top())
86958695
cppcheckError(tok);
86968696

86978697
if (tok != tok->link()->link())
86988698
cppcheckError(tok);
86998699

8700-
linktok.pop();
8700+
linkTokens.pop();
87018701
}
87028702

87038703
else if (tok->link() != nullptr)
87048704
cppcheckError(tok);
87058705
}
87068706

8707-
if (!linktok.empty())
8708-
cppcheckError(linktok.top());
8707+
if (!linkTokens.empty())
8708+
cppcheckError(linkTokens.top());
87098709

87108710
// Validate that the Tokenizer::list.back() is updated correctly during simplifications
87118711
if (lastTok != list.back())

0 commit comments

Comments
 (0)