LLDB mainline
|
#include <OptionValueBoolean.h>
Protected Attributes | |
bool | m_current_value |
bool | m_default_value |
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 16 of file OptionValueBoolean.h.
|
inline |
Definition at line 18 of file OptionValueBoolean.h.
|
inline |
Definition at line 20 of file OptionValueBoolean.h.
|
overridedefault |
|
overridevirtual |
Reimplemented from lldb_private::OptionValue.
Definition at line 70 of file OptionValueBoolean.cpp.
References lldb_private::CompletionRequest::GetCursorArgumentPrefix(), and lldb_private::CompletionRequest::TryCompleteCurrentArg().
|
inlineoverridevirtual |
Implements lldb_private::OptionValue.
Definition at line 40 of file OptionValueBoolean.h.
References m_current_value, m_default_value, and lldb_private::OptionValue::m_value_was_set.
Referenced by lldb_private::OptionGroupBoolean::OptionParsingStarting(), lldb_private::OptionGroupMemoryTag::OptionParsingStarting(), lldb_private::OptionGroupOutputFile::OptionParsingStarting(), BreakpointNameOptionGroup::OptionParsingStarting(), CommandObjectCommandsSource::CommandOptions::OptionParsingStarting(), CommandObjectMemoryRegion::OptionGroupMemoryRegion::OptionParsingStarting(), CommandObjectRegisterRead::CommandOptions::OptionParsingStarting(), CommandObjectSessionHistory::CommandOptions::OptionParsingStarting(), CommandObjectTargetModulesDumpSymtab::CommandOptions::OptionParsingStarting(), CommandObjectTargetModulesDumpSeparateDebugInfoFiles::CommandOptions::OptionParsingStarting(), and SetValueFromString().
|
overridevirtual |
Implements lldb_private::OptionValue.
Definition at line 20 of file OptionValueBoolean.cpp.
References lldb_private::OptionValue::eDumpOptionType, lldb_private::OptionValue::eDumpOptionValue, lldb_private::OptionValue::GetTypeAsCString(), m_current_value, lldb_private::Stream::Printf(), and lldb_private::Stream::PutCString().
|
inline |
Definition at line 70 of file OptionValueBoolean.h.
References m_current_value.
Referenced by CommandObjectTypeCategoryEnable::CommandObjectTypeCategoryEnable(), CommandObjectTargetModulesLoad::DoExecute(), CommandObjectCommandsSource::DoExecute(), CommandObjectMemoryRead::DoExecute(), CommandObjectMemoryFind::DoExecute(), CommandObjectRegisterRead::DoExecute(), CommandObjectSessionHistory::DoExecute(), CommandObjectProcessMinidumpDump::DumpAll(), CommandObjectProcessMinidumpDump::DumpDirectory(), CommandObjectProcessMinidumpDump::DumpFacebook(), CommandObjectProcessMinidumpDump::DumpFacebookAbortReason(), CommandObjectProcessMinidumpDump::DumpFacebookAppData(), CommandObjectProcessMinidumpDump::DumpFacebookAppStateLog(), CommandObjectProcessMinidumpDump::DumpFacebookBuildID(), CommandObjectProcessMinidumpDump::DumpFacebookDalvikInfo(), CommandObjectProcessMinidumpDump::DumpFacebookErrorLog(), CommandObjectProcessMinidumpDump::DumpFacebookJavaStack(), CommandObjectProcessMinidumpDump::DumpFacebookLogcat(), CommandObjectProcessMinidumpDump::DumpFacebookThreadName(), CommandObjectProcessMinidumpDump::DumpFacebookUnwindSymbols(), CommandObjectProcessMinidumpDump::DumpFacebookVersionName(), CommandObjectProcessMinidumpDump::DumpLinux(), CommandObjectProcessMinidumpDump::DumpLinuxAuxv(), CommandObjectProcessMinidumpDump::DumpLinuxCMDLine(), CommandObjectProcessMinidumpDump::DumpLinuxCPUInfo(), CommandObjectProcessMinidumpDump::DumpLinuxEnviron(), CommandObjectProcessMinidumpDump::DumpLinuxLSBRelease(), CommandObjectProcessMinidumpDump::DumpLinuxMaps(), CommandObjectProcessMinidumpDump::DumpLinuxProcFD(), CommandObjectProcessMinidumpDump::DumpLinuxProcStat(), CommandObjectProcessMinidumpDump::DumpLinuxProcStatus(), CommandObjectProcessMinidumpDump::DumpLinuxProcUptime(), and CommandObjectProcessMinidumpDump::SetDefaultOptionsIfNoneAreSet().
|
inline |
Definition at line 72 of file OptionValueBoolean.h.
References m_default_value.
Referenced by lldb_private::OptionGroupBoolean::SetOptionValue().
|
inlineoverridevirtual |
Implements lldb_private::OptionValue.
Definition at line 27 of file OptionValueBoolean.h.
References lldb_private::OptionValue::eTypeBoolean.
|
inlineexplicit |
Convert to bool operator.
This allows code to check a OptionValueBoolean in conditions.
Definition at line 63 of file OptionValueBoolean.h.
References m_current_value.
|
inline |
Definition at line 65 of file OptionValueBoolean.h.
References m_current_value.
|
inline |
Definition at line 74 of file OptionValueBoolean.h.
References m_current_value.
Referenced by CommandObjectProcessMinidumpDump::SetDefaultOptionsIfNoneAreSet(), CommandObjectSessionHistory::CommandOptions::SetOptionValue(), CommandObjectTargetModulesDumpSymtab::CommandOptions::SetOptionValue(), CommandObjectTargetModulesDumpSeparateDebugInfoFiles::CommandOptions::SetOptionValue(), lldb_private::OptionGroupBoolean::SetOptionValue(), lldb_private::OptionGroupMemoryTag::SetOptionValue(), lldb_private::OptionGroupOutputFile::SetOptionValue(), CommandObjectMemoryRegion::OptionGroupMemoryRegion::SetOptionValue(), and CommandObjectRegisterRead::CommandOptions::SetOptionValue().
|
inline |
Definition at line 76 of file OptionValueBoolean.h.
References m_default_value.
Referenced by BreakpointNameOptionGroup::OptionParsingStarting().
|
overridevirtual |
Reimplemented from lldb_private::OptionValue.
Definition at line 33 of file OptionValueBoolean.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, m_current_value, lldb_private::OptionValue::m_value_was_set, lldb_private::OptionValue::NotifyValueChanged(), lldb_private::OptionValue::SetValueFromString(), and lldb_private::OptionArgParser::ToBoolean().
Referenced by BreakpointNameOptionGroup::SetOptionValue(), CommandObjectCommandsSource::CommandOptions::SetOptionValue(), and lldb_private::OptionGroupBoolean::SetOptionValue().
|
inlineoverridevirtual |
Reimplemented from lldb_private::OptionValue.
Definition at line 32 of file OptionValueBoolean.h.
References m_current_value.
|
protected |
Definition at line 79 of file OptionValueBoolean.h.
Referenced by Clear(), DumpValue(), GetCurrentValue(), operator bool(), operator=(), SetCurrentValue(), SetValueFromString(), and ToJSON().
|
protected |
Definition at line 80 of file OptionValueBoolean.h.
Referenced by Clear(), GetDefaultValue(), and SetDefaultValue().