Run more tests on full token list (#2020)
Since all checks are run on the full token list and not the simplified one, run the tests on the full token list as well.
This commit is contained in:
parent
2915376c4f
commit
06337cedf5
|
@ -41,7 +41,6 @@ private:
|
|||
Tokenizer tokenizer(&settings, this);
|
||||
std::istringstream istr(code);
|
||||
tokenizer.tokenize(istr, "test.cpp");
|
||||
tokenizer.simplifyTokenList2();
|
||||
|
||||
// Check class constructors..
|
||||
CheckClass checkClass(&tokenizer, &settings, this);
|
||||
|
|
|
@ -1853,7 +1853,6 @@ private:
|
|||
Tokenizer tokenizer(&settings1, this);
|
||||
std::istringstream istr(code);
|
||||
tokenizer.tokenize(istr, filename);
|
||||
tokenizer.simplifyTokenList2();
|
||||
|
||||
// force symbol database creation
|
||||
tokenizer.createSymbolDatabase();
|
||||
|
|
|
@ -3933,7 +3933,6 @@ private:
|
|||
Tokenizer tokenizer(&settings, this);
|
||||
std::istringstream istr(code);
|
||||
tokenizer.tokenize(istr, "test.cpp");
|
||||
tokenizer.simplifyTokenList2();
|
||||
|
||||
// Check code..
|
||||
CheckUninitVar check(&tokenizer, &settings, this);
|
||||
|
@ -3952,8 +3951,6 @@ private:
|
|||
std::istringstream istr(code);
|
||||
tokenizer.tokenize(istr, "test.cpp");
|
||||
|
||||
tokenizer.simplifyTokenList2();
|
||||
|
||||
// Check for redundant code..
|
||||
CheckUninitVar checkuninitvar(&tokenizer, &settings, this);
|
||||
checkuninitvar.valueFlowUninit();
|
||||
|
|
|
@ -105,7 +105,6 @@ private:
|
|||
Tokenizer tokenizer(&settings, this);
|
||||
tokenizer.createTokens(&tokens2);
|
||||
tokenizer.simplifyTokens1("");
|
||||
tokenizer.simplifyTokenList2();
|
||||
|
||||
// Check for unused private functions..
|
||||
CheckClass checkClass(&tokenizer, &settings, this);
|
||||
|
|
Loading…
Reference in New Issue