parent
4778e410d0
commit
0a19e90b49
|
@ -78,7 +78,7 @@ runCheckOnCode(StringRef Code, std::vector<ClangTidyError> *Errors = nullptr,
|
||||||
Invocation.setDiagnosticConsumer(&DiagConsumer);
|
Invocation.setDiagnosticConsumer(&DiagConsumer);
|
||||||
if (!Invocation.run()) {
|
if (!Invocation.run()) {
|
||||||
std::string ErrorText;
|
std::string ErrorText;
|
||||||
for (const auto &Error:Context.getErrors()) {
|
for (const auto &Error : Context.getErrors()) {
|
||||||
ErrorText += Error.Message.Message + "\n";
|
ErrorText += Error.Message.Message + "\n";
|
||||||
}
|
}
|
||||||
llvm::report_fatal_error(ErrorText);
|
llvm::report_fatal_error(ErrorText);
|
||||||
|
|
Loading…
Reference in New Issue