[flang] [llvm] [flang][OpenMP] Frontend support for ATTACH modifier (PR #163608)

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 15 11:53:58 PDT 2025


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 cpp,h -- flang/include/flang/Parser/dump-parse-tree.h flang/include/flang/Parser/parse-tree.h flang/include/flang/Semantics/openmp-modifiers.h flang/lib/Lower/OpenMP/ClauseProcessor.cpp 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 llvm/include/llvm/Frontend/OpenMP/ClauseT.h llvm/include/llvm/Frontend/OpenMP/ConstructDecompositionT.h llvm/unittests/Frontend/OpenMPDecompositionTest.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/llvm/unittests/Frontend/OpenMPDecompositionTest.cpp b/llvm/unittests/Frontend/OpenMPDecompositionTest.cpp
index 42b2d2d5a..a8706ceac 100644
--- a/llvm/unittests/Frontend/OpenMPDecompositionTest.cpp
+++ b/llvm/unittests/Frontend/OpenMPDecompositionTest.cpp
@@ -575,8 +575,8 @@ TEST_F(OpenMPDecompositionTest, Lastprivate3) {
   std::string Dir1 = stringify(Dec.output[1]);
   std::string Dir2 = stringify(Dec.output[2]);
   ASSERT_EQ(Dir0, "target map(2, , , , , , (x))"); // (21), (27)
-  ASSERT_EQ(Dir1, "parallel shared(x)");          // (22)
-  ASSERT_EQ(Dir2, "do lastprivate(, (x))");       // (21)
+  ASSERT_EQ(Dir1, "parallel shared(x)");           // (22)
+  ASSERT_EQ(Dir2, "do lastprivate(, (x))");        // (21)
 }
 
 // SHARED

``````````

</details>


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


More information about the llvm-commits mailing list