commit
0913a51ccd
|
@ -42,3 +42,7 @@ void Check::reportError(const ErrorLogger::ErrorMessage &errmsg)
|
||||||
{
|
{
|
||||||
std::cout << errmsg.toXML(true, 1) << std::endl;
|
std::cout << errmsg.toXML(true, 1) << std::endl;
|
||||||
}
|
}
|
||||||
|
std::list<Check *> &Check::instances() {
|
||||||
|
static std::list<Check *> *_instances= new std::list<Check *>;
|
||||||
|
return *_instances;
|
||||||
|
}
|
||||||
|
|
|
@ -53,10 +53,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
/** List of registered check classes. This is used by Cppcheck to run checks and generate documentation */
|
/** List of registered check classes. This is used by Cppcheck to run checks and generate documentation */
|
||||||
static std::list<Check *> &instances() {
|
static std::list<Check *> &instances();
|
||||||
static std::list<Check *> _instances;
|
|
||||||
return _instances;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** run checks, the token list is not simplified */
|
/** run checks, the token list is not simplified */
|
||||||
virtual void runChecks(const Tokenizer *, const Settings *, ErrorLogger *) {
|
virtual void runChecks(const Tokenizer *, const Settings *, ErrorLogger *) {
|
||||||
|
|
Loading…
Reference in New Issue