Home | History | Annotate | Download | only in Support

Lines Matching refs:IO

20 using llvm::yaml::IO;
47 static void mapping(IO &io, FooBar& fb) {
48 io.mapRequired("foo", fb.foo);
49 io.mapRequired("bar", fb.bar);
154 static void mapping(IO &io, BuiltInTypes& bt) {
155 io.mapRequired("str", bt.str);
156 io.mapRequired("u64", bt.u64);
157 io.mapRequired("u32", bt.u32);
158 io.mapRequired("u16", bt.u16);
159 io.mapRequired("u8", bt.u8);
160 io.mapRequired("b", bt.b);
161 io.mapRequired("s64", bt.s64);
162 io.mapRequired("s32", bt.s32);
163 io.mapRequired("s16", bt.s16);
164 io.mapRequired("s8", bt.s8);
165 io.mapRequired("f", bt.f);
166 io.mapRequired("d", bt.d);
167 io.mapRequired("h8", bt.h8);
168 io.mapRequired("h16", bt.h16);
169 io.mapRequired("h32", bt.h32);
170 io.mapRequired("h64", bt.h64);
302 static void enumeration(IO &io, Colors &value) {
303 io.enumCase(value, "red", cRed);
304 io.enumCase(value, "blue", cBlue);
305 io.enumCase(value, "green", cGreen);
306 io.enumCase(value, "yellow",cYellow);
311 static void mapping(IO &io, ColorMap& c) {
312 io.mapRequired("c1", c.c1);
313 io.mapRequired("c2", c.c2);
314 io.mapRequired("c3", c.c3);
315 io.mapOptional("c4", c.c4, cBlue); // supplies default
316 io.mapOptional("c5", c.c5, cYellow); // supplies default
317 io.mapOptional("c6", c.c6, cRed); // supplies default
376 static void bitset(IO &io, MyFlags &value) {
377 io.bitSetCase(value, "big", flagBig);
378 io.bitSetCase(value, "flat", flagFlat);
379 io.bitSetCase(value, "round", flagRound);
380 io.bitSetCase(value, "pointy",flagPointy);
385 static void mapping(IO &io, FlagsMap& c) {
386 io.mapRequired("f1", c.f1);
387 io.mapRequired("f2", c.f2);
388 io.mapRequired("f3", c.f3);
389 io.mapOptional("f4", c.f4, MyFlags(flagRound));
468 static void mapping(IO &io, MyCustomTypeMap& s) {
469 io.mapRequired("f1", s.f1);
470 io.mapRequired("f2", s.f2);
471 io.mapRequired("f3", s.f3);
576 static void mapping(IO &io, NameAndNumbers& nn) {
577 io.mapRequired("name", nn.name);
578 io.mapRequired("strings", nn.strings);
579 io.mapRequired("single", nn.single);
580 io.mapRequired("numbers", nn.numbers);
651 NormalizedSeconds(IO &io)
654 NormalizedSeconds(IO &, TotalSeconds &secs)
659 IO &) {
668 static void mapping(IO &io, TotalSeconds &secs) {
669 MappingNormalization<NormalizedSeconds, TotalSeconds> keys(io, secs);
671 io.mapOptional("hours", keys->hours, (uint32_t)0);
672 io.mapOptional("minutes", keys->minutes, (uint8_t)0);
673 io.mapRequired("seconds", keys->seconds);
760 static void enumeration(IO &io, AFlags &value) {
761 io.enumCase(value, "a1", a1);
762 io.enumCase(value, "a2", a2);
763 io.enumCase(value, "a3", a3);
768 static void enumeration(IO &io, BFlags &value) {
769 io.enumCase(value, "b1", b1);
770 io.enumCase(value, "b2", b2);
771 io.enumCase(value, "b3", b3);
776 static void enumeration(IO &io, Kind &value) {
777 io.enumCase(value, "A", kindA);
778 io.enumCase(value, "B", kindB);
783 static void mapping(IO &io, KindAndFlags& kf) {
784 io.mapRequired("kind", kf.kind);
789 io.mapRequired("flags", aflags);
793 io.mapRequired("flags", bflags);
873 static void mapping(IO &io, FooBarMap& fb) {
874 io.mapRequired("foo", fb.foo);
875 io.mapRequired("bar", fb.bar);