[Mlir-commits] [mlir] [mlir] implement `-verify-diagnostics=only-expected` (PR #135131)

River Riddle llvmlistbot at llvm.org
Thu Apr 10 11:15:07 PDT 2025


================
@@ -644,6 +647,8 @@ class SourceMgrDiagnosticVerifierHandler : public SourceMgrDiagnosticHandler {
   void process(FileLineColLoc loc, StringRef msg, DiagnosticSeverity kind);
 
   std::unique_ptr<detail::SourceMgrDiagnosticVerifierHandlerImpl> impl;
+
+  Level level = Level::All;
----------------
River707 wrote:

In those cases expose a getter method for the Level. We shouldn't intermix pImpl and non-pimpl.

https://github.com/llvm/llvm-project/pull/135131


More information about the Mlir-commits mailing list