tbaeder created this revision. tbaeder added a reviewer: clang. Herald added a project: All. tbaeder requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D154688 Files: clang/lib/Frontend/VerifyDiagnosticConsumer.cpp Index: clang/lib/Frontend/VerifyDiagnosticConsumer.cpp =================================================================== --- clang/lib/Frontend/VerifyDiagnosticConsumer.cpp +++ clang/lib/Frontend/VerifyDiagnosticConsumer.cpp @@ -876,8 +876,11 @@ OS << ": " << I->second; } + std::string Prefix = *Diags.getDiagnosticOptions().VerifyPrefixes.begin(); + std::string KindStr = Prefix + "-" + Kind; + Diags.Report(diag::err_verify_inconsistent_diags).setForceEmit() - << Kind << /*Unexpected=*/true << OS.str(); + << KindStr << /*Unexpected=*/true << OS.str(); return std::distance(diag_begin, diag_end); } @@ -907,8 +910,11 @@ OS << ": " << D->Text; } + std::string Prefix = *Diags.getDiagnosticOptions().VerifyPrefixes.begin(); + std::string KindStr = Prefix + "-" + Kind; + Diags.Report(diag::err_verify_inconsistent_diags).setForceEmit() - << Kind << /*Unexpected=*/false << OS.str(); + << KindStr << /*Unexpected=*/false << OS.str(); return DL.size(); }
Index: clang/lib/Frontend/VerifyDiagnosticConsumer.cpp =================================================================== --- clang/lib/Frontend/VerifyDiagnosticConsumer.cpp +++ clang/lib/Frontend/VerifyDiagnosticConsumer.cpp @@ -876,8 +876,11 @@ OS << ": " << I->second; } + std::string Prefix = *Diags.getDiagnosticOptions().VerifyPrefixes.begin(); + std::string KindStr = Prefix + "-" + Kind; + Diags.Report(diag::err_verify_inconsistent_diags).setForceEmit() - << Kind << /*Unexpected=*/true << OS.str(); + << KindStr << /*Unexpected=*/true << OS.str(); return std::distance(diag_begin, diag_end); } @@ -907,8 +910,11 @@ OS << ": " << D->Text; } + std::string Prefix = *Diags.getDiagnosticOptions().VerifyPrefixes.begin(); + std::string KindStr = Prefix + "-" + Kind; + Diags.Report(diag::err_verify_inconsistent_diags).setForceEmit() - << Kind << /*Unexpected=*/false << OS.str(); + << KindStr << /*Unexpected=*/false << OS.str(); return DL.size(); }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits