CheckInternal: Use 'normal' checking

This commit is contained in:
Daniel Marjamäki 2019-03-16 08:51:33 +01:00
parent f40a80c349
commit 0e88a17aca
2 changed files with 9 additions and 4 deletions

View File

@ -43,8 +43,7 @@ public:
: Check(myName(), tokenizer, settings, errorLogger) {
}
/** Simplified checks. The token list is simplified. */
void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) OVERRIDE {
void runChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) OVERRIDE {
if (!settings->isEnabled(Settings::INTERNAL))
return;
@ -60,6 +59,13 @@ public:
checkInternal.checkStlUsage();
}
/** Simplified checks. The token list is simplified. */
void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) OVERRIDE {
(void)tokenizer;
(void)settings;
(void)errorLogger;
}
/** @brief %Check if a simple pattern is used inside Token::Match or Token::findmatch */
void checkTokenMatchPatterns();

View File

@ -55,11 +55,10 @@ private:
Tokenizer tokenizer(&settings, this);
std::istringstream istr(code);
tokenizer.tokenize(istr, "test.cpp");
tokenizer.simplifyTokenList2();
// Check..
CheckInternal checkInternal;
checkInternal.runSimplifiedChecks(&tokenizer, &settings, this);
checkInternal.runChecks(&tokenizer, &settings, this);
}
void simplePatternInTokenMatch() {