@@ -165,15 +165,17 @@ FileSpecificDiagnosticConsumer::subconsumerForLocation(SourceManager &SM,
165165void FileSpecificDiagnosticConsumer::handleDiagnostic (
166166 SourceManager &SM, SourceLoc Loc, DiagnosticKind Kind,
167167 StringRef FormatString, ArrayRef<DiagnosticArgument> FormatArgs,
168- const DiagnosticInfo &Info, const SourceLoc bufferIndirectlyCausingDiagnostic) {
168+ const DiagnosticInfo &Info,
169+ const SourceLoc bufferIndirectlyCausingDiagnostic) {
169170
170171 HasAnErrorBeenConsumed |= Kind == DiagnosticKind::Error;
171172
172173 auto subconsumer =
173174 findSubconsumer (SM, Loc, Kind, bufferIndirectlyCausingDiagnostic);
174175 if (subconsumer) {
175- subconsumer.getValue ()->handleDiagnostic (
176- SM, Loc, Kind, FormatString, FormatArgs, Info, bufferIndirectlyCausingDiagnostic);
176+ subconsumer.getValue ()->handleDiagnostic (SM, Loc, Kind, FormatString,
177+ FormatArgs, Info,
178+ bufferIndirectlyCausingDiagnostic);
177179 return ;
178180 }
179181 // Last resort: spray it everywhere
@@ -191,7 +193,8 @@ FileSpecificDiagnosticConsumer::findSubconsumer(
191193 case DiagnosticKind::Error:
192194 case DiagnosticKind::Warning:
193195 case DiagnosticKind::Remark: {
194- auto subconsumer = findSubconsumerForNonNote (SM, loc, bufferIndirectlyCausingDiagnostic);
196+ auto subconsumer =
197+ findSubconsumerForNonNote (SM, loc, bufferIndirectlyCausingDiagnostic);
195198 SubconsumerForSubsequentNotes = subconsumer;
196199 return subconsumer;
197200 }
@@ -252,7 +255,8 @@ ForwardingDiagnosticConsumer::ForwardingDiagnosticConsumer(DiagnosticEngine &Tar
252255void ForwardingDiagnosticConsumer::handleDiagnostic (
253256 SourceManager &SM, SourceLoc Loc, DiagnosticKind Kind,
254257 StringRef FormatString, ArrayRef<DiagnosticArgument> FormatArgs,
255- const DiagnosticInfo &Info, const SourceLoc bufferIndirectlyCausingDiagnostic) {
258+ const DiagnosticInfo &Info,
259+ const SourceLoc bufferIndirectlyCausingDiagnostic) {
256260 LLVM_DEBUG ({
257261 llvm::dbgs () << " ForwardingDiagnosticConsumer received diagnostic: " ;
258262 DiagnosticEngine::formatDiagnosticText (llvm::dbgs (), FormatString,
0 commit comments