Skip to content

Commit 6a5eda5

Browse files
committed
Removed redundant suppression code in teststring.cpp
1 parent 3aeecb8 commit 6a5eda5

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

test/teststring.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,24 +80,21 @@ class TestString : public TestFixture {
8080
settings.addEnabled("warning");
8181

8282
// Preprocess file..
83-
SimpleSuppressor logger(settings, this);
84-
Preprocessor preprocessor(&settings, &logger);
83+
Preprocessor preprocessor(&settings, this);
8584
std::list<std::string> configurations;
8685
std::string filedata;
8786
std::istringstream fin(precode);
8887
preprocessor.preprocess(fin, filedata, configurations, "test.cpp", settings._includePaths);
8988
const std::string code = preprocessor.getcode(filedata, "", "test.cpp");
9089

9190
// Tokenize..
92-
Tokenizer tokenizer(&settings, &logger);
91+
Tokenizer tokenizer(&settings, this);
9392
std::istringstream istr(code);
9493
tokenizer.tokenize(istr, "test.cpp");
9594

9695
// Check..
97-
CheckString checkString(&tokenizer, &settings, &logger);
96+
CheckString checkString(&tokenizer, &settings, this);
9897
checkString.checkAlwaysTrueOrFalseStringCompare();
99-
100-
logger.reportUnmatchedSuppressions(settings.nomsg.getUnmatchedLocalSuppressions("test.cpp"));
10198
}
10299

103100
void alwaysTrueFalseStringCompare() {

0 commit comments

Comments
 (0)