LLDB mainline
lldb_private::TestingProperties Struct Reference

Global properties used in the LLDB testsuite. More...

#include <Debugger.h>

Inheritance diagram for lldb_private::TestingProperties:
[legend]

Public Member Functions

 TestingProperties ()
bool GetInjectVarLocListError () const
void SetSafeAutoLoadPaths (FileSpecList paths)
 Overwrites the testing.safe-auto-load-paths settings.
void AppendSafeAutoLoadPaths (FileSpec path)
 Appends a path to the testing.safe-auto-load-paths setting.
Public Member Functions inherited from lldb_private::Properties
 Properties ()
 Properties (const lldb::OptionValuePropertiesSP &collection_sp)
virtual ~Properties ()
lldb::OptionValuePropertiesSP GetValueProperties () const
virtual lldb::OptionValueSP GetPropertyValue (const ExecutionContext *exe_ctx, llvm::StringRef property_path, Status &error) const
virtual Status SetPropertyValue (const ExecutionContext *exe_ctx, VarSetOperationType op, llvm::StringRef property_path, llvm::StringRef value)
virtual Status DumpPropertyValue (const ExecutionContext *exe_ctx, Stream &strm, llvm::StringRef property_path, uint32_t dump_mask, bool is_json=false)
virtual void DumpAllPropertyValues (const ExecutionContext *exe_ctx, Stream &strm, uint32_t dump_mask, bool is_json=false)
virtual void DumpAllDescriptions (CommandInterpreter &interpreter, Stream &strm) const
size_t Apropos (llvm::StringRef keyword, std::vector< const Property * > &matching_properties) const
template<typename T>
GetPropertyAtIndexAs (uint32_t idx, T default_value, const ExecutionContext *exe_ctx=nullptr) const
template<typename T, typename U = typename std::remove_pointer<T>::type, std::enable_if_t< std::is_pointer_v< T >, bool > = true>
const U * GetPropertyAtIndexAs (uint32_t idx, const ExecutionContext *exe_ctx=nullptr) const
template<typename T>
bool SetPropertyAtIndex (uint32_t idx, T t, const ExecutionContext *exe_ctx=nullptr) const

Static Public Member Functions

static TestingPropertiesGetGlobalTestingProperties ()
Static Public Member Functions inherited from lldb_private::Properties
static llvm::StringRef GetExperimentalSettingsName ()
static bool IsSettingExperimental (llvm::StringRef setting)

Private Member Functions

FileSpecList GetSafeAutoLoadPaths () const
 Callers should use Debugger::GetSafeAutoLoadPaths since it accounts for default paths configured via CMake.

Private Attributes

friend Debugger

Additional Inherited Members

Protected Attributes inherited from lldb_private::Properties
lldb::OptionValuePropertiesSP m_collection_sp

Detailed Description

Global properties used in the LLDB testsuite.

Definition at line 76 of file Debugger.h.

Constructor & Destructor Documentation

◆ TestingProperties()

TestingProperties::TestingProperties ( )

Definition at line 238 of file Debugger.cpp.

References lldb_private::Properties::m_collection_sp.

Referenced by GetGlobalTestingProperties().

Member Function Documentation

◆ AppendSafeAutoLoadPaths()

void TestingProperties::AppendSafeAutoLoadPaths ( FileSpec path)

Appends a path to the testing.safe-auto-load-paths setting.

Definition at line 262 of file Debugger.cpp.

References lldb_private::OptionValueFileSpecList::AppendCurrentValue(), and lldb_private::Properties::m_collection_sp.

◆ GetGlobalTestingProperties()

TestingProperties & TestingProperties::GetGlobalTestingProperties ( )
static

◆ GetInjectVarLocListError()

bool TestingProperties::GetInjectVarLocListError ( ) const

Definition at line 243 of file Debugger.cpp.

References lldb_private::Properties::GetPropertyAtIndexAs().

◆ GetSafeAutoLoadPaths()

FileSpecList TestingProperties::GetSafeAutoLoadPaths ( ) const
private

Callers should use Debugger::GetSafeAutoLoadPaths since it accounts for default paths configured via CMake.

Definition at line 270 of file Debugger.cpp.

References lldb_private::Properties::GetPropertyAtIndexAs().

◆ SetSafeAutoLoadPaths()

void TestingProperties::SetSafeAutoLoadPaths ( FileSpecList paths)

Overwrites the testing.safe-auto-load-paths settings.

Definition at line 254 of file Debugger.cpp.

References lldb_private::Properties::m_collection_sp, and lldb_private::OptionValueFileSpecList::SetCurrentValue().

Member Data Documentation

◆ Debugger

friend lldb_private::TestingProperties::Debugger
private

Definition at line 88 of file Debugger.h.


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