clang 24.0.0git
clang::PTUStateInfo Struct Reference

#include "/work/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Interpreter/ErrorRecovery.h"

Public Member Functions

 PTUStateInfo (PTUID ID)
template<typename KindT>
void noteMutated (const Decl *D, DeclShape S, KindT K)
void verifyMutations (PTUMutationActions &Actions)
 Verify recorded mutations and remove any false mutation ones.

Public Attributes

PTUID ID
const TranslationUnitDecl * ThisPTU
llvm::MapVector< const Decl *, MutationRecord > Mutations
llvm::SmallPtrSet< const Decl *, 4 > ImplicitlyGeneratedDecls
bool HadImplicitCXXMember = false
 Set exactly when AddedCXXImplicitMember fires this PTU.
llvm::SmallVector< std::pair< const Decl *, MutationKind >, 8 > TouchedFootprints
 Every (Owner, Kind) key this PTU's own commit() wrote a FootprintStore entry for.
bool Commited = false

Detailed Description

Definition at line 321 of file ErrorRecovery.h.

Constructor & Destructor Documentation

◆ PTUStateInfo()

clang::PTUStateInfo::PTUStateInfo ( PTUID ID)
inlineexplicit

Definition at line 336 of file ErrorRecovery.h.

References ID.

Member Function Documentation

◆ noteMutated()

template<typename KindT>
void clang::PTUStateInfo::noteMutated ( const Decl * D,
DeclShape S,
KindT K )
inline

◆ verifyMutations()

void clang::PTUStateInfo::verifyMutations ( PTUMutationActions & Actions)

Verify recorded mutations and remove any false mutation ones.

If none of a decl’s mutation kinds are confirmed, remove the record entirely so restore() does not pop chain entries that were never written.

untrack kind from SweepTracker if confirmed.

Definition at line 531 of file ErrorRecovery.cpp.

References clang::PTUMutationActions::confirmMutation(), clang::KindsNeedingVerification, clang::MutationRecord::MutationFlags, Mutations, clang::MutationRecord::S, uint32_t, and clang::PTUMutationActions::untrackIfClosed().

Referenced by clang::PTUMutationActions::CommitPTU(), and clang::PTUMutationActions::RestorePTU().

Member Data Documentation

◆ Commited

bool clang::PTUStateInfo::Commited = false

◆ HadImplicitCXXMember

bool clang::PTUStateInfo::HadImplicitCXXMember = false

Set exactly when AddedCXXImplicitMember fires this PTU.

Definition at line 330 of file ErrorRecovery.h.

Referenced by clang::SemaCacheReverter::restoreSpecialMemberCache().

◆ ID

◆ ImplicitlyGeneratedDecls

llvm::SmallPtrSet<const Decl *, 4> clang::PTUStateInfo::ImplicitlyGeneratedDecls

◆ Mutations

llvm::MapVector<const Decl *, MutationRecord> clang::PTUStateInfo::Mutations

◆ ThisPTU

const TranslationUnitDecl* clang::PTUStateInfo::ThisPTU

◆ TouchedFootprints

llvm::SmallVector<std::pair<const Decl *, MutationKind>, 8> clang::PTUStateInfo::TouchedFootprints

Every (Owner, Kind) key this PTU's own commit() wrote a FootprintStore entry for.

Definition at line 334 of file ErrorRecovery.h.

Referenced by clang::IncrementalStateTracker::commitFootprint(), and clang::IncrementalStateTracker::undoLastEntries().


The documentation for this struct was generated from the following files: