[Mlir-commits] [mlir] [mlir] [irdl] Optional attributes in irdl (PR #110981)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Feb 20 10:05:32 PST 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 1e1bf7971b1b8c74aa4de2c055c402d0085e87b8 936e69fffdc404433fd95e3a6f9899b6e399579a --extensions cpp -- mlir/lib/Dialect/IRDL/IR/IRDL.cpp mlir/tools/tblgen-to-irdl/OpDefinitionsGen.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/IRDL/IR/IRDL.cpp b/mlir/lib/Dialect/IRDL/IR/IRDL.cpp
index 641f8b7eef..2f2646a43d 100644
--- a/mlir/lib/Dialect/IRDL/IR/IRDL.cpp
+++ b/mlir/lib/Dialect/IRDL/IR/IRDL.cpp
@@ -198,10 +198,10 @@ LogicalResult AttributesOp::verify() {
for (size_t i = 0; i < numVariadicities; ++i) {
if (variadicities[i].getValue() == Variadicity::variadic) {
// auto test =
- return emitOpError() << "requires attributes to have single or optional variadicity, but " << getAttributeValueNames()[i]
+ return emitOpError() << "requires attributes to have single or optional "
+ "variadicity, but "
+ << getAttributeValueNames()[i]
<< " was specified as variadic.";
-
-
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/110981
More information about the Mlir-commits
mailing list