Removed redundant suppression code in teststring.cpp
This commit is contained in:
parent
3aeecb8a05
commit
6a5eda51d3
|
@ -80,8 +80,7 @@ private:
|
||||||
settings.addEnabled("warning");
|
settings.addEnabled("warning");
|
||||||
|
|
||||||
// Preprocess file..
|
// Preprocess file..
|
||||||
SimpleSuppressor logger(settings, this);
|
Preprocessor preprocessor(&settings, this);
|
||||||
Preprocessor preprocessor(&settings, &logger);
|
|
||||||
std::list<std::string> configurations;
|
std::list<std::string> configurations;
|
||||||
std::string filedata;
|
std::string filedata;
|
||||||
std::istringstream fin(precode);
|
std::istringstream fin(precode);
|
||||||
|
@ -89,15 +88,13 @@ private:
|
||||||
const std::string code = preprocessor.getcode(filedata, "", "test.cpp");
|
const std::string code = preprocessor.getcode(filedata, "", "test.cpp");
|
||||||
|
|
||||||
// Tokenize..
|
// Tokenize..
|
||||||
Tokenizer tokenizer(&settings, &logger);
|
Tokenizer tokenizer(&settings, this);
|
||||||
std::istringstream istr(code);
|
std::istringstream istr(code);
|
||||||
tokenizer.tokenize(istr, "test.cpp");
|
tokenizer.tokenize(istr, "test.cpp");
|
||||||
|
|
||||||
// Check..
|
// Check..
|
||||||
CheckString checkString(&tokenizer, &settings, &logger);
|
CheckString checkString(&tokenizer, &settings, this);
|
||||||
checkString.checkAlwaysTrueOrFalseStringCompare();
|
checkString.checkAlwaysTrueOrFalseStringCompare();
|
||||||
|
|
||||||
logger.reportUnmatchedSuppressions(settings.nomsg.getUnmatchedLocalSuppressions("test.cpp"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void alwaysTrueFalseStringCompare() {
|
void alwaysTrueFalseStringCompare() {
|
||||||
|
|
Loading…
Reference in New Issue