Lines Matching refs:OS
24 static void emitPropertyEnum(Record *Property, raw_ostream &OS) { in emitPropertyEnum() argument
25 OS << "eProperty"; in emitPropertyEnum()
26 OS << Property->getName(); in emitPropertyEnum()
27 OS << ",\n"; in emitPropertyEnum()
30 static void emitProperty(Record *Property, raw_ostream &OS) { in emitProperty() argument
31 OS << " {"; in emitProperty()
34 OS << "\"" << Property->getValueAsString("Name") << "\""; in emitProperty()
35 OS << ", "; in emitProperty()
39 OS << "OptionValue::eType"; in emitProperty()
40 OS << type; in emitProperty()
41 OS << ", "; in emitProperty()
44 OS << (Property->getValue("Global") ? "true" : "false"); in emitProperty()
45 OS << ", "; in emitProperty()
83 OS << std::to_string(Property->getValueAsInt("DefaultUnsignedValue")); in emitProperty()
85 OS << Property->getValueAsString("DefaultEnumValue"); in emitProperty()
87 OS << "OptionValue::eType"; in emitProperty()
88 OS << Property->getValueAsString("ElementType"); in emitProperty()
90 OS << "0"; in emitProperty()
92 OS << ", "; in emitProperty()
97 OS << "\""; in emitProperty()
98 OS << D->getValue()->getAsUnquotedString(); in emitProperty()
99 OS << "\""; in emitProperty()
101 OS << "\"\""; in emitProperty()
104 OS << "nullptr"; in emitProperty()
106 OS << ", "; in emitProperty()
110 OS << Property->getValueAsString("EnumValues"); in emitProperty()
112 OS << "{}"; in emitProperty()
113 OS << ", "; in emitProperty()
117 OS << "\""; in emitProperty()
118 OS << D->getValue()->getAsUnquotedString(); in emitProperty()
119 OS << "\""; in emitProperty()
121 OS << "\"\""; in emitProperty()
124 OS << "},\n"; in emitProperty()
130 raw_ostream &OS) { in emityProperties() argument
138 OS << "// Property definitions for " << PropertyName << "\n"; in emityProperties()
139 OS << "#ifdef " << NeededMacro << "\n"; in emityProperties()
140 OS << "static constexpr PropertyDefinition g_" << PropertyName in emityProperties()
143 emitProperty(R, OS); in emityProperties()
144 OS << "};\n"; in emityProperties()
146 OS << "#undef " << NeededMacro << "\n"; in emityProperties()
147 OS << "#endif // " << PropertyName << " Property\n\n"; in emityProperties()
153 raw_ostream &OS) { in emitPropertyEnum() argument
161 OS << "// Property enum cases for " << PropertyName << "\n"; in emitPropertyEnum()
162 OS << "#ifdef " << NeededMacro << "\n"; in emitPropertyEnum()
164 emitPropertyEnum(R, OS); in emitPropertyEnum()
166 OS << "#undef " << NeededMacro << "\n"; in emitPropertyEnum()
167 OS << "#endif // " << PropertyName << " Property\n\n"; in emitPropertyEnum()
170 void lldb_private::EmitPropertyDefs(RecordKeeper &Records, raw_ostream &OS) { in EmitPropertyDefs() argument
171 emitSourceFileHeader("Property definitions for LLDB.", OS, Records); in EmitPropertyDefs()
176 emityProperties(PropertyRecordPair.first, PropertyRecordPair.second, OS); in EmitPropertyDefs()
181 raw_ostream &OS) { in EmitPropertyEnumDefs() argument
182 emitSourceFileHeader("Property definition enum for LLDB.", OS, Records); in EmitPropertyEnumDefs()
187 emitPropertyEnum(PropertyRecordPair.first, PropertyRecordPair.second, OS); in EmitPropertyEnumDefs()