[flang-commits] [flang] [flang] clang-format Semantics sources, NFC (PR #153959)

via flang-commits flang-commits at lists.llvm.org
Sat Aug 16 08:26:00 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 HEAD~1 HEAD --extensions h,cpp -- flang/include/flang/Semantics/scope.h flang/include/flang/Semantics/symbol.h flang/include/flang/Semantics/tools.h flang/include/flang/Semantics/unparse-with-symbols.h flang/lib/Semantics/assignment.cpp flang/lib/Semantics/canonicalize-acc.cpp flang/lib/Semantics/check-acc-structure.cpp flang/lib/Semantics/check-allocate.cpp flang/lib/Semantics/check-arithmeticif.h flang/lib/Semantics/check-call.cpp flang/lib/Semantics/check-case.cpp flang/lib/Semantics/check-coarray.cpp flang/lib/Semantics/check-cuda.cpp flang/lib/Semantics/check-deallocate.cpp flang/lib/Semantics/check-declarations.cpp flang/lib/Semantics/check-do-forall.cpp flang/lib/Semantics/check-io.cpp flang/lib/Semantics/check-io.h flang/lib/Semantics/check-omp-structure.cpp flang/lib/Semantics/check-select-rank.cpp flang/lib/Semantics/compute-offsets.cpp flang/lib/Semantics/data-to-inits.cpp flang/lib/Semantics/definable.cpp flang/lib/Semantics/expression.cpp flang/lib/Semantics/mod-file.cpp flang/lib/Semantics/pointer-assignment.cpp flang/lib/Semantics/resolve-directives.cpp flang/lib/Semantics/resolve-labels.cpp flang/lib/Semantics/resolve-names-utils.cpp flang/lib/Semantics/resolve-names.cpp flang/lib/Semantics/rewrite-parse-tree.cpp flang/lib/Semantics/runtime-type-info.cpp flang/lib/Semantics/scope.cpp flang/lib/Semantics/semantics.cpp flang/lib/Semantics/symbol.cpp flang/lib/Semantics/tools.cpp flang/lib/Semantics/type.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/lib/Semantics/check-omp-structure.cpp b/flang/lib/Semantics/check-omp-structure.cpp
index 49100a820..7f796e2f2 100644
--- a/flang/lib/Semantics/check-omp-structure.cpp
+++ b/flang/lib/Semantics/check-omp-structure.cpp
@@ -3046,8 +3046,7 @@ void OmpStructureChecker::CheckReductionModifier(
   if (modifier.v == ReductionModifier::Value::Task) {
     // "Task" is only allowed on worksharing or "parallel" directive.
     static llvm::omp::Directive worksharing[]{
-        llvm::omp::Directive::OMPD_do,
-        llvm::omp::Directive::OMPD_scope,
+        llvm::omp::Directive::OMPD_do, llvm::omp::Directive::OMPD_scope,
         llvm::omp::Directive::OMPD_sections,
         // There are more worksharing directives, but they do not apply:
         // "for" is C++ only,

``````````

</details>


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


More information about the flang-commits mailing list