Update to ticket #265 (Log a warning when an include file is not found)

Only warn about "foo.h", don't warn about <foo.h>
http://sourceforge.net/apps/trac/cppcheck/ticket/265
This commit is contained in:
Reijo Tomperi 2009-07-26 23:15:29 +03:00
parent b4a6d74e42
commit 0a7a4a9d55
1 changed files with 2 additions and 2 deletions

View File

@ -1081,9 +1081,9 @@ void Preprocessor::handleIncludes(std::string &code, const std::string &filename
}
else
{
if (_errorLogger && _settings && _settings->_verbose)
if (headerType == 1 && _errorLogger && _settings && _settings->_verbose)
{
_errorLogger->reportOut("Include file: \"" + paths.back() + filename + "\" not found.");
_errorLogger->reportOut("Include file: \"" + filename + "\" not found.");
}
}
}