Fixed #1886 (Associate header file with code file including it)

This commit is contained in:
Daniel Marjamäki 2010-08-30 17:44:46 +02:00
parent 96d73c189c
commit 527354b4be
2 changed files with 6 additions and 1 deletions

View File

@ -151,7 +151,9 @@ protected:
locationList.push_back(loc);
}
const ErrorLogger::ErrorMessage errmsg(locationList, severity, msg, id);
ErrorLogger::ErrorMessage errmsg(locationList, severity, msg, id);
if (_tokenizer && _tokenizer->getFiles() && !_tokenizer->getFiles()->empty())
errmsg.file0 = _tokenizer->getFiles()->at(0);
if (_errorLogger)
_errorLogger->reportErr(errmsg);
else

View File

@ -138,6 +138,9 @@ public:
Severity::SeverityType _severity;
std::string _msg;
std::string _id;
/** source file (not header) */
std::string file0;
};
ErrorLogger() { }