From 6a5eda51d3039442521499aa4c2e856de4e0abaa Mon Sep 17 00:00:00 2001 From: PKEuS Date: Fri, 29 Aug 2014 17:02:13 +0200 Subject: [PATCH] Removed redundant suppression code in teststring.cpp --- test/teststring.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/test/teststring.cpp b/test/teststring.cpp index 25ab53aa9..0e1b1ad7b 100644 --- a/test/teststring.cpp +++ b/test/teststring.cpp @@ -80,8 +80,7 @@ private: settings.addEnabled("warning"); // Preprocess file.. - SimpleSuppressor logger(settings, this); - Preprocessor preprocessor(&settings, &logger); + Preprocessor preprocessor(&settings, this); std::list configurations; std::string filedata; std::istringstream fin(precode); @@ -89,15 +88,13 @@ private: const std::string code = preprocessor.getcode(filedata, "", "test.cpp"); // Tokenize.. - Tokenizer tokenizer(&settings, &logger); + Tokenizer tokenizer(&settings, this); std::istringstream istr(code); tokenizer.tokenize(istr, "test.cpp"); // Check.. - CheckString checkString(&tokenizer, &settings, &logger); + CheckString checkString(&tokenizer, &settings, this); checkString.checkAlwaysTrueOrFalseStringCompare(); - - logger.reportUnmatchedSuppressions(settings.nomsg.getUnmatchedLocalSuppressions("test.cpp")); } void alwaysTrueFalseStringCompare() {