reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
889 OS << " static bool ConvertStrTo" << type << "(StringRef Val, "; 890 OS << type << " &Out) {\n"; 891 OS << " Optional<" << type << "> R = llvm::StringSwitch<Optional<"; 892 OS << type << ">>(Val)\n"; 894 OS << " .Case(\"" << values[I] << "\", "; 895 OS << getAttrName() << "Attr::" << enums[I] << ")\n"; 897 OS << " .Default(Optional<" << type << ">());\n"; 898 OS << " if (R) {\n"; 899 OS << " Out = *R;\n return true;\n }\n"; 900 OS << " return false;\n"; 901 OS << " }\n\n"; 907 OS << " static const char *Convert" << type << "ToStr(" 913 OS << " case " << getAttrName() << "Attr::" << enums[I] 916 OS << " }\n"