CheckInternal: Use 'normal' checking
This commit is contained in:
parent
f40a80c349
commit
0e88a17aca
|
@ -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();
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue