[Mlir-commits] [mlir] [mlir] Provide constexpr constructor for c++20 compat (PR #154887)
Jordan Rupprecht
llvmlistbot at llvm.org
Fri Aug 22 07:35:29 PDT 2025
================
@@ -60,7 +60,12 @@ struct RemarkOpts {
StringRef categoryName; // Category name (subject to regex filtering)
StringRef subCategoryName; // Subcategory name
StringRef functionName; // Function name if available
- RemarkOpts() = delete;
----------------
rupprecht wrote:
Works for me.
I believe this isn't available in c++17, but in c++20 it will allow construction like `{.remarkName = "name", ...}`, which IMO is more readable.
https://github.com/llvm/llvm-project/pull/154887
More information about the Mlir-commits
mailing list