LLVM 22.0.0git
llvm::ListSeparator Class Reference

A helper class to return the specified delimiter string after the first invocation of operator StringRef(). Used to generate a comma-separated list from a loop like so: More...

#include "llvm/ADT/StringExtras.h"

Public Member Functions

 ListSeparator (StringRef Separator=", ")
 operator StringRef ()

Detailed Description

A helper class to return the specified delimiter string after the first invocation of operator StringRef(). Used to generate a comma-separated list from a loop like so:

for (auto &I : C)
OS << LS << I.getName();
\end
#define I(x, y, z)
Definition MD5.cpp:58
ListSeparator(StringRef Separator=", ")
@ C
The default llvm calling convention, compatible with C.
Definition CallingConv.h:34

Definition at line 529 of file StringExtras.h.

Constructor & Destructor Documentation

◆ ListSeparator()

llvm::ListSeparator::ListSeparator ( StringRef Separator = ", ")
inline

Definition at line 534 of file StringExtras.h.

Member Function Documentation

◆ operator StringRef()

llvm::ListSeparator::operator StringRef ( )
inline

Definition at line 535 of file StringExtras.h.


The documentation for this class was generated from the following file: