struct BlockScalarTraits

Declaration

template <typename T>
struct BlockScalarTraits { /* full declaration omitted */ };

Description

This class should be specialized by type that requires custom conversion to/from a YAML literal block scalar. For example: template < > struct BlockScalarTraits <MyType > { static void output(const MyType &Value , void*, llvm::raw_ostream &Out ) { // stream out custom formatting Out < < Value; } static StringRef input(StringRef Scalar, void*, MyType &Value ) { // parse scalar and set `value` // return empty string on success, or error string return StringRef(); } };

Declared at: llvm/include/llvm/Support/YAMLTraits.h:178

Templates

T