48 :
Check(myName(), tokenizer, settings, errorLogger) {}
52 if (!tokenizer.
isCPP())
60 void checkBoostForeachModification();
62 void boostForeachError(
const Token *tok);
74 return "Check for invalid usage of Boost:\n"
75 "- container modification during BOOST_FOREACH\n";
void runChecks(const Tokenizer &tokenizer, ErrorLogger *errorLogger) override
Run checks against the normal token list.
void getErrorMessages(ErrorLogger *errorLogger, const Settings *settings) const override
get error messages
static std::string myName()
void checkBoostForeachModification()
Check for container modification while using the BOOST_FOREACH macro
CheckBoost(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger)
This constructor is used when running checks.
std::string classInfo() const override
get information about this class, used to generate documentation
void boostForeachError(const Token *tok)
CheckBoost()
This constructor is used when registering the CheckClass.
Interface class that cppcheck uses to communicate with the checks.
This is an interface, which the class responsible of error logging should implement.
This is just a container for general settings so that we don't need to pass individual values to func...
The token list that the TokenList generates is a linked-list of this class.
The main purpose is to tokenize the source code.
const Settings & getSettings() const
bool isCPP() const
Is the code CPP.