reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
1001 OS << " static bool ConvertStrTo" << type << "(StringRef Val, "; 1002 OS << type << " &Out) {\n"; 1003 OS << " Optional<" << type << "> R = llvm::StringSwitch<Optional<"; 1004 OS << type << ">>(Val)\n"; 1006 OS << " .Case(\"" << values[I] << "\", "; 1007 OS << getAttrName() << "Attr::" << enums[I] << ")\n"; 1009 OS << " .Default(Optional<" << type << ">());\n"; 1010 OS << " if (R) {\n"; 1011 OS << " Out = *R;\n return true;\n }\n"; 1012 OS << " return false;\n"; 1013 OS << " }\n\n"; 1015 OS << " static const char *Convert" << type << "ToStr(" 1021 OS << " case " << getAttrName() << "Attr::" << enums[I] 1024 OS << " }\n"