Lines Matching full:definition

22 Property::Property(const PropertyDefinition &definition)  in Property()  argument
23 : m_name(definition.name), m_description(definition.description), in Property()
24 m_is_global(definition.global) { in Property()
25 switch (definition.type) { in Property()
30 // "definition.default_uint_value" is not used in Property()
31 // "definition.default_cstr_value" as a string value that represents the in Property()
34 std::make_shared<OptionValueArch>(definition.default_cstr_value); in Property()
38 // "definition.default_uint_value" is always a OptionValue::Type in Property()
43 // "definition.default_uint_value" is always a OptionValue::Type in Property()
46 (OptionValue::Type)definition.default_uint_value)); in Property()
50 // "definition.default_uint_value" is the default boolean value if in Property()
51 // "definition.default_cstr_value" is NULL, otherwise interpret in Property()
52 // "definition.default_cstr_value" as a string value that represents the in Property()
54 if (definition.default_cstr_value) in Property()
57 llvm::StringRef(definition.default_cstr_value), false, nullptr)); in Property()
60 definition.default_uint_value != 0); in Property()
64 llvm::StringRef s(definition.default_cstr_value ? definition.default_cstr_value : ""); in Property()
70 // "definition.default_uint_value" is always a OptionValue::Type in Property()
73 (OptionValue::Type)definition.default_uint_value), in Property()
74 definition.enum_values); in Property()
78 // "definition.default_uint_value" is the default enumeration value if in Property()
79 // "definition.default_cstr_value" is NULL, otherwise interpret in Property()
80 // "definition.default_cstr_value" as a string value that represents the in Property()
84 definition.enum_values, definition.default_uint_value); in Property()
86 if (definition.default_cstr_value) { in Property()
89 llvm::StringRef(definition.default_cstr_value)) in Property()
103 // "definition.default_uint_value" is not used for a in Property()
109 // "definition.default_uint_value" represents if the in Property()
110 // "definition.default_cstr_value" should be resolved or not in Property()
111 const bool resolve = definition.default_uint_value != 0; in Property()
112 FileSpec file_spec = FileSpec(definition.default_cstr_value); in Property()
120 // "definition.default_uint_value" is not used for a in Property()
126 // "definition.default_uint_value" is the default format enumeration value in Property()
127 // if "definition.default_cstr_value" is NULL, otherwise interpret in Property()
128 // "definition.default_cstr_value" as a string value that represents the in Property()
132 if (definition.default_cstr_value) in Property()
133 OptionArgParser::ToFormat(definition.default_cstr_value, new_format, in Property()
136 new_format = (Format)definition.default_uint_value; in Property()
142 // "definition.default_uint_value" is the default language enumeration in Property()
143 // value if "definition.default_cstr_value" is NULL, otherwise interpret in Property()
144 // "definition.default_cstr_value" as a string value that represents the in Property()
148 if (definition.default_cstr_value) in Property()
150 llvm::StringRef(definition.default_cstr_value)); in Property()
152 new_lang = (LanguageType)definition.default_uint_value; in Property()
158 // "definition.default_cstr_value" as a string value that represents the in Property()
161 definition.default_cstr_value); in Property()
165 // "definition.default_uint_value" tells us if notifications should occur in Property()
168 definition.default_uint_value != 0); in Property()
172 // "definition.default_uint_value" is used to the regular expression flags in Property()
173 // "definition.default_cstr_value" the default regular expression value in Property()
176 std::make_shared<OptionValueRegex>(definition.default_cstr_value); in Property()
180 // "definition.default_uint_value" is the default integer value if in Property()
181 // "definition.default_cstr_value" is NULL, otherwise interpret in Property()
182 // "definition.default_cstr_value" as a string value that represents the in Property()
186 if (definition.default_cstr_value) in Property()
187 llvm::to_integer(definition.default_cstr_value, value); in Property()
189 definition.default_cstr_value ? value : definition.default_uint_value); in Property()
195 if (definition.default_cstr_value) in Property()
196 llvm::to_integer(definition.default_cstr_value, value); in Property()
197 // "definition.default_uint_value" is the default unsigned integer value if in Property()
198 // "definition.default_cstr_value" is NULL, otherwise interpret in Property()
199 // "definition.default_cstr_value" as a string value that represents the in Property()
202 definition.default_cstr_value ? value : definition.default_uint_value); in Property()
206 // "definition.default_uint_value" is not used for a OptionValue::eTypeUUID in Property()
207 // "definition.default_cstr_value" can contain a default UUID value in Property()
210 if (definition.default_cstr_value) in Property()
211 uuid.SetFromStringRef(definition.default_cstr_value); in Property()
217 // "definition.default_uint_value" can contain the string option flags in Property()
218 // OR'ed together "definition.default_cstr_value" can contain a default in Property()
222 new OptionValueString(definition.default_cstr_value); in Property()
223 if (definition.default_uint_value != 0) in Property()
224 string_value->GetOptions().Reset(definition.default_uint_value); in Property()
229 assert(m_value_sp && "invalid property definition"); in Property()