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]
Collaboration diagram for lldb_private::OptionGroupPlatform:
Collaboration graph
[legend]

Public Member Functions

 OptionGroupPlatform (bool include_platform_option)
 
 ~OptionGroupPlatform () override=default
 
llvm::ArrayRef< OptionDefinition > GetDefinitions () 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)
 
ConstString GetSDKRootDirectory () const
 
void SetSDKRootDirectory (ConstString sdk_root_directory)
 
ConstString GetSDKBuild () const
 
void SetSDKBuild (ConstString sdk_build)
 
bool PlatformMatches (const lldb::PlatformSP &platform_sp) const
 
- Public Member Functions inherited from lldb_private::OptionGroup
 OptionGroup ()=default
 
virtual ~OptionGroup ()=default
 
virtual Status OptionParsingFinished (ExecutionContext *execution_context)
 

Protected Attributes

std::string m_platform_name
 
ConstString m_sdk_sysroot
 
ConstString 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

◆ ~OptionGroupPlatform()

lldb_private::OptionGroupPlatform::~OptionGroupPlatform ( )
overridedefault

Referenced by OptionGroupPlatform().

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 79 of file OptionGroupPlatform.cpp.

References g_option_table.

Referenced by OptionGroupPlatform().

◆ GetSDKBuild()

ConstString lldb_private::OptionGroupPlatform::GetSDKBuild ( ) const
inline

Definition at line 57 of file OptionGroupPlatform.h.

References m_sdk_build.

◆ GetSDKRootDirectory()

ConstString lldb_private::OptionGroupPlatform::GetSDKRootDirectory ( ) const
inline

Definition at line 51 of file OptionGroupPlatform.h.

References m_sdk_sysroot.

◆ OptionParsingStarting()

void OptionGroupPlatform::OptionParsingStarting ( ExecutionContext execution_context)
overridevirtual

Implements lldb_private::OptionGroup.

Definition at line 55 of file OptionGroupPlatform.cpp.

Referenced by OptionGroupPlatform().

◆ PlatformMatches()

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

Definition at line 122 of file OptionGroupPlatform.cpp.

Referenced by SetSDKBuild(), and lldb_private::TargetList::~TargetList().

◆ PlatformWasSpecified()

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

Definition at line 42 of file OptionGroupPlatform.h.

References m_platform_name.

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

◆ 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

Definition at line 44 of file OptionGroupPlatform.h.

References m_platform_name.

Referenced by lldb::SBDebugger::CreateTarget().

◆ SetSDKBuild()

void lldb_private::OptionGroupPlatform::SetSDKBuild ( ConstString  sdk_build)
inline

Definition at line 59 of file OptionGroupPlatform.h.

References m_sdk_build, and PlatformMatches().

◆ SetSDKRootDirectory()

void lldb_private::OptionGroupPlatform::SetSDKRootDirectory ( ConstString  sdk_root_directory)
inline

Definition at line 53 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 68 of file OptionGroupPlatform.h.

◆ m_os_version

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

Definition at line 67 of file OptionGroupPlatform.h.

◆ m_platform_name

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

Definition at line 64 of file OptionGroupPlatform.h.

Referenced by PlatformWasSpecified(), and SetPlatformName().

◆ m_sdk_build

ConstString lldb_private::OptionGroupPlatform::m_sdk_build
protected

Definition at line 66 of file OptionGroupPlatform.h.

Referenced by GetSDKBuild(), and SetSDKBuild().

◆ m_sdk_sysroot

ConstString lldb_private::OptionGroupPlatform::m_sdk_sysroot
protected

Definition at line 65 of file OptionGroupPlatform.h.

Referenced by GetSDKRootDirectory(), and SetSDKRootDirectory().


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