LLDB mainline
|
#include <OptionDefinition.h>
Public Member Functions | |
bool | HasShortOption () const |
Whether this has a short option character. | |
Public Attributes | |
uint32_t | usage_mask |
Used to mark options that can be used together. | |
bool | required |
This option is required (in the current usage level). | |
const char * | long_option |
Full name for this option. | |
int | short_option |
Single character for this option. | |
int | option_has_arg |
no_argument, required_argument or optional_argument | |
OptionValidator * | validator |
If non-NULL, option is valid iff |validator->IsValid()|, otherwise always valid. | |
OptionEnumValues | enum_values |
If not empty, an array of enum values. | |
uint32_t | completion_type |
The kind of completion for this option. | |
lldb::CommandArgumentType | argument_type |
Type of argument this option takes. | |
const char * | usage_text |
Full text explaining what this options does and what (if any) argument to pass it. | |
Definition at line 20 of file OptionDefinition.h.
|
inline |
Whether this has a short option character.
Definition at line 50 of file OptionDefinition.h.
References short_option.
Referenced by lldb_private::Options::GenerateOptionUsage(), and PrintOption().
lldb::CommandArgumentType lldb_private::OptionDefinition::argument_type |
Type of argument this option takes.
Definition at line 44 of file OptionDefinition.h.
Referenced by lldb_private::OptionGroupBoolean::OptionGroupBoolean(), lldb_private::OptionGroupFile::OptionGroupFile(), lldb_private::OptionGroupFileList::OptionGroupFileList(), lldb_private::OptionGroupPythonClassWithDict::OptionGroupPythonClassWithDict(), lldb_private::OptionGroupString::OptionGroupString(), lldb_private::OptionGroupUInt64::OptionGroupUInt64(), PrintOption(), and CommandObjectScriptingObjectParsed::CommandOptions::SetOptionsFromArray().
uint32_t lldb_private::OptionDefinition::completion_type |
The kind of completion for this option.
Contains values of the lldb::CompletionType enum.
Definition at line 42 of file OptionDefinition.h.
Referenced by lldb_private::OptionGroupBoolean::OptionGroupBoolean(), lldb_private::OptionGroupFile::OptionGroupFile(), lldb_private::OptionGroupFileList::OptionGroupFileList(), lldb_private::OptionGroupPythonClassWithDict::OptionGroupPythonClassWithDict(), lldb_private::OptionGroupString::OptionGroupString(), lldb_private::OptionGroupUInt64::OptionGroupUInt64(), and CommandObjectScriptingObjectParsed::CommandOptions::SetOptionsFromArray().
OptionEnumValues lldb_private::OptionDefinition::enum_values |
If not empty, an array of enum values.
Definition at line 39 of file OptionDefinition.h.
Referenced by lldb_private::Options::GenerateOptionUsage(), lldb_private::OptionGroupBoolean::OptionGroupBoolean(), lldb_private::OptionGroupFile::OptionGroupFile(), lldb_private::OptionGroupFileList::OptionGroupFileList(), lldb_private::OptionGroupPythonClassWithDict::OptionGroupPythonClassWithDict(), lldb_private::OptionGroupString::OptionGroupString(), lldb_private::OptionGroupUInt64::OptionGroupUInt64(), CommandObjectScriptingObjectParsed::CommandOptions::SetOptionsFromArray(), and CommandObjectCommandsScriptAdd::CommandOptions::SetOptionValue().
const char* lldb_private::OptionDefinition::long_option |
Full name for this option.
Definition at line 27 of file OptionDefinition.h.
Referenced by FindArgumentIndexForOption(), lldb_private::Options::HandleOptionCompletion(), lldb_private::OptionGroupBoolean::OptionGroupBoolean(), lldb_private::OptionGroupFile::OptionGroupFile(), lldb_private::OptionGroupFileList::OptionGroupFileList(), lldb_private::OptionGroupPythonClassWithDict::OptionGroupPythonClassWithDict(), lldb_private::OptionGroupString::OptionGroupString(), lldb_private::OptionGroupUInt64::OptionGroupUInt64(), lldb_private::Options::Parse(), lldb_private::OptionParser::Parse(), PrintOption(), and CommandObjectScriptingObjectParsed::CommandOptions::SetOptionsFromArray().
int lldb_private::OptionDefinition::option_has_arg |
no_argument, required_argument or optional_argument
Definition at line 34 of file OptionDefinition.h.
Referenced by lldb_private::OptionGroupBoolean::OptionGroupBoolean(), lldb_private::OptionGroupFile::OptionGroupFile(), lldb_private::OptionGroupFileList::OptionGroupFileList(), lldb_private::OptionGroupPythonClassWithDict::OptionGroupPythonClassWithDict(), lldb_private::OptionGroupString::OptionGroupString(), lldb_private::OptionGroupUInt64::OptionGroupUInt64(), lldb_private::Options::Parse(), lldb_private::OptionParser::Parse(), lldb_private::Options::ParseAlias(), lldb_private::Options::ParseForCompletion(), PrintOption(), CommandObjectScriptingObjectParsed::CommandOptions::SetOptionsFromArray(), and lldb_private::OptionGroupBoolean::SetOptionValue().
bool lldb_private::OptionDefinition::required |
This option is required (in the current usage level).
Definition at line 25 of file OptionDefinition.h.
Referenced by lldb_private::OptionGroupBoolean::OptionGroupBoolean(), lldb_private::OptionGroupFile::OptionGroupFile(), lldb_private::OptionGroupFileList::OptionGroupFileList(), lldb_private::OptionGroupPythonClassWithDict::OptionGroupPythonClassWithDict(), lldb_private::OptionGroupString::OptionGroupString(), lldb_private::OptionGroupUInt64::OptionGroupUInt64(), PrintOption(), and CommandObjectScriptingObjectParsed::CommandOptions::SetOptionsFromArray().
int lldb_private::OptionDefinition::short_option |
Single character for this option.
If the option doesn't use a short option character, this has to be a integer value that is not a printable ASCII code point and also unique in the used set of options.
Definition at line 32 of file OptionDefinition.h.
Referenced by lldb_private::Options::GenerateOptionUsage(), lldb_private::OptionGroupOptions::GetGroupWithOption(), HasShortOption(), lldb_private::OptionGroupBoolean::OptionGroupBoolean(), lldb_private::OptionGroupFile::OptionGroupFile(), lldb_private::OptionGroupFileList::OptionGroupFileList(), lldb_private::OptionGroupPythonClassWithDict::OptionGroupPythonClassWithDict(), lldb_private::OptionGroupString::OptionGroupString(), lldb_private::OptionGroupUInt64::OptionGroupUInt64(), PrintOption(), CommandObjectScriptingObjectParsed::CommandOptions::SetOptionsFromArray(), lldb_private::OptionGroupArchitecture::SetOptionValue(), lldb_private::OptionGroupFormat::SetOptionValue(), lldb_private::OptionGroupMemoryTag::SetOptionValue(), lldb_private::OptionGroupOutputFile::SetOptionValue(), lldb_private::OptionGroupPlatform::SetOptionValue(), lldb_private::OptionGroupUUID::SetOptionValue(), lldb_private::OptionGroupValueObjectDisplay::SetOptionValue(), and lldb_private::OptionGroupWatchpoint::SetOptionValue().
uint32_t lldb_private::OptionDefinition::usage_mask |
Used to mark options that can be used together.
If (1 << n & usage_mask) != 0
then this option belongs to option set n.
Definition at line 23 of file OptionDefinition.h.
Referenced by lldb_private::OptionGroupBoolean::OptionGroupBoolean(), lldb_private::OptionGroupFile::OptionGroupFile(), lldb_private::OptionGroupFileList::OptionGroupFileList(), lldb_private::OptionGroupPythonClassWithDict::OptionGroupPythonClassWithDict(), lldb_private::OptionGroupString::OptionGroupString(), lldb_private::OptionGroupUInt64::OptionGroupUInt64(), and CommandObjectScriptingObjectParsed::CommandOptions::SetOptionsFromArray().
const char* lldb_private::OptionDefinition::usage_text |
Full text explaining what this options does and what (if any) argument to pass it.
Definition at line 47 of file OptionDefinition.h.
Referenced by lldb_private::Options::GenerateOptionUsage(), lldb_private::Options::HandleOptionCompletion(), lldb_private::OptionGroupBoolean::OptionGroupBoolean(), lldb_private::OptionGroupFile::OptionGroupFile(), lldb_private::OptionGroupFileList::OptionGroupFileList(), lldb_private::OptionGroupFormat::OptionGroupFormat(), lldb_private::OptionGroupPythonClassWithDict::OptionGroupPythonClassWithDict(), lldb_private::OptionGroupString::OptionGroupString(), lldb_private::OptionGroupUInt64::OptionGroupUInt64(), lldb_private::Options::OutputFormattedUsageText(), and CommandObjectScriptingObjectParsed::CommandOptions::SetOptionsFromArray().
OptionValidator* lldb_private::OptionDefinition::validator |
If non-NULL, option is valid iff |validator->IsValid()|, otherwise always valid.
Definition at line 37 of file OptionDefinition.h.
Referenced by lldb_private::OptionGroupBoolean::OptionGroupBoolean(), lldb_private::OptionGroupFile::OptionGroupFile(), lldb_private::OptionGroupFileList::OptionGroupFileList(), lldb_private::OptionGroupPythonClassWithDict::OptionGroupPythonClassWithDict(), lldb_private::OptionGroupString::OptionGroupString(), lldb_private::OptionGroupUInt64::OptionGroupUInt64(), lldb_private::Options::OutputFormattedUsageText(), lldb_private::Options::Parse(), and CommandObjectScriptingObjectParsed::CommandOptions::SetOptionsFromArray().