[llvm] [NFC][LLVM] Adopt ListSeparator in more places (PR #172909)
Rahul Joshi via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 9 12:12:45 PST 2026
================
@@ -230,13 +231,9 @@ template <typename ContextT> class GenericCycle {
Printable printEntries(const ContextT &Ctx) const {
return Printable([this, &Ctx](raw_ostream &Out) {
- bool First = true;
- for (auto *Entry : Entries) {
- if (!First)
- Out << ' ';
- First = false;
- Out << Ctx.print(Entry);
- }
+ ListSeparator LS(" ");
+ for (auto *Entry : Entries)
+ Out << LS << Ctx.print(Entry);
----------------
jurahul wrote:
Resolving in favor of not using formatv() per comment.
https://github.com/llvm/llvm-project/pull/172909
More information about the llvm-commits
mailing list