LLDB mainline
Public Member Functions | Protected Attributes | List of all members
lldb_private::OptionGroupPlatform Class Reference

#include <OptionGroupPlatform.h>

Inheritance diagram for lldb_private::OptionGroupPlatform:
Inheritance graph
[legend]

Public Member Functions

 OptionGroupPlatform (bool include_platform_option)
 
 ~OptionGroupPlatform () override=default
 
llvm::ArrayRef< OptionDefinitionGetDefinitions () override
 
Status SetOptionValue (uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context) override
 
Status SetOptionValue (uint32_t, const char *, ExecutionContext *)=delete
 
void OptionParsingStarting (ExecutionContext *execution_context) override
 
lldb::PlatformSP CreatePlatformWithOptions (CommandInterpreter &interpreter, const ArchSpec &arch, bool make_selected, Status &error, ArchSpec &platform_arch) const
 
bool PlatformWasSpecified () const
 
void SetPlatformName (const char *platform_name)
 
const std::string & GetSDKRootDirectory () const
 
void SetSDKRootDirectory (std::string sdk_root_directory)
 
const std::string & GetSDKBuild () const
 
void SetSDKBuild (std::string sdk_build)
 
bool PlatformMatches (const lldb::PlatformSP &platform_sp) const
 
- Public Member Functions inherited from lldb_private::OptionGroup
 OptionGroup ()=default
 
virtual ~OptionGroup ()=default
 
virtual llvm::ArrayRef< OptionDefinitionGetDefinitions ()=0
 
virtual Status SetOptionValue (uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context)=0
 
virtual void OptionParsingStarting (ExecutionContext *execution_context)=0
 
virtual Status OptionParsingFinished (ExecutionContext *execution_context)
 

Protected Attributes

std::string m_platform_name
 
std::string m_sdk_sysroot
 
std::string m_sdk_build
 
llvm::VersionTuple m_os_version
 
bool m_include_platform_option
 

Detailed Description

Definition at line 21 of file OptionGroupPlatform.h.

Constructor & Destructor Documentation

◆ OptionGroupPlatform()

lldb_private::OptionGroupPlatform::OptionGroupPlatform ( bool  include_platform_option)
inline

Definition at line 23 of file OptionGroupPlatform.h.

◆ ~OptionGroupPlatform()

lldb_private::OptionGroupPlatform::~OptionGroupPlatform ( )
overridedefault

Member Function Documentation

◆ CreatePlatformWithOptions()

PlatformSP OptionGroupPlatform::CreatePlatformWithOptions ( CommandInterpreter interpreter,
const ArchSpec arch,
bool  make_selected,
Status error,
ArchSpec platform_arch 
) const

◆ GetDefinitions()

llvm::ArrayRef< OptionDefinition > OptionGroupPlatform::GetDefinitions ( )
overridevirtual

Implements lldb_private::OptionGroup.

Definition at line 87 of file OptionGroupPlatform.cpp.

References g_option_table, and m_include_platform_option.

◆ GetSDKBuild()

const std::string & lldb_private::OptionGroupPlatform::GetSDKBuild ( ) const
inline

Definition at line 56 of file OptionGroupPlatform.h.

References m_sdk_build.

◆ GetSDKRootDirectory()

const std::string & lldb_private::OptionGroupPlatform::GetSDKRootDirectory ( ) const
inline

Definition at line 50 of file OptionGroupPlatform.h.

References m_sdk_sysroot.

◆ OptionParsingStarting()

void OptionGroupPlatform::OptionParsingStarting ( ExecutionContext execution_context)
overridevirtual

◆ PlatformMatches()

bool OptionGroupPlatform::PlatformMatches ( const lldb::PlatformSP platform_sp) const

◆ PlatformWasSpecified()

bool lldb_private::OptionGroupPlatform::PlatformWasSpecified ( ) const
inline

Definition at line 41 of file OptionGroupPlatform.h.

References m_platform_name.

Referenced by lldb_private::TargetList::CreateTargetInternal().

◆ SetOptionValue() [1/2]

Status OptionGroupPlatform::SetOptionValue ( uint32_t  option_idx,
llvm::StringRef  option_value,
ExecutionContext execution_context 
)
overridevirtual

◆ SetOptionValue() [2/2]

Status lldb_private::OptionGroupPlatform::SetOptionValue ( uint32_t  ,
const char *  ,
ExecutionContext  
)
delete

◆ SetPlatformName()

void lldb_private::OptionGroupPlatform::SetPlatformName ( const char *  platform_name)
inline

◆ SetSDKBuild()

void lldb_private::OptionGroupPlatform::SetSDKBuild ( std::string  sdk_build)
inline

Definition at line 58 of file OptionGroupPlatform.h.

References m_sdk_build.

◆ SetSDKRootDirectory()

void lldb_private::OptionGroupPlatform::SetSDKRootDirectory ( std::string  sdk_root_directory)
inline

Definition at line 52 of file OptionGroupPlatform.h.

References m_sdk_sysroot.

Member Data Documentation

◆ m_include_platform_option

bool lldb_private::OptionGroupPlatform::m_include_platform_option
protected

Definition at line 69 of file OptionGroupPlatform.h.

Referenced by GetDefinitions(), and SetOptionValue().

◆ m_os_version

llvm::VersionTuple lldb_private::OptionGroupPlatform::m_os_version
protected

◆ m_platform_name

std::string lldb_private::OptionGroupPlatform::m_platform_name
protected

◆ m_sdk_build

std::string lldb_private::OptionGroupPlatform::m_sdk_build
protected

◆ m_sdk_sysroot

std::string lldb_private::OptionGroupPlatform::m_sdk_sysroot
protected

The documentation for this class was generated from the following files: