[llvm-branch-commits] [flang] [flang][OpenMP] Dump requirement clauses/flags in WithOmpDeclarative (PR #163450)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Oct 14 13:52:12 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 origin/main HEAD --extensions h,cpp -- flang/include/flang/Semantics/symbol.h flang/lib/Semantics/symbol.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/Semantics/symbol.cpp b/flang/lib/Semantics/symbol.cpp
index a5f9706a7..2a0ac80d2 100644
--- a/flang/lib/Semantics/symbol.cpp
+++ b/flang/lib/Semantics/symbol.cpp
@@ -176,7 +176,7 @@ llvm::raw_ostream &operator<<(
       os << x;
     }
   }
-  os << static_cast<const WithOmpDeclarative&>(x);
+  os << static_cast<const WithOmpDeclarative &>(x);
   return os;
 }
 
@@ -608,7 +608,7 @@ llvm::raw_ostream &operator<<(llvm::raw_ostream &os, const Details &details) {
       common::visitors{
           [&](const UnknownDetails &) {},
           [&](const MainProgramDetails &x) {
-            os << static_cast<const WithOmpDeclarative&>(x);
+            os << static_cast<const WithOmpDeclarative &>(x);
           },
           [&](const ModuleDetails &x) {
             if (x.isSubmodule()) {
@@ -628,7 +628,7 @@ llvm::raw_ostream &operator<<(llvm::raw_ostream &os, const Details &details) {
             if (x.isDefaultPrivate()) {
               os << " isDefaultPrivate";
             }
-            os << static_cast<const WithOmpDeclarative&>(x);
+            os << static_cast<const WithOmpDeclarative &>(x);
           },
           [&](const SubprogramNameDetails &x) {
             os << ' ' << EnumToString(x.kind());

``````````

</details>


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


More information about the llvm-branch-commits mailing list