diff --git a/clang-tools-extra/unittests/clang-tidy/ClangTidyTest.h b/clang-tools-extra/unittests/clang-tidy/ClangTidyTest.h index 62f45bc1beee..fb5e43a0b991 100644 --- a/clang-tools-extra/unittests/clang-tidy/ClangTidyTest.h +++ b/clang-tools-extra/unittests/clang-tidy/ClangTidyTest.h @@ -78,7 +78,7 @@ runCheckOnCode(StringRef Code, std::vector *Errors = nullptr, Invocation.setDiagnosticConsumer(&DiagConsumer); if (!Invocation.run()) { std::string ErrorText; - for (const auto &Error:Context.getErrors()) { + for (const auto &Error : Context.getErrors()) { ErrorText += Error.Message.Message + "\n"; } llvm::report_fatal_error(ErrorText);