ErrorLogger: Adjust the severity in the 'clang' output format. as far as I know, clang severities are 'fatal error', 'error' and 'warning'.

This commit is contained in:
Daniel Marjamäki 2017-05-23 12:02:57 +02:00
parent d3d3d31613
commit 6cb563b3fe
1 changed files with 1 additions and 2 deletions

View File

@ -421,8 +421,7 @@ std::string ErrorLogger::ErrorMessage::toString(bool verbose, const std::string
const ErrorLogger::ErrorMessage::FileLocation &loc = _callStack.back();
text << loc.getfile() << ':' << loc.line << ':' << loc.col << ": ";
}
text << Severity::toString(_severity)
<< ": "
text << ((_id == "syntaxError" || _id=="internalError") ? "error: " : "warning: ")
<< (verbose ? _verboseMessage : _shortMessage)
<< " [" << _id << ']';