Reverted info message that only applies to CLI

This commit is contained in:
Daniel Marjamäki 2014-03-11 20:55:02 +01:00
parent aabee422e0
commit 3b4d024e06
2 changed files with 3 additions and 3 deletions

View File

@ -2378,7 +2378,7 @@ void Preprocessor::missingInclude(const std::string &filename, unsigned int line
locationList.push_back(loc); locationList.push_back(loc);
} }
ErrorLogger::ErrorMessage errmsg(locationList, Severity::information, ErrorLogger::ErrorMessage errmsg(locationList, Severity::information,
(headerType==SystemHeader) ? "Include file: <" + header + "> not found." : "Include file: \"" + header + "\" not found. Use -I to configure include paths.", (headerType==SystemHeader) ? "Include file: <" + header + "> not found." : "Include file: \"" + header + "\" not found.",
msgtype, false); msgtype, false);
errmsg.file0 = file0; errmsg.file0 = file0;
_errorLogger->reportInfo(errmsg); _errorLogger->reportInfo(errmsg);

View File

@ -3535,7 +3535,7 @@ private:
errout.str(""); errout.str("");
settings.checkConfiguration = true; settings.checkConfiguration = true;
preprocessor.handleIncludes(code,"test.c",includePaths,defs,pragmaOnce,std::list<std::string>()); preprocessor.handleIncludes(code,"test.c",includePaths,defs,pragmaOnce,std::list<std::string>());
ASSERT_EQUALS("[test.c:1]: (information) Include file: \"missing-include!!.h\" not found. Use -I to configure include paths.\n", errout.str()); ASSERT_EQUALS("[test.c:1]: (information) Include file: \"missing-include!!.h\" not found.\n", errout.str());
pragmaOnce.clear(); pragmaOnce.clear();
errout.str(""); errout.str("");
@ -3882,7 +3882,7 @@ private:
preprocessor.preprocess(istr, actual, "file.c"); preprocessor.preprocess(istr, actual, "file.c");
// Compare results.. // Compare results..
ASSERT_EQUALS("[file.c:2]: (information) Include file: \"config.h\" not found. Use -I to configure include paths.\n", errout.str()); ASSERT_EQUALS("[file.c:2]: (information) Include file: \"config.h\" not found.\n", errout.str());
ASSERT_EQUALS("\n\n\n\n\n", actual[""]); ASSERT_EQUALS("\n\n\n\n\n", actual[""]);
} }