Moved CheckAssert::assertWithSideEffects to normal checking
This commit is contained in:
parent
7caa6628d5
commit
38d5712aaa
|
@ -49,9 +49,17 @@ public:
|
||||||
: Check(myName(), tokenizer, settings, errorLogger) {
|
: Check(myName(), tokenizer, settings, errorLogger) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** run checks, the token list is not simplified */
|
||||||
|
virtual void runChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) OVERRIDE {
|
||||||
|
CheckAssert checkAssert(tokenizer, settings, errorLogger);
|
||||||
|
checkAssert.assertWithSideEffects();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
virtual void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) OVERRIDE {
|
virtual void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) OVERRIDE {
|
||||||
CheckAssert check(tokenizer, settings, errorLogger);
|
(void)tokenizer;
|
||||||
check.assertWithSideEffects();
|
(void)settings;
|
||||||
|
(void)errorLogger;
|
||||||
}
|
}
|
||||||
|
|
||||||
void assertWithSideEffects();
|
void assertWithSideEffects();
|
||||||
|
|
|
@ -40,8 +40,8 @@ private:
|
||||||
tokenizer.tokenize(istr, filename);
|
tokenizer.tokenize(istr, filename);
|
||||||
|
|
||||||
// Check..
|
// Check..
|
||||||
CheckAssert checkAssert(&tokenizer, &settings, this);
|
CheckAssert checkAssert;
|
||||||
checkAssert.runSimplifiedChecks(&tokenizer, &settings, this);
|
checkAssert.runChecks(&tokenizer, &settings, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void run() OVERRIDE {
|
void run() OVERRIDE {
|
||||||
|
|
Loading…
Reference in New Issue