Preprocessor: allow that 'missingInclude' messages are suppressed with '--suppress=missingInclude'

This commit is contained in:
Daniel Marjamäki 2011-08-20 11:23:59 +02:00
parent 939504af3c
commit d5bf5b7ad2
1 changed files with 2 additions and 1 deletions

View File

@ -2019,7 +2019,8 @@ void Preprocessor::handleIncludes(std::string &code, const std::string &filePath
}
else if (!fileOpened && _settings && (headerType == UserHeader || _settings->debugwarnings))
{
missingIncludeFlag = true;
if (!_settings->nomsg.isSuppressed("missingInclude", "", 0))
missingIncludeFlag = true;
if (_errorLogger && _settings->checkConfiguration)
{