LLDB mainline
|
#include <OptionValueFileSpec.h>
Protected Attributes | |
FileSpec | m_current_value |
FileSpec | m_default_value |
lldb::DataBufferSP | m_data_sp |
llvm::sys::TimePoint | m_data_mod_time |
uint32_t | m_completion_mask = lldb::eDiskFileCompletion |
bool | m_resolve |
Protected Attributes inherited from lldb_private::OptionValue | |
lldb::OptionValueWP | m_parent_wp |
std::function< void()> | m_callback |
bool | m_value_was_set = false |
Definition at line 20 of file OptionValueFileSpec.h.
OptionValueFileSpec::OptionValueFileSpec | ( | bool | resolve = true | ) |
Definition at line 21 of file OptionValueFileSpec.cpp.
OptionValueFileSpec::OptionValueFileSpec | ( | const FileSpec & | value, |
bool | resolve = true |
||
) |
Definition at line 23 of file OptionValueFileSpec.cpp.
OptionValueFileSpec::OptionValueFileSpec | ( | const FileSpec & | current_value, |
const FileSpec & | default_value, | ||
bool | resolve = true |
||
) |
Definition at line 28 of file OptionValueFileSpec.cpp.
|
overridedefault |
|
overridevirtual |
Reimplemented from lldb_private::OptionValue.
Definition at line 85 of file OptionValueFileSpec.cpp.
References lldb_private::CommandCompletions::InvokeCommonCompletionCallbacks(), and m_completion_mask.
|
inlineoverridevirtual |
Implements lldb_private::OptionValue.
Definition at line 46 of file OptionValueFileSpec.h.
References m_current_value, m_data_mod_time, m_data_sp, m_default_value, and lldb_private::OptionValue::m_value_was_set.
Referenced by lldb_private::OptionGroupFile::OptionParsingStarting(), lldb_private::OptionGroupOutputFile::OptionParsingStarting(), and SetValueFromString().
|
overridevirtual |
Implements lldb_private::OptionValue.
Definition at line 35 of file OptionValueFileSpec.cpp.
References lldb_private::OptionValue::eDumpOptionType, lldb_private::OptionValue::eDumpOptionValue, lldb_private::FileSpec::GetPath(), lldb_private::OptionValue::GetTypeAsCString(), m_current_value, lldb_private::Stream::Printf(), and lldb_private::Stream::PutCString().
|
inline |
Definition at line 58 of file OptionValueFileSpec.h.
References m_current_value.
Referenced by CommandObjectTargetSymbolsAdd::AddSymbolsForFile(), CommandObjectPlatformSettings::DoExecute(), CommandObjectTargetModulesAdd::DoExecute(), CommandObjectTargetSymbolsAdd::DoExecute(), CommandObjectMemoryRead::DoExecute(), and CommandObjectTargetCreate::DoExecute().
|
inline |
Definition at line 60 of file OptionValueFileSpec.h.
References m_current_value.
|
inline |
Definition at line 62 of file OptionValueFileSpec.h.
References m_default_value.
const lldb::DataBufferSP & OptionValueFileSpec::GetFileContents | ( | ) |
Definition at line 91 of file OptionValueFileSpec.cpp.
References lldb_private::FileSystem::CreateDataBuffer(), lldb_private::FileSystem::GetModificationTime(), lldb_private::FileSpec::GetPath(), lldb_private::FileSystem::Instance(), m_current_value, m_data_mod_time, and m_data_sp.
Referenced by lldb_private::TargetProperties::GetExpressionPrefixContents().
|
inlineoverridevirtual |
Implements lldb_private::OptionValue.
Definition at line 33 of file OptionValueFileSpec.h.
References lldb_private::OptionValue::eTypeFileSpec.
|
inline |
Definition at line 75 of file OptionValueFileSpec.h.
References m_completion_mask.
|
inline |
Definition at line 64 of file OptionValueFileSpec.h.
References m_current_value, m_data_sp, and lldb_private::OptionValue::m_value_was_set.
|
inline |
Definition at line 71 of file OptionValueFileSpec.h.
References m_default_value.
|
overridevirtual |
Reimplemented from lldb_private::OptionValue.
Definition at line 49 of file OptionValueFileSpec.cpp.
References Clear(), error(), lldb_private::eVarSetOperationAppend, lldb_private::eVarSetOperationAssign, lldb_private::eVarSetOperationClear, lldb_private::eVarSetOperationInsertAfter, lldb_private::eVarSetOperationInsertBefore, lldb_private::eVarSetOperationInvalid, lldb_private::eVarSetOperationRemove, lldb_private::eVarSetOperationReplace, lldb_private::Status::FromErrorString(), lldb_private::FileSystem::Instance(), m_current_value, m_data_mod_time, m_data_sp, m_resolve, lldb_private::OptionValue::m_value_was_set, lldb_private::OptionValue::NotifyValueChanged(), lldb_private::FileSystem::Resolve(), lldb_private::FileSpec::SetFile(), and lldb_private::OptionValue::SetValueFromString().
Referenced by lldb_private::OptionGroupFile::SetOptionValue(), and lldb_private::OptionGroupOutputFile::SetOptionValue().
|
inlineoverridevirtual |
Reimplemented from lldb_private::OptionValue.
Definition at line 38 of file OptionValueFileSpec.h.
References lldb_private::FileSpec::GetPath(), and m_current_value.
|
protected |
Definition at line 82 of file OptionValueFileSpec.h.
Referenced by AutoComplete(), and SetCompletionMask().
|
protected |
Definition at line 78 of file OptionValueFileSpec.h.
Referenced by Clear(), DumpValue(), GetCurrentValue(), GetFileContents(), SetCurrentValue(), SetValueFromString(), and ToJSON().
|
protected |
Definition at line 81 of file OptionValueFileSpec.h.
Referenced by Clear(), GetFileContents(), and SetValueFromString().
|
protected |
Definition at line 80 of file OptionValueFileSpec.h.
Referenced by Clear(), GetFileContents(), SetCurrentValue(), and SetValueFromString().
|
protected |
Definition at line 79 of file OptionValueFileSpec.h.
Referenced by Clear(), GetDefaultValue(), and SetDefaultValue().
|
protected |
Definition at line 83 of file OptionValueFileSpec.h.
Referenced by SetValueFromString().