clang 24.0.0git
clang::MutationRecord Struct Reference

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

Public Types

enum class  DeclShape : uint16_t {
  None = 0 , Class = 1 << 0 , Function = 1 << 1 , Var = 1 << 2 ,
  Enum = 1 << 3 , Template = 1 << 4 , Typedef = 1 << 5
}
enum class  MutationKind : uint32_t {
  None = 0 , DefinitionInstantiate = 1 << 0 , SpecInfo = 1 << 1 , MemberSpecInfo = 1 << 2 ,
  TypeForDecl = 1 << 3 , DefinitionData = 1 << 8 , ExceptionSpec = 1 << 9 , DeducedReturnType = 1 << 10 ,
  EvaluatedValue = 1 << 11 , SpecializationAdded = 1 << 12 , TemplateCommon = 1 << 4 , CanonInjectedTST = 1 << 5
}

Public Member Functions

void add (MutationKind K)
void add (uint32_t K)
bool has (MutationKind K) const
void clear (MutationKind K)

Public Attributes

DeclShape S = DeclShape::None
uint32_t MutationFlags = 0

Detailed Description

Definition at line 229 of file ErrorRecovery.h.

Member Enumeration Documentation

◆ DeclShape

Enumerator
None 
Class 
Function 
Var 
Enum 
Template 
Typedef 

Definition at line 230 of file ErrorRecovery.h.

◆ MutationKind

Enumerator
None 
DefinitionInstantiate 
SpecInfo 
MemberSpecInfo 
TypeForDecl 
DefinitionData 
ExceptionSpec 
DeducedReturnType 
EvaluatedValue 
SpecializationAdded 
TemplateCommon 
CanonInjectedTST 

Definition at line 241 of file ErrorRecovery.h.

Member Function Documentation

◆ add() [1/2]

void clang::MutationRecord::add ( MutationKind K)
inline

Definition at line 263 of file ErrorRecovery.h.

References MutationFlags, and uint32_t.

Referenced by clang::PTUMutationActions::CommitDecl().

◆ add() [2/2]

void clang::MutationRecord::add ( uint32_t K)
inline

Definition at line 264 of file ErrorRecovery.h.

References MutationFlags, and uint32_t.

◆ clear()

void clang::MutationRecord::clear ( MutationKind K)
inline

Definition at line 266 of file ErrorRecovery.h.

References MutationFlags, and uint32_t.

◆ has()

bool clang::MutationRecord::has ( MutationKind K) const
inline

Definition at line 265 of file ErrorRecovery.h.

References MutationFlags, and uint32_t.

Member Data Documentation

◆ MutationFlags

uint32_t clang::MutationRecord::MutationFlags = 0

Definition at line 261 of file ErrorRecovery.h.

Referenced by add(), add(), clear(), has(), and clang::PTUStateInfo::verifyMutations().

◆ S

DeclShape clang::MutationRecord::S = DeclShape::None

Definition at line 260 of file ErrorRecovery.h.

Referenced by clang::PTUStateInfo::verifyMutations().


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