|
MLIR
22.0.0git
|
Struct representing a replacement segment for the formatted string. More...
#include "mlir/TableGen/Format.h"
Public Types | |
| enum class | Type { Empty , Literal , PositionalPH , PositionalRangePH , SpecialPH } |
Public Member Functions | |
| FmtReplacement ()=default | |
| FmtReplacement (StringRef literal) | |
| FmtReplacement (StringRef spec, size_t index) | |
| FmtReplacement (StringRef spec, size_t index, size_t end) | |
| FmtReplacement (StringRef spec, FmtContext::PHKind placeholder) | |
Public Attributes | |
| Type | type = Type::Empty |
| StringRef | spec |
| size_t | index = 0 |
| size_t | end = kUnset |
| FmtContext::PHKind | placeholder = FmtContext::PHKind::None |
Static Public Attributes | |
| static constexpr size_t | kUnset = -1 |
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, PositionalRangePH and SpecialPH).
|
strong |
|
default |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
| size_t mlir::tblgen::FmtReplacement::end = kUnset |
Definition at line 115 of file Format.h.
Referenced by mlir::tblgen::FmtObjectBase::format().
| size_t mlir::tblgen::FmtReplacement::index = 0 |
Definition at line 114 of file Format.h.
Referenced by mlir::tblgen::FmtObjectBase::format().
|
staticconstexpr |
Definition at line 118 of file Format.h.
Referenced by mlir::tblgen::FmtObjectBase::format().
| FmtContext::PHKind mlir::tblgen::FmtReplacement::placeholder = FmtContext::PHKind::None |
Definition at line 116 of file Format.h.
Referenced by mlir::tblgen::FmtObjectBase::format().
| StringRef mlir::tblgen::FmtReplacement::spec |
Definition at line 113 of file Format.h.
Referenced by mlir::tblgen::FmtObjectBase::format().
| Type mlir::tblgen::FmtReplacement::type = Type::Empty |
Definition at line 112 of file Format.h.
Referenced by mlir::tblgen::FmtObjectBase::format().