LLDB mainline
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
lldb::SBFileSpec Class Reference

#include <SBFileSpec.h>

Public Member Functions

 SBFileSpec ()
 
 SBFileSpec (const lldb::SBFileSpec &rhs)
 
 LLDB_DEPRECATED_FIXME ("Use the other constructor to determine if this the file " "spec should be resolved", "SBFileSpec(const char *, bool)") SBFileSpec(const char *path)
 
 SBFileSpec (const char *path, bool resolve)
 
 ~SBFileSpec ()
 
const SBFileSpecoperator= (const lldb::SBFileSpec &rhs)
 
 operator bool () const
 
bool operator== (const SBFileSpec &rhs) const
 
bool operator!= (const SBFileSpec &rhs) const
 
bool IsValid () const
 
bool Exists () const
 
bool ResolveExecutableLocation ()
 
const char * GetFilename () const
 
const char * GetDirectory () const
 
void SetFilename (const char *filename)
 
void SetDirectory (const char *directory)
 
uint32_t GetPath (char *dst_path, size_t dst_len) const
 
bool GetDescription (lldb::SBStream &description) const
 
void AppendPathComponent (const char *file_or_directory)
 

Static Public Member Functions

static int ResolvePath (const char *src_path, char *dst_path, size_t dst_len)
 

Private Member Functions

 SBFileSpec (const lldb_private::FileSpec &fspec)
 
void SetFileSpec (const lldb_private::FileSpec &fspec)
 
const lldb_private::FileSpecoperator-> () const
 
const lldb_private::FileSpecget () const
 
const lldb_private::FileSpecoperator* () const
 
const lldb_private::FileSpecref () const
 

Private Attributes

std::unique_ptr< lldb_private::FileSpecm_opaque_up
 

Friends

class SBAttachInfo
 
class SBBlock
 
class SBCommandInterpreter
 
class SBCompileUnit
 
class SBDeclaration
 
class SBFileSpecList
 
class SBHostOS
 
class SBLaunchInfo
 
class SBLineEntry
 
class SBModule
 
class SBModuleSpec
 
class SBPlatform
 
class SBProcess
 
class SBProcessInfo
 
class SBSourceManager
 
class SBTarget
 
class SBThread
 
class SBTrace
 
class SBSaveCoreOptions
 

Detailed Description

Definition at line 16 of file SBFileSpec.h.

Constructor & Destructor Documentation

◆ SBFileSpec() [1/4]

SBFileSpec::SBFileSpec ( )

Definition at line 26 of file SBFileSpec.cpp.

References LLDB_INSTRUMENT_VA.

◆ SBFileSpec() [2/4]

SBFileSpec::SBFileSpec ( const lldb::SBFileSpec rhs)

Definition at line 30 of file SBFileSpec.cpp.

References lldb_private::clone(), LLDB_INSTRUMENT_VA, and m_opaque_up.

◆ SBFileSpec() [3/4]

SBFileSpec::SBFileSpec ( const char *  path,
bool  resolve 
)

◆ ~SBFileSpec()

SBFileSpec::~SBFileSpec ( )
default

◆ SBFileSpec() [4/4]

SBFileSpec::SBFileSpec ( const lldb_private::FileSpec fspec)
private

Definition at line 36 of file SBFileSpec.cpp.

Member Function Documentation

◆ AppendPathComponent()

void SBFileSpec::AppendPathComponent ( const char *  file_or_directory)

Definition at line 178 of file SBFileSpec.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_up.

◆ Exists()

bool SBFileSpec::Exists ( ) const

◆ get()

const lldb_private::FileSpec * SBFileSpec::get ( ) const
private

Definition at line 154 of file SBFileSpec.cpp.

References m_opaque_up.

Referenced by lldb::SBCompileUnit::FindLineEntryIndex().

◆ GetDescription()

bool SBFileSpec::GetDescription ( lldb::SBStream description) const

◆ GetDirectory()

const char * SBFileSpec::GetDirectory ( ) const

Definition at line 114 of file SBFileSpec.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_up.

◆ GetFilename()

const char * SBFileSpec::GetFilename ( ) const

Definition at line 108 of file SBFileSpec.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_up.

◆ GetPath()

uint32_t SBFileSpec::GetPath ( char *  dst_path,
size_t  dst_len 
) const

Definition at line 140 of file SBFileSpec.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_up.

Referenced by lldb::SBProcess::GetDescription().

◆ IsValid()

bool SBFileSpec::IsValid ( ) const

◆ LLDB_DEPRECATED_FIXME()

lldb::SBFileSpec::LLDB_DEPRECATED_FIXME ( "Use the other constructor to determine if this the file " "spec should be resolved"  ,
"SBFileSpec(const char *, bool)"   
) const

◆ operator bool()

SBFileSpec::operator bool ( ) const
explicit

Definition at line 80 of file SBFileSpec.cpp.

References LLDB_INSTRUMENT_VA.

◆ operator!=()

bool SBFileSpec::operator!= ( const SBFileSpec rhs) const

Definition at line 70 of file SBFileSpec.cpp.

References LLDB_INSTRUMENT_VA.

◆ operator*()

const lldb_private::FileSpec & SBFileSpec::operator* ( ) const
private

Definition at line 158 of file SBFileSpec.cpp.

References m_opaque_up.

◆ operator->()

const lldb_private::FileSpec * SBFileSpec::operator-> ( ) const
private

Definition at line 150 of file SBFileSpec.cpp.

References m_opaque_up.

◆ operator=()

const SBFileSpec & SBFileSpec::operator= ( const lldb::SBFileSpec rhs)

Definition at line 56 of file SBFileSpec.cpp.

References lldb_private::clone(), LLDB_INSTRUMENT_VA, and m_opaque_up.

◆ operator==()

bool SBFileSpec::operator== ( const SBFileSpec rhs) const

Definition at line 64 of file SBFileSpec.cpp.

References LLDB_INSTRUMENT_VA, and ref().

◆ ref()

const lldb_private::FileSpec & SBFileSpec::ref ( ) const
private

◆ ResolveExecutableLocation()

bool SBFileSpec::ResolveExecutableLocation ( )

◆ ResolvePath()

int SBFileSpec::ResolvePath ( const char *  src_path,
char *  dst_path,
size_t  dst_len 
)
static

◆ SetDirectory()

void SBFileSpec::SetDirectory ( const char *  directory)

Definition at line 131 of file SBFileSpec.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_up.

◆ SetFilename()

void SBFileSpec::SetFilename ( const char *  filename)

Definition at line 122 of file SBFileSpec.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_up.

◆ SetFileSpec()

void SBFileSpec::SetFileSpec ( const lldb_private::FileSpec fspec)
private

Friends And Related Function Documentation

◆ SBAttachInfo

friend class SBAttachInfo
friend

Definition at line 63 of file SBFileSpec.h.

◆ SBBlock

friend class SBBlock
friend

Definition at line 64 of file SBFileSpec.h.

◆ SBCommandInterpreter

friend class SBCommandInterpreter
friend

Definition at line 65 of file SBFileSpec.h.

◆ SBCompileUnit

friend class SBCompileUnit
friend

Definition at line 66 of file SBFileSpec.h.

◆ SBDeclaration

friend class SBDeclaration
friend

Definition at line 67 of file SBFileSpec.h.

◆ SBFileSpecList

friend class SBFileSpecList
friend

Definition at line 68 of file SBFileSpec.h.

◆ SBHostOS

friend class SBHostOS
friend

Definition at line 69 of file SBFileSpec.h.

◆ SBLaunchInfo

friend class SBLaunchInfo
friend

Definition at line 70 of file SBFileSpec.h.

◆ SBLineEntry

friend class SBLineEntry
friend

Definition at line 71 of file SBFileSpec.h.

◆ SBModule

friend class SBModule
friend

Definition at line 72 of file SBFileSpec.h.

◆ SBModuleSpec

friend class SBModuleSpec
friend

Definition at line 73 of file SBFileSpec.h.

◆ SBPlatform

friend class SBPlatform
friend

Definition at line 74 of file SBFileSpec.h.

◆ SBProcess

friend class SBProcess
friend

Definition at line 75 of file SBFileSpec.h.

◆ SBProcessInfo

friend class SBProcessInfo
friend

Definition at line 76 of file SBFileSpec.h.

◆ SBSaveCoreOptions

friend class SBSaveCoreOptions
friend

Definition at line 81 of file SBFileSpec.h.

◆ SBSourceManager

friend class SBSourceManager
friend

Definition at line 77 of file SBFileSpec.h.

◆ SBTarget

friend class SBTarget
friend

Definition at line 78 of file SBFileSpec.h.

◆ SBThread

friend class SBThread
friend

Definition at line 79 of file SBFileSpec.h.

◆ SBTrace

friend class SBTrace
friend

Definition at line 80 of file SBFileSpec.h.

Member Data Documentation

◆ m_opaque_up

std::unique_ptr<lldb_private::FileSpec> lldb::SBFileSpec::m_opaque_up
private

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