[flang-commits] [clang] [flang] [flang][openacc] add extension which accepts multiple names in a OpenACC routine directive (PR #200296)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Sun May 31 13:11:55 PDT 2026
================
@@ -2094,7 +2094,19 @@ class UnparseVisitor {
void Unparse(const OpenACCRoutineConstruct &x) {
BeginOpenACC();
Word("!$ACC ROUTINE");
- Walk("(", std::get<std::optional<Name>>(x.t), ")");
+ const auto &names{std::get<std::list<Name>>(x.t)};
+ if (!names.empty()) {
----------------
eugeneepshteyn wrote:
Check out comma-based `Walk()` overload around the line 3023. It may do what you need.
https://github.com/llvm/llvm-project/pull/200296
More information about the flang-commits
mailing list