Fixed #1886 (Associate header file with code file including it)
This commit is contained in:
parent
96d73c189c
commit
527354b4be
|
@ -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
|
||||
|
|
|
@ -138,6 +138,9 @@ public:
|
|||
Severity::SeverityType _severity;
|
||||
std::string _msg;
|
||||
std::string _id;
|
||||
|
||||
/** source file (not header) */
|
||||
std::string file0;
|
||||
};
|
||||
|
||||
ErrorLogger() { }
|
||||
|
|
Loading…
Reference in New Issue