@@ -5631,8 +5631,6 @@ bool Tokenizer::simplifyTokenList1(const char FileName[])
56315631 findGarbageCode ();
56325632 });
56335633
5634- checkConfiguration ();
5635-
56365634 // if (x) MACRO() ..
56375635 for (const Token *tok = list.front (); tok; tok = tok->next ()) {
56385636 if (Token::simpleMatch (tok, " if (" )) {
@@ -8219,14 +8217,6 @@ void Tokenizer::unhandled_macro_class_x_y(const Token *tok, const std::string& t
82198217 bracket + " ' is not handled. You can use -I or --include to add handling of this code." );
82208218}
82218219
8222- void Tokenizer::macroWithSemicolonError (const Token *tok, const std::string ¯oName) const
8223- {
8224- reportError (tok,
8225- Severity::information,
8226- " macroWithSemicolon" ,
8227- " Ensure that '" + macroName + " ' is defined either using -I, --include or -D." );
8228- }
8229-
82308220void Tokenizer::invalidConstFunctionTypeError (const Token *tok) const
82318221{
82328222 reportError (tok,
@@ -8287,25 +8277,6 @@ bool Tokenizer::isOneNumber(const std::string &s)
82878277 return isNumberOneOf (s, 1L , " 1.0" );
82888278}
82898279// ------------------------------------------------------------------------
8290- void Tokenizer::checkConfiguration () const
8291- {
8292- if (!mSettings .checkConfiguration )
8293- return ;
8294- for (const Token *tok = tokens (); tok; tok = tok->next ()) {
8295- if (!Token::Match (tok, " %name% (" ))
8296- continue ;
8297- if (tok->isControlFlowKeyword ())
8298- continue ;
8299- for (const Token *tok2 = tok->tokAt (2 ); tok2 && tok2->str () != " )" ; tok2 = tok2->next ()) {
8300- if (tok2->str () == " ;" ) {
8301- macroWithSemicolonError (tok, tok->str ());
8302- break ;
8303- }
8304- if (Token::Match (tok2, " (|{" ))
8305- tok2 = tok2->link ();
8306- }
8307- }
8308- }
83098280
83108281void Tokenizer::validateC () const
83118282{
@@ -11033,6 +11004,5 @@ void Tokenizer::getErrorMessages(ErrorLogger& errorLogger, const Settings& setti
1103311004 tokenizer.invalidConstFunctionTypeError (nullptr );
1103411005 // checkLibraryNoReturn
1103511006 tokenizer.unhandled_macro_class_x_y (nullptr , " " , " " , " " , " " );
11036- tokenizer.macroWithSemicolonError (nullptr , " " );
1103711007 tokenizer.unhandledCharLiteral (nullptr , " " );
1103811008}
0 commit comments