[flang] [llvm] [flang][OpenMP] Rework LINEAR clause (PR #119278)

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 9 14:22:55 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 7d89ebfd5f93577e7b1f12d1d21ee3e87eacde07 919a6d74d15d1b3dff8577ef6a92ff79da1b042e --extensions cpp,h -- flang/examples/FeatureList/FeatureList.cpp flang/include/flang/Parser/dump-parse-tree.h flang/include/flang/Parser/parse-tree-visitor.h flang/include/flang/Parser/parse-tree.h flang/include/flang/Semantics/openmp-modifiers.h flang/lib/Lower/OpenMP/Clauses.cpp flang/lib/Parser/openmp-parsers.cpp flang/lib/Parser/unparse.cpp flang/lib/Semantics/check-omp-structure.cpp flang/lib/Semantics/openmp-modifiers.cpp flang/lib/Semantics/resolve-directives.cpp llvm/include/llvm/Frontend/OpenMP/ClauseT.h llvm/unittests/Frontend/OpenMPDecompositionTest.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/lib/Parser/unparse.cpp b/flang/lib/Parser/unparse.cpp
index 2085c62f74..8e6bd89dd6 100644
--- a/flang/lib/Parser/unparse.cpp
+++ b/flang/lib/Parser/unparse.cpp
@@ -2142,7 +2142,7 @@ public:
   void Unparse(const OmpLinearClause &x) {
     using Modifier = OmpLinearClause::Modifier;
     auto &modifiers{std::get<std::optional<std::list<Modifier>>>(x.t)};
-    if (std::get<bool>(x.t)) {  // PostModified
+    if (std::get<bool>(x.t)) { // PostModified
       Walk(std::get<OmpObjectList>(x.t));
       Walk(": ", modifiers);
     } else {

``````````

</details>


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


More information about the llvm-commits mailing list