[Mlir-commits] [mlir] [mlir] Add metadata to Diagnostic. (PR #99398)

Mehdi Amini llvmlistbot at llvm.org
Wed Jul 17 16:03:02 PDT 2024


================
@@ -290,6 +293,9 @@ class Diagnostic {
 
   /// A list of attached notes.
   NoteVector notes;
+
+  /// A list of metadata attached to this Diagnostic.
+  SmallVector<DiagnosticArgument, 1> metadata;
----------------
joker-eph wrote:

```suggestion
  SmallVector<DiagnosticArgument, 0> metadata;
```

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


More information about the Mlir-commits mailing list