[clang-tools-extra] [llvm] [clang] [Clang] Fix : More Detailed "No expected directives found" (PR #78338)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 22 06:36:55 PST 2024
================
@@ -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 + ",";
+ }
----------------
tbaederr wrote:
In `PrintUnexpected` we're simply using `Diags.getDiagnosticOptions().VerifyPrefixed.begin`. How is this case different?
https://github.com/llvm/llvm-project/pull/78338
More information about the cfe-commits
mailing list