[flang-commits] [llvm] [flang] [OpenMP][Draft] Breaking up of combined/composite directives (PR #80059)

via flang-commits flang-commits at lists.llvm.org
Tue Jan 30 13:00: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 6aed6cc40ec0006bb43f1ec4b2ec87702392ad6e 5ae6a2021aa8d449f752b72010c26c0aa5e7cd69 -- flang/lib/Lower/OpenMP.cpp flang/tools/bbc/bbc.cpp llvm/include/llvm/TableGen/DirectiveEmitter.h llvm/utils/TableGen/DirectiveEmitter.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/lib/Lower/OpenMP.cpp b/flang/lib/Lower/OpenMP.cpp
index be9531b574..a03ba69a82 100644
--- a/flang/lib/Lower/OpenMP.cpp
+++ b/flang/lib/Lower/OpenMP.cpp
@@ -590,8 +590,7 @@ static bool applyToOutermost(llvm::omp::Clause clauseId,
 template <typename Predicate>
 static bool applyIf(llvm::omp::Clause clauseId,
                     const Fortran::parser::OmpClause *clauseNode,
-                    CompositeInfo &compInfo,
-                    Predicate shouldApply) {
+                    CompositeInfo &compInfo, Predicate shouldApply) {
   bool applied = false;
   uint32_t version = getOpenMPVersion(compInfo.mod);
   for (DirectiveInfo &dir : compInfo.leafs) {

``````````

</details>


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


More information about the flang-commits mailing list