clang 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
clang::ODRHash Class Reference

#include "clang/AST/ODRHash.h"

Public Member Functions

 ODRHash ()
 
void AddCXXRecordDecl (const CXXRecordDecl *Record)
 
void AddRecordDecl (const RecordDecl *Record)
 
void AddObjCInterfaceDecl (const ObjCInterfaceDecl *Record)
 
void AddFunctionDecl (const FunctionDecl *Function, bool SkipBody=false)
 
void AddEnumDecl (const EnumDecl *Enum)
 
void AddObjCProtocolDecl (const ObjCProtocolDecl *P)
 
void AddSubDecl (const Decl *D)
 
void clear ()
 
unsigned CalculateHash ()
 
void AddDecl (const Decl *D)
 
void AddType (const Type *T)
 
void AddQualType (QualType T)
 
void AddStmt (const Stmt *S)
 
void AddIdentifierInfo (const IdentifierInfo *II)
 
void AddNestedNameSpecifier (const NestedNameSpecifier *NNS)
 
void AddTemplateName (TemplateName Name)
 
void AddDeclarationName (DeclarationName Name, bool TreatAsDecl=false)
 
void AddTemplateArgument (TemplateArgument TA)
 
void AddTemplateParameterList (const TemplateParameterList *TPL)
 
void AddBoolean (bool value)
 
void AddStructuralValue (const APValue &)
 

Static Public Member Functions

static bool isSubDeclToBeProcessed (const Decl *D, const DeclContext *Parent)
 

Detailed Description

Definition at line 42 of file ODRHash.h.

Constructor & Destructor Documentation

◆ ODRHash()

clang::ODRHash::ODRHash ( )
inline

Definition at line 53 of file ODRHash.h.

Member Function Documentation

◆ AddBoolean()

void ODRHash::AddBoolean ( bool  value)

◆ AddCXXRecordDecl()

void ODRHash::AddCXXRecordDecl ( const CXXRecordDecl Record)

◆ AddDecl()

void ODRHash::AddDecl ( const Decl D)

◆ AddDeclarationName()

void ODRHash::AddDeclarationName ( DeclarationName  Name,
bool  TreatAsDecl = false 
)

Definition at line 34 of file ODRHash.cpp.

References AddBoolean().

Referenced by AddDecl(), AddEnumDecl(), AddObjCInterfaceDecl(), and AddObjCProtocolDecl().

◆ AddEnumDecl()

void ODRHash::AddEnumDecl ( const EnumDecl Enum)

◆ AddFunctionDecl()

void ODRHash::AddFunctionDecl ( const FunctionDecl Function,
bool  SkipBody = false 
)

◆ AddIdentifierInfo()

void ODRHash::AddIdentifierInfo ( const IdentifierInfo II)

Definition at line 29 of file ODRHash.cpp.

References clang::IdentifierInfo::getName().

Referenced by AddNestedNameSpecifier().

◆ AddNestedNameSpecifier()

void ODRHash::AddNestedNameSpecifier ( const NestedNameSpecifier NNS)

◆ AddObjCInterfaceDecl()

void ODRHash::AddObjCInterfaceDecl ( const ObjCInterfaceDecl Record)

◆ AddObjCProtocolDecl()

void ODRHash::AddObjCProtocolDecl ( const ObjCProtocolDecl P)

◆ AddQualType()

void ODRHash::AddQualType ( QualType  T)

◆ AddRecordDecl()

void ODRHash::AddRecordDecl ( const RecordDecl Record)

Definition at line 616 of file ODRHash.cpp.

References AddDecl(), AddSubDecl(), and isSubDeclToBeProcessed().

Referenced by clang::RecordDecl::getODRHash().

◆ AddStmt()

void ODRHash::AddStmt ( const Stmt S)

◆ AddStructuralValue()

void ODRHash::AddStructuralValue ( const APValue Value)

◆ AddSubDecl()

void ODRHash::AddSubDecl ( const Decl D)

◆ AddTemplateArgument()

void ODRHash::AddTemplateArgument ( TemplateArgument  TA)

◆ AddTemplateName()

void ODRHash::AddTemplateName ( TemplateName  Name)

◆ AddTemplateParameterList()

void ODRHash::AddTemplateParameterList ( const TemplateParameterList TPL)

◆ AddType()

void ODRHash::AddType ( const Type T)

Definition at line 1257 of file ODRHash.cpp.

References clang::T.

Referenced by AddNestedNameSpecifier(), and AddQualType().

◆ CalculateHash()

unsigned ODRHash::CalculateHash ( )

◆ clear()

void ODRHash::clear ( )

Definition at line 219 of file ODRHash.cpp.

◆ isSubDeclToBeProcessed()

bool ODRHash::isSubDeclToBeProcessed ( const Decl D,
const DeclContext Parent 
)
static

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