LLDB mainline
|
A class that contains generic function information. More...
#include "lldb/Symbol/Function.h"
Public Member Functions | |
FunctionInfo (const char *name, const Declaration *decl_ptr) | |
Construct with the function method name and optional declaration information. | |
FunctionInfo (ConstString name, const Declaration *decl_ptr) | |
Construct with the function method name and optional declaration information. | |
virtual | ~FunctionInfo () |
Destructor. | |
void | Dump (Stream *s, bool show_fullpaths) const |
Dump a description of this object to a Stream. | |
Declaration & | GetDeclaration () |
Get accessor for the declaration information. | |
const Declaration & | GetDeclaration () const |
Get const accessor for the declaration information. | |
ConstString | GetName () const |
Get accessor for the method name. | |
virtual size_t | MemorySize () const |
Get the memory cost of this object. | |
Static Public Member Functions | |
static int | Compare (const FunctionInfo &lhs, const FunctionInfo &rhs) |
Compare two function information objects. | |
Protected Attributes | |
ConstString | m_name |
Function method name (not a mangled name). | |
Declaration | m_declaration |
Information describing where this function information was defined. | |
A class that contains generic function information.
This provides generic function information that gets reused between inline functions and function types.
Definition at line 31 of file Function.h.
FunctionInfo::FunctionInfo | ( | const char * | name, |
const Declaration * | decl_ptr | ||
) |
Construct with the function method name and optional declaration information.
[in] | name | A C string name for the method name for this function. This value should not be the mangled named, but the simple method name. |
[in] | decl_ptr | Optional declaration information that describes where the function was declared. This can be NULL. |
Definition at line 31 of file Function.cpp.
FunctionInfo::FunctionInfo | ( | ConstString | name, |
const Declaration * | decl_ptr | ||
) |
Construct with the function method name and optional declaration information.
[in] | name | A name for the method name for this function. This value should not be the mangled named, but the simple method name. |
[in] | decl_ptr | Optional declaration information that describes where the function was declared. This can be NULL. |
Definition at line 34 of file Function.cpp.
|
virtualdefault |
Destructor.
The destructor is virtual since classes inherit from this class.
|
static |
Compare two function information objects.
First compares the method names, and if equal, then compares the declaration information.
[in] | lhs | The Left Hand Side const FunctionInfo object reference. |
[in] | rhs | The Right Hand Side const FunctionInfo object reference. |
Definition at line 45 of file Function.cpp.
References lldb_private::Declaration::Compare(), lldb_private::ConstString::Compare(), GetName(), and m_declaration.
void FunctionInfo::Dump | ( | Stream * | s, |
bool | show_fullpaths | ||
) | const |
Dump a description of this object to a Stream.
Dump a description of the contents of this object to the supplied stream s.
[in] | s | The stream to which to dump the object description. |
Definition at line 39 of file Function.cpp.
References lldb_private::Declaration::Dump(), m_declaration, and m_name.
Referenced by lldb_private::InlineFunctionInfo::Dump().
Declaration & FunctionInfo::GetDeclaration | ( | ) |
Get accessor for the declaration information.
Definition at line 53 of file Function.cpp.
References m_declaration.
Referenced by lldb_private::BreakpointResolverFileLine::FilterContexts(), and lldb_private::SymbolContextSpecifier::SymbolContextMatches().
const Declaration & FunctionInfo::GetDeclaration | ( | ) | const |
Get const accessor for the declaration information.
Definition at line 55 of file Function.cpp.
References m_declaration.
ConstString FunctionInfo::GetName | ( | ) | const |
Get accessor for the method name.
Definition at line 59 of file Function.cpp.
References m_name.
Referenced by Compare().
|
virtual |
Get the memory cost of this object.
Reimplemented in lldb_private::InlineFunctionInfo.
Definition at line 61 of file Function.cpp.
References m_declaration, m_name, lldb_private::Declaration::MemorySize(), and lldb_private::ConstString::MemorySize().
Referenced by lldb_private::InlineFunctionInfo::MemorySize().
|
protected |
Information describing where this function information was defined.
Definition at line 120 of file Function.h.
Referenced by Compare(), Dump(), GetDeclaration(), and MemorySize().
|
protected |
Function method name (not a mangled name).
Definition at line 117 of file Function.h.
Referenced by Dump(), lldb_private::InlineFunctionInfo::DumpStopContext(), lldb_private::InlineFunctionInfo::GetDisplayName(), GetName(), lldb_private::InlineFunctionInfo::GetName(), and MemorySize().