[Mlir-commits] [mlir] [mlir] Add `Print(Attr|Type)Qualified` trait (PR #80420)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Feb 2 04:11:14 PST 2024


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 1bbb797e9c7f37aa814b9bbaba2961f730a26891 94c47995dff5a3a57b7066676dfe40b1caf713dc -- mlir/include/mlir/IR/Attributes.h mlir/include/mlir/IR/OpImplementation.h mlir/include/mlir/IR/Types.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/include/mlir/IR/OpImplementation.h b/mlir/include/mlir/IR/OpImplementation.h
index 402399cf29..50e6cc59ca 100644
--- a/mlir/include/mlir/IR/OpImplementation.h
+++ b/mlir/include/mlir/IR/OpImplementation.h
@@ -176,7 +176,8 @@ public:
   /// SFINAE for printing the provided attribute in the context of an operation
   /// custom printer in the case where the attribute does not define a print
   /// method.
-  template <typename AttrOrType,
+  template <
+      typename AttrOrType,
       std::enable_if_t<!shouldPrintStripped<AttrOrType>> *sfinae = nullptr>
   void printStrippedAttrOrType(AttrOrType attrOrType) {
     *this << attrOrType;

``````````

</details>


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


More information about the Mlir-commits mailing list