Go to the documentation of this file.
9 #ifndef LLDB_SYMBOL_VARIABLE_H
10 #define LLDB_SYMBOL_VARIABLE_H
25 class Variable :
public UserID,
public std::enable_shared_from_this<Variable> {
36 bool artificial,
bool location_is_constant_data,
37 bool static_member =
false);
149 #endif // LLDB_SYMBOL_VARIABLE_H
bool DumpDeclaration(Stream *s, bool show_fullpaths, bool show_module)
SymbolContextScope * m_owner_scope
The symbol file scope that this variable was defined in.
lldb::ValueType GetScope() const
A collection of ValueObject values that.
size_t(* GetVariableCallback)(void *baton, const char *name, VariableList &var_list)
lldb::SymbolFileTypeSP m_symfile_type_sp
The type pointer of the variable (int, struct, class, etc) global, parameter, local.
const DWARFExpression & LocationExpression() const
size_t MemorySize() const
LanguageType
Programming language type.
Represents a generic declaration such as a function declaration.
SymbolContextScope * GetSymbolContextScope() const
bool DumpLocations(Stream *s, const Address &address)
ConstString GetName() const
ConstString m_name
The basename of the variable (no namespaces).
bool IsArtificial() const
bool IsInScope(StackFrame *frame)
const Declaration & GetDeclaration() const
lldb::LanguageType GetLanguage() const
RangeVector< lldb::addr_t, lldb::addr_t > RangeList
Variable & operator=(const Variable &rhs)=delete
static Status GetValuesForVariableExpressionPath(llvm::StringRef variable_expr_path, ExecutionContextScope *scope, GetVariableCallback callback, void *baton, VariableList &variable_list, ValueObjectList &valobj_list)
unsigned m_external
Visible outside the containing compile unit?
RangeList m_scope_range
The list of ranges inside the owner's scope where this variable is valid.
unsigned m_loc_is_const_data
The m_location expression contains the constant variable value data, not a DWARF location.
bool NameMatches(ConstString name) const
Since a variable can have a basename "i" and also a mangled named "_ZN12_GLOBAL__N_11iE" and a demang...
CompilerDeclContext GetDeclContext()
Represents a generic declaration context in a program.
static void AutoComplete(const ExecutionContext &exe_ctx, CompletionRequest &request)
const RangeList & GetScopeRange() const
bool IsStaticMember() const
bool LocationIsValidForAddress(const Address &address)
DWARFExpression m_location
The location of this variable that can be fed to DWARFExpression::Evaluate().
void CalculateSymbolContext(SymbolContext *sc)
DWARFExpression & LocationExpression()
Mangled m_mangled
The mangled name of the variable.
A class that represents a running process on the host machine.
void SetLocationIsConstantValueData(bool b)
bool GetLocationIsConstantValueData() const
bool LocationIsValidForFrame(StackFrame *frame)
unsigned m_static_member
Non-zero if variable is static member of a class or struct.
ConstString GetUnqualifiedName() const
unsigned m_artificial
Non-zero if the variable is not explicitly declared in source.
Declaration m_declaration
Declaration location for this item.
void Dump(Stream *s, bool show_context) const
Variable(lldb::user_id_t uid, const char *name, const char *mangled, const lldb::SymbolFileTypeSP &symfile_type_sp, lldb::ValueType scope, SymbolContextScope *owner_scope, const RangeList &scope_range, Declaration *decl, const DWARFExpression &location, bool external, bool artificial, bool location_is_constant_data, bool static_member=false)
Constructors and Destructors.