clang  6.0.0svn
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 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)
 
void AddTemplateArgument (TemplateArgument TA)
 
void AddTemplateParameterList (const TemplateParameterList *TPL)
 
void AddBoolean (bool value)
 

Static Public Member Functions

static bool isWhitelistedDecl (const Decl *D, const CXXRecordDecl *Record)
 

Detailed Description

Definition at line 39 of file ODRHash.h.

Constructor & Destructor Documentation

◆ ODRHash()

clang::ODRHash::ODRHash ( )
inline

Member Function Documentation

◆ AddBoolean()

void ODRHash::AddBoolean ( bool  value)

Definition at line 699 of file ODRHash.cpp.

Referenced by AddCXXRecordDecl(), AddNestedNameSpecifier(), and AddQualType().

◆ AddCXXRecordDecl()

void ODRHash::AddCXXRecordDecl ( const CXXRecordDecl Record)

◆ AddDecl()

void ODRHash::AddDecl ( const Decl D)

Definition at line 469 of file ODRHash.cpp.

References clang::Decl::getKind(), and clang::Result.

Referenced by AddCXXRecordDecl(), AddNestedNameSpecifier(), AddSubDecl(), and ODRHash().

◆ AddDeclarationName()

void ODRHash::AddDeclarationName ( DeclarationName  Name)

Definition at line 35 of file ODRHash.cpp.

◆ AddIdentifierInfo()

void ODRHash::AddIdentifierInfo ( const IdentifierInfo II)

Definition at line 30 of file ODRHash.cpp.

References clang::IdentifierInfo::getName().

Referenced by AddNestedNameSpecifier().

◆ AddNestedNameSpecifier()

void ODRHash::AddNestedNameSpecifier ( const NestedNameSpecifier NNS)

◆ AddQualType()

void ODRHash::AddQualType ( QualType  T)

◆ AddStmt()

void ODRHash::AddStmt ( const Stmt S)

Definition at line 25 of file ODRHash.cpp.

Referenced by AddTemplateArgument(), and ODRHash().

◆ AddSubDecl()

void ODRHash::AddSubDecl ( const Decl D)

Definition at line 419 of file ODRHash.cpp.

References AddDecl().

Referenced by AddCXXRecordDecl(), and ODRHash().

◆ AddTemplateArgument()

void ODRHash::AddTemplateArgument ( TemplateArgument  TA)

◆ AddTemplateName()

void ODRHash::AddTemplateName ( TemplateName  Name)

Definition at line 113 of file ODRHash.cpp.

Referenced by AddTemplateArgument().

◆ AddTemplateParameterList()

void ODRHash::AddTemplateParameterList ( const TemplateParameterList TPL)

Definition at line 161 of file ODRHash.cpp.

References clang::TemplateParameterList::size().

Referenced by AddCXXRecordDecl().

◆ AddType()

void ODRHash::AddType ( const Type T)

Definition at line 677 of file ODRHash.cpp.

References clang::Result.

Referenced by AddNestedNameSpecifier(), AddQualType(), and ODRHash().

◆ CalculateHash()

unsigned ODRHash::CalculateHash ( )

Definition at line 177 of file ODRHash.cpp.

References CHAR_BIT, and remainder.

Referenced by clang::CXXRecordDecl::getODRHash(), and ODRHash().

◆ clear()

void ODRHash::clear ( )

Definition at line 170 of file ODRHash.cpp.

Referenced by ODRHash().

◆ isWhitelistedDecl()

bool ODRHash::isWhitelistedDecl ( const Decl D,
const CXXRecordDecl Record 
)
static

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