[flang-commits] [flang] [flang][OpenMP] Use function symbol on DECLARE TARGET (PR #134107)
via flang-commits
flang-commits at lists.llvm.org
Wed Apr 2 09:08:33 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 -- flang/lib/Semantics/resolve-directives.cpp flang/lib/Semantics/unparse-with-symbols.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 4ce43e32f..db6bbe81f 100644
--- a/flang/lib/Semantics/resolve-directives.cpp
+++ b/flang/lib/Semantics/resolve-directives.cpp
@@ -2516,8 +2516,8 @@ void OmpAttributeVisitor::ResolveOmpObject(
}
if (ompFlag == Symbol::Flag::OmpDeclareTarget) {
if (symbol->IsFuncResult()) {
- if (Scope *container{&currScope()}) {
- if (Symbol *func{container->symbol()}) {
+ if (Scope * container{&currScope()}) {
+ if (Symbol * func{container->symbol()}) {
func->set(ompFlag);
name->symbol = func;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/134107
More information about the flang-commits
mailing list