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/examples/FeatureList/FeatureList.cpp 
flang/include/flang/Parser/dump-parse-tree.h 
flang/include/flang/Parser/openmp-utils.h 
flang/include/flang/Parser/parse-tree.h flang/lib/Lower/OpenMP/OpenMP.cpp 
flang/lib/Parser/openmp-parsers.cpp flang/lib/Parser/openmp-utils.cpp 
flang/lib/Parser/unparse.cpp flang/lib/Semantics/canonicalize-omp.cpp 
flang/lib/Semantics/check-omp-structure.cpp 
flang/lib/Semantics/check-omp-structure.h 
flang/lib/Semantics/resolve-directives.cpp 
flang/lib/Semantics/resolve-names.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/lib/Lower/OpenMP/OpenMP.cpp 
b/flang/lib/Lower/OpenMP/OpenMP.cpp
index b901f24ae..ad456d89b 100644
--- a/flang/lib/Lower/OpenMP/OpenMP.cpp
+++ b/flang/lib/Lower/OpenMP/OpenMP.cpp
@@ -3503,10 +3503,10 @@ static void genOMP(lower::AbstractConverter &converter, 
lower::SymMap &symTable,
                    lower::pft::Evaluation &eval,
                    const parser::OpenMPUtilityConstruct &);
 
-static void
-genOMP(lower::AbstractConverter &converter, lower::SymMap &symTable,
-       semantics::SemanticsContext &semaCtx, lower::pft::Evaluation &eval,
-       const parser::OmpAllocateDirective &allocate) {
+static void genOMP(lower::AbstractConverter &converter, lower::SymMap 
&symTable,
+                   semantics::SemanticsContext &semaCtx,
+                   lower::pft::Evaluation &eval,
+                   const parser::OmpAllocateDirective &allocate) {
   if (!semaCtx.langOptions().OpenMPSimd)
     TODO(converter.getCurrentLocation(), "OmpAllocateDirective");
 }
diff --git a/flang/lib/Semantics/canonicalize-omp.cpp 
b/flang/lib/Semantics/canonicalize-omp.cpp
index 039dd7f56..77ca872ba 100644
--- a/flang/lib/Semantics/canonicalize-omp.cpp
+++ b/flang/lib/Semantics/canonicalize-omp.cpp
@@ -294,8 +294,8 @@ private:
     }
   }
 
-  parser::ExecutionPartConstruct EmbedInExec(parser::OmpAllocateDirective *alo,
-      parser::ExecutionPartConstruct &&epc) {
+  parser::ExecutionPartConstruct EmbedInExec(
+      parser::OmpAllocateDirective *alo, parser::ExecutionPartConstruct &&epc) 
{
     // Nest current epc inside the allocate directive.
     std::get<parser::Block>(alo->t).push_front(std::move(epc));
     // Set the new epc to be the ExecutionPartConstruct made from

``````````

</details>


https://github.com/llvm/llvm-project/pull/165865
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to