Lines Matching defs:Property

24 static void emitPropertyEnum(Record *Property, raw_ostream &OS) {
26 OS << Property->getName();
30 static void emitProperty(Record *Property, raw_ostream &OS) {
34 OS << "\"" << Property->getValueAsString("Name") << "\"";
39 OS << Property->getValueAsString("Type");
43 OS << (Property->getValue("Global") ? "true" : "false");
46 bool hasDefaultUnsignedValue = Property->getValue("HasDefaultUnsignedValue");
47 bool hasDefaultEnumValue = Property->getValue("HasDefaultEnumValue");
48 bool hasDefaultStringValue = Property->getValue("HasDefaultStringValue");
53 "Property must have a default value");
58 "Property cannot have both a unsigned and enum default value.");
61 assert(!(Property->getValueAsString("Type") == "Boolean" &&
62 !Property->getValue("HasDefaultBooleanValue")) &&
66 assert(!(Property->getValueAsString("Type") == "String" &&
72 !(Property->getValueAsString("Type") == "Enum" && !hasDefaultEnumValue) &&
77 OS << std::to_string(Property->getValueAsInt("DefaultUnsignedValue"));
79 OS << Property->getValueAsString("DefaultEnumValue");
87 if (auto D = Property->getValue("DefaultStringValue")) {
100 if (Property->getValue("EnumValues"))
101 OS << Property->getValueAsString("EnumValues");
107 if (auto D = Property->getValue("Description")) {
129 OS << "// Property definitions for " << PropertyName << "\n";
138 OS << "#endif // " << PropertyName << " Property\n\n";
152 OS << "// Property enum cases for " << PropertyName << "\n";
158 OS << "#endif // " << PropertyName << " Property\n\n";
162 emitSourceFileHeader("Property definitions for LLDB.", OS);
165 Records.getAllDerivedDefinitions("Property");
173 emitSourceFileHeader("Property definition enum for LLDB.", OS);
176 Records.getAllDerivedDefinitions("Property");