clang
10.0.0git
|
A lazy pointer to an AST node (of base type T) that resides within an external AST source. More...
#include "clang/AST/ExternalASTSource.h"
Public Member Functions | |
LazyOffsetPtr ()=default | |
LazyOffsetPtr (T *Ptr) | |
LazyOffsetPtr (uint64_t Offset) | |
LazyOffsetPtr & | operator= (T *Ptr) |
LazyOffsetPtr & | operator= (uint64_t Offset) |
operator bool () const | |
Whether this pointer is non-NULL. More... | |
bool | isValid () const |
Whether this pointer is non-NULL. More... | |
bool | isOffset () const |
Whether this pointer is currently stored as an offset. More... | |
T * | get (ExternalASTSource *Source) const |
Retrieve the pointer to the AST node that this lazy pointer points to. More... | |
Public Attributes | |
uint64_t | Ptr = 0 |
Either a pointer to an AST node or the offset within the external AST source where the AST node can be found. More... | |
A lazy pointer to an AST node (of base type T) that resides within an external AST source.
The AST node is identified within the external AST source by a 63-bit offset, and can be retrieved via an operation on the external AST source itself.
Definition at line 354 of file ExternalASTSource.h.
|
default |
|
inlineexplicit |
Definition at line 364 of file ExternalASTSource.h.
|
inlineexplicit |
Definition at line 366 of file ExternalASTSource.h.
|
inline |
Retrieve the pointer to the AST node that this lazy pointer points to.
Source | the external AST source. |
Definition at line 405 of file ExternalASTSource.h.
Referenced by clang::FunctionDecl::getBody(), clang::ASTContext::getCurrentKeyFunction(), and clang::ASTContext::setNonKeyFunction().
|
inline |
Whether this pointer is currently stored as an offset.
Definition at line 398 of file ExternalASTSource.h.
Referenced by clang::ASTContext::getCurrentKeyFunction().
|
inline |
Whether this pointer is non-NULL.
This operation does not require the AST node to be deserialized.
Definition at line 395 of file ExternalASTSource.h.
Referenced by clang::ASTContext::getCurrentKeyFunction(), and clang::ObjCMethodDecl::hasBody().
|
inlineexplicit |
Whether this pointer is non-NULL.
This operation does not require the AST node to be deserialized.
Definition at line 390 of file ExternalASTSource.h.
|
inline |
Definition at line 372 of file ExternalASTSource.h.
|
inline |
Definition at line 377 of file ExternalASTSource.h.
|
mutable |
Either a pointer to an AST node or the offset within the external AST source where the AST node can be found.
If the low bit is clear, a pointer to the AST node. If the low bit is set, the upper 63 bits are the offset.
Definition at line 360 of file ExternalASTSource.h.