Lines Matching defs:OptionValue
1 //===-- OptionValue.cpp ---------------------------------------------------===//
9 #include "lldb/Interpreter/OptionValue.h"
18 OptionValue::OptionValue(const OptionValue &other) {
27 OptionValue& OptionValue::operator=(const OptionValue &other) {
37 Status OptionValue::SetSubValue(const ExecutionContext *exe_ctx,
43 OptionValueBoolean *OptionValue::GetAsBoolean() {
44 if (GetType() == OptionValue::eTypeBoolean)
49 const OptionValueBoolean *OptionValue::GetAsBoolean() const {
50 if (GetType() == OptionValue::eTypeBoolean)
55 const OptionValueChar *OptionValue::GetAsChar() const {
56 if (GetType() == OptionValue::eTypeChar)
61 OptionValueChar *OptionValue::GetAsChar() {
62 if (GetType() == OptionValue::eTypeChar)
67 OptionValueFileSpec *OptionValue::GetAsFileSpec() {
68 if (GetType() == OptionValue::eTypeFileSpec)
73 const OptionValueFileSpec *OptionValue::GetAsFileSpec() const {
74 if (GetType() == OptionValue::eTypeFileSpec)
79 OptionValueFileSpecList *OptionValue::GetAsFileSpecList() {
80 if (GetType() == OptionValue::eTypeFileSpecList)
85 const OptionValueFileSpecList *OptionValue::GetAsFileSpecList() const {
86 if (GetType() == OptionValue::eTypeFileSpecList)
91 OptionValueArch *OptionValue::GetAsArch() {
92 if (GetType() == OptionValue::eTypeArch)
97 const OptionValueArch *OptionValue::GetAsArch() const {
98 if (GetType() == OptionValue::eTypeArch)
103 OptionValueArray *OptionValue::GetAsArray() {
104 if (GetType() == OptionValue::eTypeArray)
109 const OptionValueArray *OptionValue::GetAsArray() const {
110 if (GetType() == OptionValue::eTypeArray)
115 OptionValueArgs *OptionValue::GetAsArgs() {
116 if (GetType() == OptionValue::eTypeArgs)
121 const OptionValueArgs *OptionValue::GetAsArgs() const {
122 if (GetType() == OptionValue::eTypeArgs)
127 OptionValueDictionary *OptionValue::GetAsDictionary() {
128 if (GetType() == OptionValue::eTypeDictionary)
133 const OptionValueDictionary *OptionValue::GetAsDictionary() const {
134 if (GetType() == OptionValue::eTypeDictionary)
139 OptionValueEnumeration *OptionValue::GetAsEnumeration() {
140 if (GetType() == OptionValue::eTypeEnum)
145 const OptionValueEnumeration *OptionValue::GetAsEnumeration() const {
146 if (GetType() == OptionValue::eTypeEnum)
151 OptionValueFormat *OptionValue::GetAsFormat() {
152 if (GetType() == OptionValue::eTypeFormat)
157 const OptionValueFormat *OptionValue::GetAsFormat() const {
158 if (GetType() == OptionValue::eTypeFormat)
163 OptionValueLanguage *OptionValue::GetAsLanguage() {
164 if (GetType() == OptionValue::eTypeLanguage)
169 const OptionValueLanguage *OptionValue::GetAsLanguage() const {
170 if (GetType() == OptionValue::eTypeLanguage)
175 OptionValueFormatEntity *OptionValue::GetAsFormatEntity() {
176 if (GetType() == OptionValue::eTypeFormatEntity)
181 const OptionValueFormatEntity *OptionValue::GetAsFormatEntity() const {
182 if (GetType() == OptionValue::eTypeFormatEntity)
187 OptionValuePathMappings *OptionValue::GetAsPathMappings() {
188 if (GetType() == OptionValue::eTypePathMap)
193 const OptionValuePathMappings *OptionValue::GetAsPathMappings() const {
194 if (GetType() == OptionValue::eTypePathMap)
199 OptionValueProperties *OptionValue::GetAsProperties() {
200 if (GetType() == OptionValue::eTypeProperties)
205 const OptionValueProperties *OptionValue::GetAsProperties() const {
206 if (GetType() == OptionValue::eTypeProperties)
211 OptionValueRegex *OptionValue::GetAsRegex() {
212 if (GetType() == OptionValue::eTypeRegex)
217 const OptionValueRegex *OptionValue::GetAsRegex() const {
218 if (GetType() == OptionValue::eTypeRegex)
223 OptionValueSInt64 *OptionValue::GetAsSInt64() {
224 if (GetType() == OptionValue::eTypeSInt64)
229 const OptionValueSInt64 *OptionValue::GetAsSInt64() const {
230 if (GetType() == OptionValue::eTypeSInt64)
235 OptionValueString *OptionValue::GetAsString() {
236 if (GetType() == OptionValue::eTypeString)
241 const OptionValueString *OptionValue::GetAsString() const {
242 if (GetType() == OptionValue::eTypeString)
247 OptionValueUInt64 *OptionValue::GetAsUInt64() {
248 if (GetType() == OptionValue::eTypeUInt64)
253 const OptionValueUInt64 *OptionValue::GetAsUInt64() const {
254 if (GetType() == OptionValue::eTypeUInt64)
259 OptionValueUUID *OptionValue::GetAsUUID() {
260 if (GetType() == OptionValue::eTypeUUID)
265 const OptionValueUUID *OptionValue::GetAsUUID() const {
266 if (GetType() == OptionValue::eTypeUUID)
271 std::optional<bool> OptionValue::GetBooleanValue() const {
278 bool OptionValue::SetBooleanValue(bool new_value) {
287 std::optional<char> OptionValue::GetCharValue() const {
294 bool OptionValue::SetCharValue(char new_value) {
303 std::optional<int64_t> OptionValue::GetEnumerationValue() const {
310 bool OptionValue::SetEnumerationValue(int64_t value) {
319 std::optional<FileSpec> OptionValue::GetFileSpecValue() const {
326 bool OptionValue::SetFileSpecValue(FileSpec file_spec) {
335 bool OptionValue::AppendFileSpecValue(FileSpec file_spec) {
344 std::optional<FileSpecList> OptionValue::GetFileSpecListValue() const {
351 std::optional<lldb::Format> OptionValue::GetFormatValue() const {
358 bool OptionValue::SetFormatValue(lldb::Format new_value) {
367 std::optional<lldb::LanguageType> OptionValue::GetLanguageValue() const {
374 bool OptionValue::SetLanguageValue(lldb::LanguageType new_language) {
383 const FormatEntity::Entry *OptionValue::GetFormatEntity() const {
390 const RegularExpression *OptionValue::GetRegexValue() const {
397 std::optional<int64_t> OptionValue::GetSInt64Value() const {
404 bool OptionValue::SetSInt64Value(int64_t new_value) {
413 std::optional<llvm::StringRef> OptionValue::GetStringValue() const {
420 bool OptionValue::SetStringValue(llvm::StringRef new_value) {
429 std::optional<uint64_t> OptionValue::GetUInt64Value() const {
436 bool OptionValue::SetUInt64Value(uint64_t new_value) {
445 std::optional<UUID> OptionValue::GetUUIDValue() const {
452 bool OptionValue::SetUUIDValue(const UUID &uuid) {
461 std::optional<ArchSpec> OptionValue::GetArchSpecValue() const {
468 bool OptionValue::SetArchSpecValue(ArchSpec arch_spec) {
477 const char *OptionValue::GetBuiltinTypeAsCString(Type t) {
525 lldb::OptionValueSP OptionValue::CreateValueFromCStringForTypeMask(
573 bool OptionValue::DumpQualifiedName(Stream &strm) const {
591 OptionValueSP OptionValue::DeepCopy(const OptionValueSP &new_parent) const {
597 void OptionValue::AutoComplete(CommandInterpreter &interpreter,
600 Status OptionValue::SetValueFromString(llvm::StringRef value,