clang
7.0.0
|
A lazy value (of type T) that is within an AST node of type Owner, 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 | |
enum | NotUpdatedTag { NotUpdated } |
Create a pointer that is not potentially updated by later generations of the external AST source. More... | |
using | ValueType = llvm::PointerUnion< T, LazyData * > |
Public Member Functions | |
LazyGenerationalUpdatePtr (ValueType V) | |
LazyGenerationalUpdatePtr (const ASTContext &Ctx, T Value=T()) | |
LazyGenerationalUpdatePtr (NotUpdatedTag, T Value=T()) | |
void | markIncomplete () |
Forcibly set this pointer (which must be lazy) as needing updates. More... | |
void | set (T NewValue) |
Set the value of this pointer, in the current generation. More... | |
void | setNotUpdated (T NewValue) |
Set the value of this pointer, for this and all future generations. More... | |
T | get (Owner O) |
Get the value of this pointer, updating its owner if necessary. More... | |
T | getNotUpdated () const |
Get the most recently computed value of this pointer without updating it. More... | |
void * | getOpaqueValue () |
Static Public Member Functions | |
static ValueType | makeValue (const ASTContext &Ctx, T Value) |
Create the representation of a LazyGenerationalUpdatePtr. More... | |
static LazyGenerationalUpdatePtr | getFromOpaqueValue (void *Ptr) |
Public Attributes | |
ValueType | Value |
A lazy value (of type T) that is within an AST node of type Owner, where the value might change in later generations of the external AST source.
Definition at line 415 of file ExternalASTSource.h.
using clang::LazyGenerationalUpdatePtr< Owner, T, Update >::ValueType = llvm::PointerUnion<T, LazyData*> |
Definition at line 428 of file ExternalASTSource.h.
enum clang::LazyGenerationalUpdatePtr::NotUpdatedTag |
Create a pointer that is not potentially updated by later generations of the external AST source.
Enumerator | |
---|---|
NotUpdated |
Definition at line 442 of file ExternalASTSource.h.
|
inline |
Definition at line 431 of file ExternalASTSource.h.
|
inlineexplicit |
Definition at line 437 of file ExternalASTSource.h.
|
inline |
Definition at line 443 of file ExternalASTSource.h.
|
inline |
Get the value of this pointer, updating its owner if necessary.
Definition at line 464 of file ExternalASTSource.h.
References clang::diff::Update.
Referenced by clang::Redeclarable< decl_type >::DeclLink::isFirst().
|
inlinestatic |
Definition at line 483 of file ExternalASTSource.h.
References clang::diff::Update.
|
inline |
Get the most recently computed value of this pointer without updating it.
Definition at line 476 of file ExternalASTSource.h.
|
inline |
Definition at line 482 of file ExternalASTSource.h.
Referenced by llvm::PointerLikeTypeTraits< clang::LazyGenerationalUpdatePtr< Owner, T, Update > >::getAsVoidPointer().
|
static |
Create the representation of a LazyGenerationalUpdatePtr.
Definition at line 3032 of file ASTContext.h.
References clang::ASTContext::getExternalSource().
|
inline |
Forcibly set this pointer (which must be lazy) as needing updates.
Definition at line 447 of file ExternalASTSource.h.
|
inline |
Set the value of this pointer, in the current generation.
Definition at line 452 of file ExternalASTSource.h.
Referenced by clang::Redeclarable< decl_type >::DeclLink::setLatest().
|
inline |
Set the value of this pointer, for this and all future generations.
Definition at line 461 of file ExternalASTSource.h.
ValueType clang::LazyGenerationalUpdatePtr< Owner, T, Update >::Value |
Definition at line 429 of file ExternalASTSource.h.