File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8673,39 +8673,39 @@ void Tokenizer::simplifyComma()
86738673
86748674void 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 ())
You can’t perform that action at this time.
0 commit comments