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:
parent
d3d3d31613
commit
6cb563b3fe
|
@ -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 << ']';
|
||||
|
||||
|
|
Loading…
Reference in New Issue