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