[Mlir-commits] [mlir] [mlir][tablegen] make enum parser optional (PR #98508)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Jul 11 10:26:41 PDT 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 dd44003f579cc0f3538b58ef2cba2b6870598bc0 0eb49f7ef20336a334b286c210fd83cbbe0247d8 --extensions cpp,h -- mlir/include/mlir/TableGen/Attribute.h mlir/lib/TableGen/Attribute.cpp mlir/tools/mlir-tblgen/EnumsGen.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/TableGen/Attribute.cpp b/mlir/lib/TableGen/Attribute.cpp
index 8758aab58a..6da69266e9 100644
--- a/mlir/lib/TableGen/Attribute.cpp
+++ b/mlir/lib/TableGen/Attribute.cpp
@@ -229,9 +229,7 @@ bool EnumAttr::genSpecializedAttr() const {
   return def->getValueAsBit("genSpecializedAttr");
 }
 
-bool EnumAttr::genParser() const {
-  return def->getValueAsBit("genParser");
-}
+bool EnumAttr::genParser() const { return def->getValueAsBit("genParser"); }
 
 llvm::Record *EnumAttr::getBaseAttrClass() const {
   return def->getValueAsDef("baseAttrClass");

``````````

</details>


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


More information about the Mlir-commits mailing list