================
@@ -41,6 +71,7 @@ OptionalDiagnostic State::FFDiag(SourceInfo SI, diag::kind
DiagId,
OptionalDiagnostic State::CCEDiag(SourceLocation Loc, diag::kind DiagId,
unsigned ExtraNotes) {
+ clearDiagIfNeeded(DiagId);
----------------
eleviant wrote:
I think, we can try to skip these diagnostics instead of adding and then
removing them. This seems to work better as well as removes large fraction of
the code
https://github.com/llvm/llvm-project/pull/197005
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits