search for: documentlist

Displaying 1 result from an estimated 1 matches for "documentlist".

2012 Jul 25
1
[LLVMdev] [RFC] YAML I/O
...one for the sequence of those mappings (a typedef). In the struct you add a yamlMapping() method which associates mapping keys with field names and the fields's type. (Note: the yamlMapping() method was inspired by the boost serialize() method). using llvm::yaml::Sequence; using llvm::yaml::DocumentList; using llvm::yaml::IO; using llvm::yaml::Input; using llvm::yaml::Output; using llvm::yaml::YamlMap; struct Person : public YamlMap { StringRef name; uint8_t age; bool speaks_french; void yamlMapping(IO &io) { requiredKey(io, name, "name");...