[flang-commits] [flang] [flang][openmp]Add UserReductionDetails and use in DECLARE REDUCTION (PR #140066)

via flang-commits flang-commits at lists.llvm.org
Wed Jun 4 07:58:02 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 cpp,h -- flang/include/flang/Semantics/symbol.h flang/lib/Parser/unparse.cpp flang/lib/Semantics/assignment.cpp flang/lib/Semantics/assignment.h flang/lib/Semantics/check-omp-structure.cpp flang/lib/Semantics/mod-file.cpp flang/lib/Semantics/mod-file.h flang/lib/Semantics/resolve-names-utils.h flang/lib/Semantics/resolve-names.cpp flang/lib/Semantics/symbol.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/lib/Semantics/resolve-names.cpp b/flang/lib/Semantics/resolve-names.cpp
index 20d0ef0c0..ec45561e1 100644
--- a/flang/lib/Semantics/resolve-names.cpp
+++ b/flang/lib/Semantics/resolve-names.cpp
@@ -1927,7 +1927,7 @@ void OmpVisitor::ProcessReductionSpecifier(
 
     // Only process types we can find. There will be an error later on when
     // a type isn't found.
-    if (const DeclTypeSpec * typeSpec{GetDeclTypeSpec()}) {
+    if (const DeclTypeSpec *typeSpec{GetDeclTypeSpec()}) {
       reductionDetails->AddType(*typeSpec);
 
       for (auto &nm : ompVarNames) {

``````````

</details>


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


More information about the flang-commits mailing list