[flang-commits] [flang] [flang][OpenMP] Catch threadprivate common block vars that appear in equivalence (PR #127642)

via flang-commits flang-commits at lists.llvm.org
Tue Feb 18 06:42:22 PST 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 191d7d64e5bc9c66fcb17a4c752a55129d33fd44 1cbe00da9e987394bc414253df9c7c434c4a9837 --extensions cpp -- flang/lib/Semantics/check-omp-structure.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 62de902726..f9e2abd1a4 100644
--- a/flang/lib/Semantics/check-omp-structure.cpp
+++ b/flang/lib/Semantics/check-omp-structure.cpp
@@ -1487,7 +1487,8 @@ void OmpStructureChecker::CheckThreadprivateOrDeclareTargetVar(
                 for (const auto &obj : cb->objects()) {
                   if (FindEquivalenceSet(*obj)) {
                     context_.Say(name.source,
-                        "A variable in a %s directive cannot appear in an EQUIVALENCE statement"
+                        "A variable in a %s directive cannot appear in an "
+                        "EQUIVALENCE statement"
                         " (variable '%s' from common block '/%s/')"_err_en_US,
                         ContextDirectiveAsFortran(), obj->name(),
                         name.symbol->name());

``````````

</details>


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


More information about the flang-commits mailing list