LLDB mainline
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 ( )

◆ SBFileSpec() [2/4]

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

Definition at line 30 of file SBFileSpec.cpp.

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

◆ SBFileSpec() [3/4]

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

◆ ~SBFileSpec()

◆ SBFileSpec() [4/4]

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

Definition at line 36 of file SBFileSpec.cpp.

References m_opaque_up.

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.

Referenced by ~SBFileSpec().

◆ Exists()

◆ 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(), and SBSaveCoreOptions.

◆ GetDescription()

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

◆ GetDirectory()

◆ GetFilename()

const char * SBFileSpec::GetFilename ( ) const

Definition at line 108 of file SBFileSpec.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_up.

Referenced by ~SBFileSpec().

◆ 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(), and ~SBFileSpec().

◆ IsValid()

◆ 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

References SBFileSpec().

◆ operator bool()

SBFileSpec::operator bool ( ) const
explicit

Definition at line 80 of file SBFileSpec.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_up.

◆ operator!=()

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

Definition at line 70 of file SBFileSpec.cpp.

References LLDB_INSTRUMENT_VA, and SBFileSpec().

◆ 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, m_opaque_up, and SBFileSpec().

◆ operator==()

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

Definition at line 64 of file SBFileSpec.cpp.

References LLDB_INSTRUMENT_VA, ref(), and SBFileSpec().

◆ ref()

◆ 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.

Referenced by ~SBFileSpec().

◆ SetFilename()

void SBFileSpec::SetFilename ( const char * filename)

Definition at line 122 of file SBFileSpec.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_up.

Referenced by ~SBFileSpec().

◆ SetFileSpec()

◆ SBAttachInfo

friend class SBAttachInfo
friend

Definition at line 63 of file SBFileSpec.h.

References SBAttachInfo.

Referenced by SBAttachInfo.

◆ SBBlock

friend class SBBlock
friend

Definition at line 64 of file SBFileSpec.h.

References SBBlock.

Referenced by SBBlock.

◆ SBCommandInterpreter

friend class SBCommandInterpreter
friend

Definition at line 65 of file SBFileSpec.h.

References SBCommandInterpreter.

Referenced by SBCommandInterpreter.

◆ SBCompileUnit

friend class SBCompileUnit
friend

Definition at line 66 of file SBFileSpec.h.

References SBCompileUnit.

Referenced by SBCompileUnit.

◆ SBDeclaration

friend class SBDeclaration
friend

Definition at line 67 of file SBFileSpec.h.

References SBDeclaration.

Referenced by SBDeclaration.

◆ SBFileSpecList

friend class SBFileSpecList
friend

Definition at line 68 of file SBFileSpec.h.

References SBFileSpecList.

Referenced by SBFileSpecList.

◆ SBHostOS

friend class SBHostOS
friend

Definition at line 69 of file SBFileSpec.h.

References SBHostOS.

Referenced by SBHostOS.

◆ SBLaunchInfo

friend class SBLaunchInfo
friend

Definition at line 70 of file SBFileSpec.h.

References SBLaunchInfo.

Referenced by SBLaunchInfo.

◆ SBLineEntry

friend class SBLineEntry
friend

Definition at line 71 of file SBFileSpec.h.

References SBLineEntry.

Referenced by SBLineEntry.

◆ SBModule

friend class SBModule
friend

Definition at line 72 of file SBFileSpec.h.

References SBModule.

Referenced by SBModule.

◆ SBModuleSpec

friend class SBModuleSpec
friend

Definition at line 73 of file SBFileSpec.h.

References SBModuleSpec.

Referenced by SBModuleSpec.

◆ SBPlatform

friend class SBPlatform
friend

Definition at line 74 of file SBFileSpec.h.

References SBPlatform.

Referenced by SBPlatform.

◆ SBProcess

friend class SBProcess
friend

Definition at line 75 of file SBFileSpec.h.

References SBProcess.

Referenced by SBProcess.

◆ SBProcessInfo

friend class SBProcessInfo
friend

Definition at line 76 of file SBFileSpec.h.

References SBProcessInfo.

Referenced by SBProcessInfo.

◆ SBSaveCoreOptions

friend class SBSaveCoreOptions
friend

Definition at line 81 of file SBFileSpec.h.

References get(), ref(), SBFileSpec(), SBSaveCoreOptions, and SetFileSpec().

Referenced by SBSaveCoreOptions.

◆ SBSourceManager

friend class SBSourceManager
friend

Definition at line 77 of file SBFileSpec.h.

References SBSourceManager.

Referenced by SBSourceManager.

◆ SBTarget

friend class SBTarget
friend

Definition at line 78 of file SBFileSpec.h.

References SBTarget.

Referenced by SBTarget.

◆ SBThread

friend class SBThread
friend

Definition at line 79 of file SBFileSpec.h.

References SBThread.

Referenced by SBThread.

◆ SBTrace

friend class SBTrace
friend

Definition at line 80 of file SBFileSpec.h.

References SBTrace.

Referenced by SBTrace.

Member Data Documentation

◆ m_opaque_up


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