================ @@ -1098,7 +1098,16 @@ void VerifyDiagnosticConsumer::CheckDiagnostics() { // Produce an error if no expected-* directives could be found in the // source file(s) processed. if (Status == HasNoDirectives) { - Diags.Report(diag::err_verify_no_directives).setForceEmit(); + std::string directives; + for (auto &Prefix : Diags.getDiagnosticOptions().VerifyPrefixes) { + directives = directives + Prefix + ","; + } ---------------- Sh0g0-1758 wrote:
yes suppose multiple diagnostics were not found like given in the third case here : >  then in the error generated, I give all the diagnostics as ```consider use of 'foo,alpha,bar,gamma-no-diagnostics'```. But if that is not the intended behavior or if multiple errors are expected to be emitted in response to multiple diagnostics not found, then that can also be done. Please specify which of the two is required. https://github.com/llvm/llvm-project/pull/78338 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits