clang  7.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 AddFunctionDecl (const FunctionDecl *Function)
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 ( )

Member Function Documentation

◆ AddBoolean()

void ODRHash::AddBoolean ( bool  value)

Definition at line 751 of file ODRHash.cpp.

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

◆ AddCXXRecordDecl()

void ODRHash::AddCXXRecordDecl ( const CXXRecordDecl Record)

◆ AddDecl()

void ODRHash::AddDecl ( const Decl D)

◆ AddDeclarationName()

void ODRHash::AddDeclarationName ( DeclarationName  Name)

Definition at line 35 of file ODRHash.cpp.

Referenced by AddDecl().

◆ AddFunctionDecl()

void ODRHash::AddFunctionDecl ( const FunctionDecl Function)

◆ 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 AddDecl(), AddFunctionDecl(), AddTemplateArgument(), and ODRHash().

◆ AddSubDecl()

void ODRHash::AddSubDecl ( const Decl D)

Definition at line 428 of file ODRHash.cpp.

Referenced by AddCXXRecordDecl(), AddFunctionDecl(), AddTemplateParameterList(), and ODRHash().

◆ AddTemplateArgument()

void ODRHash::AddTemplateArgument ( TemplateArgument  TA)

◆ AddTemplateName()

void ODRHash::AddTemplateName ( TemplateName  Name)

Definition at line 122 of file ODRHash.cpp.

Referenced by AddTemplateArgument().

◆ AddTemplateParameterList()

void ODRHash::AddTemplateParameterList ( const TemplateParameterList TPL)

◆ AddType()

void ODRHash::AddType ( const Type T)

Definition at line 729 of file ODRHash.cpp.

References clang::Result.

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

◆ CalculateHash()

unsigned ODRHash::CalculateHash ( )

Definition at line 186 of file ODRHash.cpp.

References CHAR_BIT, and remainder.

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

◆ clear()

void ODRHash::clear ( )

Definition at line 179 of file ODRHash.cpp.

Referenced by ODRHash().

◆ isWhitelistedDecl()

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

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