CheckInternal: Use 'normal' checking
This commit is contained in:
parent
f40a80c349
commit
0e88a17aca
|
@ -43,8 +43,7 @@ public:
|
||||||
: Check(myName(), tokenizer, settings, errorLogger) {
|
: Check(myName(), tokenizer, settings, errorLogger) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Simplified checks. The token list is simplified. */
|
void runChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) OVERRIDE {
|
||||||
void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) OVERRIDE {
|
|
||||||
if (!settings->isEnabled(Settings::INTERNAL))
|
if (!settings->isEnabled(Settings::INTERNAL))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -60,6 +59,13 @@ public:
|
||||||
checkInternal.checkStlUsage();
|
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 */
|
/** @brief %Check if a simple pattern is used inside Token::Match or Token::findmatch */
|
||||||
void checkTokenMatchPatterns();
|
void checkTokenMatchPatterns();
|
||||||
|
|
||||||
|
|
|
@ -55,11 +55,10 @@ private:
|
||||||
Tokenizer tokenizer(&settings, this);
|
Tokenizer tokenizer(&settings, this);
|
||||||
std::istringstream istr(code);
|
std::istringstream istr(code);
|
||||||
tokenizer.tokenize(istr, "test.cpp");
|
tokenizer.tokenize(istr, "test.cpp");
|
||||||
tokenizer.simplifyTokenList2();
|
|
||||||
|
|
||||||
// Check..
|
// Check..
|
||||||
CheckInternal checkInternal;
|
CheckInternal checkInternal;
|
||||||
checkInternal.runSimplifiedChecks(&tokenizer, &settings, this);
|
checkInternal.runChecks(&tokenizer, &settings, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void simplePatternInTokenMatch() {
|
void simplePatternInTokenMatch() {
|
||||||
|
|
Loading…
Reference in New Issue