[llvm-branch-commits] [flang] [flang][OpenMP] Store DECLARE_TARGET information in WithOmpDeclarative (PR #201103)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jun 2 05:31:54 PDT 2026
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/examples/FlangOmpReport/FlangOmpReportVisitor.cpp flang/include/flang/Parser/dump-parse-tree.h flang/include/flang/Parser/parse-tree.h flang/include/flang/Semantics/symbol.h flang/include/flang/Support/Fortran.h flang/lib/Parser/unparse.cpp flang/lib/Semantics/mod-file.cpp flang/lib/Semantics/resolve-directives.cpp 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/mod-file.cpp b/flang/lib/Semantics/mod-file.cpp
index 4f3d989d3..b81c84572 100644
--- a/flang/lib/Semantics/mod-file.cpp
+++ b/flang/lib/Semantics/mod-file.cpp
@@ -377,7 +377,6 @@ static const WithOmpDeclarative *GetOmpDeclarative(const Symbol &symbol) {
symbol.details());
}
-
static void PutOpenMPRequirements(
llvm::raw_ostream &os, const Symbol &symbol, SemanticsContext &semaCtx) {
using OmpClauseSet = WithOmpDeclarative::OmpClauseSet;
@@ -404,7 +403,8 @@ static void PutOpenMPDeclarativeDirectives(llvm::raw_ostream &os,
if (const OmpClauseSet &dtgt{decls->ompDeclTarget()}; dtgt.count()) {
os << "!$omp "
<< parser::ToLowerCaseLetters(llvm::omp::getOpenMPDirectiveName(
- llvm::omp::Directive::OMPD_declare_target, version)) << " ";
+ llvm::omp::Directive::OMPD_declare_target, version))
+ << " ";
decls->printClauseSet(os, dtgt, symbol.name());
os << "\n";
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/201103
More information about the llvm-branch-commits
mailing list