[flang-commits] [flang] [flang] Fix attribute printing for fir.global op (PR #81197)

via flang-commits flang-commits at lists.llvm.org
Thu Feb 8 14:08:00 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 b92e0a31dab5917f31b4672430004add34b5e775 5711c389617dbe4290866cd8211421cd69962b7c -- flang/lib/Optimizer/Dialect/FIROps.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/lib/Optimizer/Dialect/FIROps.cpp b/flang/lib/Optimizer/Dialect/FIROps.cpp
index 991d83df7f..a5b31daa64 100644
--- a/flang/lib/Optimizer/Dialect/FIROps.cpp
+++ b/flang/lib/Optimizer/Dialect/FIROps.cpp
@@ -1384,9 +1384,10 @@ void fir::GlobalOp::print(mlir::OpAsmPrinter &p) {
     p << '(' << val << ')';
   // Print all other attributes that are not pretty printed here.
   p.printOptionalAttrDict((*this)->getAttrs(), /*elideAttrs=*/{
-      getSymNameAttrName(), getSymrefAttrName(), getTypeAttrName(),
-      getConstantAttrName(), getTargetAttrName(), getLinkNameAttrName(),
-      getInitValAttrName()});
+                              getSymNameAttrName(), getSymrefAttrName(),
+                              getTypeAttrName(), getConstantAttrName(),
+                              getTargetAttrName(), getLinkNameAttrName(),
+                              getInitValAttrName()});
   if (getOperation()->getAttr(getConstantAttrName()))
     p << " " << getConstantAttrNameStr();
   if (getOperation()->getAttr(getTargetAttrName()))

``````````

</details>


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


More information about the flang-commits mailing list