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) {
|
||||
}
|
||||
|
||||
/** 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 {
|
||||
CheckAssert check(tokenizer, settings, errorLogger);
|
||||
check.assertWithSideEffects();
|
||||
(void)tokenizer;
|
||||
(void)settings;
|
||||
(void)errorLogger;
|
||||
}
|
||||
|
||||
void assertWithSideEffects();
|
||||
|
|
|
@ -40,8 +40,8 @@ private:
|
|||
tokenizer.tokenize(istr, filename);
|
||||
|
||||
// Check..
|
||||
CheckAssert checkAssert(&tokenizer, &settings, this);
|
||||
checkAssert.runSimplifiedChecks(&tokenizer, &settings, this);
|
||||
CheckAssert checkAssert;
|
||||
checkAssert.runChecks(&tokenizer, &settings, this);
|
||||
}
|
||||
|
||||
void run() OVERRIDE {
|
||||
|
|
Loading…
Reference in New Issue