My Project
|
#include <Format.h>
Public Types | |
enum | Type { Type::Empty, Type::Literal, Type::PositionalPH, Type::SpecialPH } |
Public Member Functions | |
FmtReplacement ()=default | |
FmtReplacement (StringRef literal) | |
FmtReplacement (StringRef spec, size_t index) | |
FmtReplacement (StringRef spec, FmtContext::PHKind placeholder) | |
Public Attributes | |
Type | type = Type::Empty |
StringRef | spec |
size_t | index = 0 |
FmtContext::PHKind | placeholder = FmtContext::PHKind::None |
Struct representing a replacement segment for the formatted string. It can be a segment of the formatting template (for Literal
) or a replacement parameter (for PositionalPH
and SpecialPH
).
|
strong |
|
default |
|
inlineexplicit |
|
inline |
|
inline |
size_t mlir::tblgen::FmtReplacement::index = 0 |
FmtContext::PHKind mlir::tblgen::FmtReplacement::placeholder = FmtContext::PHKind::None |
StringRef mlir::tblgen::FmtReplacement::spec |
Type mlir::tblgen::FmtReplacement::type = Type::Empty |