LLDB mainline
|
#include <VariableList.h>
Public Types | |
typedef collection::iterator | iterator |
typedef collection::const_iterator | const_iterator |
Protected Attributes | |
collection | m_variables |
Private Types | |
typedef std::vector< lldb::VariableSP > | collection |
Private Member Functions | |
VariableList (const VariableList &)=delete | |
const VariableList & | operator= (const VariableList &)=delete |
Definition at line 18 of file VariableList.h.
|
private |
Definition at line 19 of file VariableList.h.
typedef collection::const_iterator lldb_private::VariableList::const_iterator |
Definition at line 71 of file VariableList.h.
typedef collection::iterator lldb_private::VariableList::iterator |
Definition at line 70 of file VariableList.h.
VariableList::VariableList | ( | ) |
Definition at line 20 of file VariableList.cpp.
Referenced by MemorySize().
|
virtualdefault |
|
privatedelete |
void VariableList::AddVariable | ( | const lldb::VariableSP & | var_sp | ) |
Definition at line 25 of file VariableList.cpp.
References m_variables.
Referenced by lldb_private::Block::AppendBlockVariables(), lldb_private::Block::AppendVariables(), AppendVariablesWithScope(), lldb_private::npdb::SymbolFileNativePDB::FindGlobalVariables(), and lldb_private::SymbolFileCTF::FindGlobalVariables().
bool VariableList::AddVariableIfUnique | ( | const lldb::VariableSP & | var_sp | ) |
Definition at line 29 of file VariableList.cpp.
References FindVariableIndex(), m_variables, and UINT32_MAX.
Referenced by AppendVariablesIfUnique(), AppendVariablesWithScope(), CommandObjectFrameVariable::findUniqueRegexMatches(), lldb_private::plugin::dwarf::SymbolFileDWARF::ParseAndAppendGlobalVariable(), SymbolFilePDB::ParseVariables(), and lldb_private::plugin::dwarf::SymbolFileDWARF::PopulateBlockVariableList().
void VariableList::AddVariables | ( | VariableList * | variable_list | ) |
Definition at line 37 of file VariableList.cpp.
References m_variables.
size_t VariableList::AppendVariablesIfUnique | ( | const RegularExpression & | regex, |
VariableList & | var_list, | ||
size_t & | total_matches | ||
) |
Definition at line 111 of file VariableList.cpp.
References AddVariableIfUnique(), end(), GetSize(), and m_variables.
size_t VariableList::AppendVariablesIfUnique | ( | VariableList & | var_list | ) |
Definition at line 103 of file VariableList.cpp.
References AddVariableIfUnique(), end(), GetSize(), and m_variables.
Referenced by lldb::SBFrame::FindValue().
size_t VariableList::AppendVariablesWithScope | ( | lldb::ValueType | type, |
VariableList & | var_list, | ||
bool | if_unique = true |
||
) |
Definition at line 128 of file VariableList.cpp.
References AddVariable(), AddVariableIfUnique(), end(), GetSize(), and m_variables.
Referenced by lldb_private::FormatEntity::Format(), lldb::SBFunction::GetArgumentName(), and lldb_private::CPlusPlusLanguage::GetFunctionDisplayName().
|
inline |
Definition at line 73 of file VariableList.h.
References m_variables.
Referenced by FindIndexForVariable().
|
inline |
Definition at line 75 of file VariableList.h.
References m_variables.
void VariableList::Clear | ( | ) |
Definition at line 45 of file VariableList.cpp.
References m_variables.
Referenced by lldb_private::Variable::GetValuesForVariableExpressionPath().
void VariableList::Dump | ( | Stream * | s, |
bool | show_context | ||
) | const |
Definition at line 167 of file VariableList.cpp.
References end(), and m_variables.
|
inline |
Definition at line 68 of file VariableList.h.
References m_variables.
Referenced by CommandObjectTargetVariable::DumpGlobalVariableList(), and lldb::SBTarget::FindGlobalVariables().
|
inline |
Definition at line 74 of file VariableList.h.
References m_variables.
Referenced by AppendVariablesIfUnique(), AppendVariablesWithScope(), Dump(), FindIndexForVariable(), FindVariable(), FindVariableIndex(), and MemorySize().
|
inline |
Definition at line 76 of file VariableList.h.
References m_variables.
uint32_t VariableList::FindIndexForVariable | ( | Variable * | variable | ) |
Definition at line 145 of file VariableList.cpp.
References begin(), end(), m_variables, and UINT32_MAX.
Referenced by lldb_private::StackFrame::GetValueObjectForFrameVariable().
VariableSP VariableList::FindVariable | ( | ConstString | name, |
bool | include_static_members = true |
||
) |
Definition at line 72 of file VariableList.cpp.
References end(), and m_variables.
Referenced by lldb::SBFrame::FindValue(), lldb_private::StackFrame::FindVariable(), lldb_private::StackFrame::GetValueForVariableExpressionPath(), lldb_private::ClangExpressionDeclMap::LookUpLldbClass(), and lldb_private::ClangExpressionDeclMap::LookUpLldbObjCClass().
VariableSP VariableList::FindVariable | ( | ConstString | name, |
lldb::ValueType | value_type, | ||
bool | include_static_members = true |
||
) |
Definition at line 87 of file VariableList.cpp.
References end(), and m_variables.
uint32_t VariableList::FindVariableIndex | ( | const lldb::VariableSP & | var_sp | ) |
Definition at line 63 of file VariableList.cpp.
References end(), m_variables, and UINT32_MAX.
Referenced by AddVariableIfUnique().
size_t VariableList::GetSize | ( | ) | const |
Definition at line 165 of file VariableList.cpp.
References m_variables.
Referenced by AppendVariablesIfUnique(), AppendVariablesWithScope(), CommandObjectTargetVariable::DoExecute(), CommandObjectFrameVariable::DoExecute(), lldb_private::ClangExpressionDeclMap::FindGlobalVariable(), lldb_private::plugin::dwarf::SymbolFileDWARF::FindGlobalVariables(), lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::FindGlobalVariables(), SymbolFilePDB::FindGlobalVariables(), CommandObjectFrameVariable::findUniqueRegexMatches(), lldb_private::FormatEntity::Format(), lldb_private::CPlusPlusLanguage::GetFunctionDisplayName(), GetSymbolDeclarationFromAddress(), lldb_private::StackFrame::GetValueObjectForFrameVariable(), lldb_private::Variable::GetValuesForVariableExpressionPath(), CommandObjectTargetVariable::GetVariableCallback(), lldb::SBFrame::GetVariables(), lldb_private::FormatEntity::PrettyPrintFunctionArguments(), and lldb_private::plugin::dwarf::SymbolFileDWARFDebugMap::PrivateFindGlobalVariables().
VariableSP VariableList::GetVariableAtIndex | ( | size_t | idx | ) | const |
Definition at line 47 of file VariableList.cpp.
References m_variables.
Referenced by CommandObjectTargetVariable::DoExecute(), CommandObjectFrameVariable::DoExecute(), lldb_private::ClangExpressionDeclMap::FindGlobalVariable(), lldb_private::plugin::dwarf::SymbolFileDWARF::FindGlobalVariables(), lldb::SBFunction::GetArgumentName(), GetSymbolDeclarationFromAddress(), lldb_private::Variable::GetValuesForVariableExpressionPath(), and lldb_private::FormatEntity::PrettyPrintFunctionArguments().
size_t VariableList::MemorySize | ( | ) | const |
Definition at line 157 of file VariableList.cpp.
References end(), m_variables, and VariableList().
|
privatedelete |
VariableSP VariableList::RemoveVariableAtIndex | ( | size_t | idx | ) |
Definition at line 54 of file VariableList.cpp.
References m_variables.
Referenced by lldb_private::plugin::dwarf::SymbolFileDWARF::FindGlobalVariables(), and lldb_private::Variable::GetValuesForVariableExpressionPath().
|
inline |
Definition at line 78 of file VariableList.h.
References m_variables.
Referenced by CommandObjectFrameVariable::findUniqueRegexMatches().
|
protected |
Definition at line 83 of file VariableList.h.
Referenced by AddVariable(), AddVariableIfUnique(), AddVariables(), AppendVariablesIfUnique(), AppendVariablesWithScope(), begin(), Clear(), Dump(), Empty(), end(), FindIndexForVariable(), FindVariable(), FindVariableIndex(), GetSize(), GetVariableAtIndex(), MemorySize(), RemoveVariableAtIndex(), and toArrayRef().