[Mlir-commits] [mlir] [mlir] Skip symbol-user type verify when no type has the interface (PR #212160)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sun Jul 26 17:52:26 PDT 2026
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 origin/main HEAD --extensions h,cpp -- mlir/include/mlir/IR/MLIRContext.h mlir/lib/IR/MLIRContext.cpp mlir/lib/IR/SymbolTable.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/include/mlir/IR/MLIRContext.h b/mlir/include/mlir/IR/MLIRContext.h
index 1f4050362..ddc122bf9 100644
--- a/mlir/include/mlir/IR/MLIRContext.h
+++ b/mlir/include/mlir/IR/MLIRContext.h
@@ -214,7 +214,8 @@ public:
/// Return true if any type registered with this context implements
/// `InterfaceT`.
- template <typename InterfaceT> bool hasTypeImplementingInterface() {
+ template <typename InterfaceT>
+ bool hasTypeImplementingInterface() {
return hasTypeImplementingInterface(InterfaceT::getInterfaceID());
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/212160
More information about the Mlir-commits
mailing list