refactoring - added a function getErrorMessages that will be used to get a list of error messages
This commit is contained in:
parent
bcad5afb26
commit
001cb0a7ec
|
@ -60,6 +60,9 @@ public:
|
||||||
/** run checks, the token list is simplified */
|
/** run checks, the token list is simplified */
|
||||||
virtual void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) = 0;
|
virtual void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) = 0;
|
||||||
|
|
||||||
|
/** get error messages */
|
||||||
|
virtual void getErrorMessages()
|
||||||
|
{ }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
const Tokenizer * const _tokenizer;
|
const Tokenizer * const _tokenizer;
|
||||||
|
|
|
@ -83,6 +83,10 @@ private:
|
||||||
|
|
||||||
void iteratorsError(const Token *tok, const std::string &container1, const std::string &container2);
|
void iteratorsError(const Token *tok, const std::string &container1, const std::string &container2);
|
||||||
|
|
||||||
|
void getErrorMessages()
|
||||||
|
{
|
||||||
|
iteratorsError(0, "container1", "container2");
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue