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:
parent
b4a6d74e42
commit
0a7a4a9d55
|
@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue