================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to