|
clang 24.0.0git
|
A lazy Decl value where the value might change in later generations of the external AST source. More...
#include "clang/AST/ExternalASTSource.h"
Classes | |
| struct | LazyData |
| A cache of the value of this pointer, in the most recent generation in which we queried it. More... | |
Public Types | |
| using | ValueType = llvm::PointerUnion<Decl *, LazyData *> |
Public Member Functions | |
| LazyGenerationalDeclPtr (ValueType V) | |
| LazyGenerationalDeclPtr (const ASTContext &Ctx, Decl *Value=nullptr) | |
| void | markIncomplete () |
| Forcibly set this pointer (which must be lazy) as needing updates. | |
| void | set (Decl *NewValue) |
| Set the value of this pointer, in the current generation. | |
| Decl * | get (const Decl *O) |
| Get the value of this pointer, updating its owner if necessary. | |
| Decl * | getNotUpdated () const |
| Get the most recently computed value of this pointer without updating it. | |
| void * | getOpaqueValue () |
Static Public Member Functions | |
| static ValueType | makeValue (const ASTContext &Ctx, Decl *Value) |
| static LazyGenerationalDeclPtr | getFromOpaqueValue (void *Ptr) |
Public Attributes | |
| ValueType | Value |
A lazy Decl value where the value might change in later generations of the external AST source.
Definition at line 444 of file ExternalASTSource.h.
| using clang::LazyGenerationalDeclPtr::ValueType = llvm::PointerUnion<Decl *, LazyData *> |
Definition at line 458 of file ExternalASTSource.h.
|
inline |
Definition at line 461 of file ExternalASTSource.h.
Referenced by getFromOpaqueValue().
|
inlineexplicit |
Definition at line 466 of file ExternalASTSource.h.
References makeValue(), and Value.
Get the value of this pointer, updating its owner if necessary.
Definition at line 482 of file ExternalASTSource.h.
References clang::cast(), and Value.
|
inlinestatic |
Definition at line 501 of file ExternalASTSource.h.
References LazyGenerationalDeclPtr().
Referenced by llvm::PointerLikeTypeTraits< clang::LazyGenerationalDeclPtr >::getFromVoidPointer().
|
inline |
Get the most recently computed value of this pointer without updating it.
Definition at line 494 of file ExternalASTSource.h.
References clang::cast(), and Value.
|
inline |
Definition at line 500 of file ExternalASTSource.h.
References Value.
Referenced by llvm::PointerLikeTypeTraits< clang::LazyGenerationalDeclPtr >::getAsVoidPointer().
|
static |
Definition at line 139 of file ExternalASTSource.cpp.
References clang::ASTContext::getExternalSource(), and Value.
Referenced by LazyGenerationalDeclPtr().
|
inline |
Forcibly set this pointer (which must be lazy) as needing updates.
Definition at line 470 of file ExternalASTSource.h.
References clang::cast(), and Value.
|
inline |
Set the value of this pointer, in the current generation.
Definition at line 473 of file ExternalASTSource.h.
References Value.
| ValueType clang::LazyGenerationalDeclPtr::Value |
Definition at line 459 of file ExternalASTSource.h.
Referenced by get(), getNotUpdated(), getOpaqueValue(), clang::LazyGenerationalDeclPtr::LazyData::LazyData(), LazyGenerationalDeclPtr(), LazyGenerationalDeclPtr(), makeValue(), markIncomplete(), and set().