================
@@ -2020,13 +2037,14 @@ class DeferredDiagnosticsEmitter
DiagnosticBuilder Builder(S.Diags.Report(Loc, PD.getDiagID()));
PD.Emit(Builder);
}
- // Emit the note on the first diagnostic in case too many diagnostics
- // cause the note not emitted.
- if (FirstDiag && HasWarningOrError && ShowCallStack) {
- emitCallStackNotes(S, FD);
- FirstDiag = false;
- }
}
+ if (HasWarningOrError)
+ emitCallStackNotes(S, FD);
+ }
+
+ void emitCollectedDiags() {
+ for (const auto &FD : FnsToEmit)
----------------
yxsamliu wrote:
Yes, FnsToEmit is a SetVector which maintains insertion order, so the iteration
is deterministic.
https://github.com/llvm/llvm-project/pull/185926
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits