[flang-commits] [flang] [Flang][OpenMP] Fixed semantic error when list item with a private da… (PR #109775)
via flang-commits
flang-commits at lists.llvm.org
Tue Sep 24 02:43:51 PDT 2024
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 04742f34b343af87dda93edacbb06f6e98a1d80f 777187bba3c3936f79c4b6a4e425d9b97a9c0843 --extensions cpp -- flang/lib/Semantics/resolve-directives.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/lib/Semantics/resolve-directives.cpp b/flang/lib/Semantics/resolve-directives.cpp
index 6de37f5235..a72b5e4b43 100644
--- a/flang/lib/Semantics/resolve-directives.cpp
+++ b/flang/lib/Semantics/resolve-directives.cpp
@@ -1544,8 +1544,7 @@ bool OmpAttributeVisitor::Pre(const parser::OpenMPBlockConstruct &x) {
// The omp_taskgroup directive doesn't have its own data-sharing clauses.
// It inherits data-sharing attributes from the surrounding context.
// Therefore, don't clear the data-sharing attributes if it's an omp taskgroup
- if (beginDir.v != llvm::omp::Directive::OMPD_taskgroup)
- {
+ if (beginDir.v != llvm::omp::Directive::OMPD_taskgroup) {
ClearDataSharingAttributeObjects();
ClearPrivateDataSharingAttributeObjects();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/109775
More information about the flang-commits
mailing list