[Mlir-commits] [mlir] [MLIR][TableGen] Add inheritableExtraClassDeclaration/Definition for Op and AttrOrTypeDef (PR #182265)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Feb 19 06:13:44 PST 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/TableGen/AttrOrTypeDef.h mlir/include/mlir/TableGen/Operator.h mlir/lib/TableGen/AttrOrTypeDef.cpp mlir/lib/TableGen/Operator.cpp mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp mlir/tools/mlir-tblgen/OpDefinitionsGen.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/TableGen/Operator.h b/mlir/include/mlir/TableGen/Operator.h
index 7821eccc9..42c5c7a0c 100644
--- a/mlir/include/mlir/TableGen/Operator.h
+++ b/mlir/include/mlir/TableGen/Operator.h
@@ -310,8 +310,8 @@ public:
/// Collects inheritable extra class definitions accumulated across the
/// class hierarchy into `result`.
- void getInheritableExtraClassDefinitions(
- SmallVectorImpl<StringRef> &result) const;
+ void
+ getInheritableExtraClassDefinitions(SmallVectorImpl<StringRef> &result) const;
/// Returns the Tablegen definition this operator was constructed from.
/// TODO: do not expose the TableGen record, this is a temporary solution to
``````````
</details>
https://github.com/llvm/llvm-project/pull/182265
More information about the Mlir-commits
mailing list