Displaying 1 result from an estimated 1 matches for "flagconversions".
2012 Jul 25
1
[LLVMdev] [RFC] YAML I/O
...l::UniqueValue;
using llvm::yaml::BitValue;
static const UniqueValue<Colors> colorConversions[] = {
{cRed, "red"},
{cBlue, "blue"},
{cGreen, "green"},
{cRed, NULL} // default value for optional keys
};
static const BitValue<uint32_t> flagConversions[] = {
{FlagBig, "big"},
{FlagLittle, "little"},
{FlagRound, "round"},
{FlagPointy, "pointy"},
{0, NULL}
};
struct Test : public YamlMap {
StringRef name;
Color color;
uint32_t flags;
void yamlMapping(IO...