[flang-commits] [flang] [flang][OpenMP] Fix standalone SIMD directive post-loop variable value (PR #196731)

via flang-commits flang-commits at lists.llvm.org
Fri Aug 14 08:35:32 PDT 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 -- flang/include/flang/Semantics/openmp-directive-sets.h flang/lib/Semantics/resolve-directives.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/flang/include/flang/Semantics/openmp-directive-sets.h b/flang/include/flang/Semantics/openmp-directive-sets.h
index 34332baf7..4d2135258 100644
--- a/flang/include/flang/Semantics/openmp-directive-sets.h
+++ b/flang/include/flang/Semantics/openmp-directive-sets.h
@@ -132,7 +132,8 @@ static const llvm::omp::DirectiveSet compositeSimdSet{
 static const llvm::omp::DirectiveSet allSimdSet{
     llvm::omp::DirectiveSet{
         Directive::OMPD_target_simd,
-    } | topSimdSet | compositeSimdSet,
+    } | topSimdSet |
+        compositeSimdSet,
 };
 
 static const llvm::omp::DirectiveSet topTargetSet{

``````````

</details>


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


More information about the flang-commits mailing list