clang  3.9.0
Public Member Functions | List of all members
clang::DeclarationNameTable Class Reference

DeclarationNameTable - Used to store and retrieve DeclarationName instances for the various kinds of declaration names, e.g., normal identifiers, C++ constructor names, etc. More...

#include <DeclarationName.h>

Public Member Functions

 DeclarationNameTable (const ASTContext &C)
 
 ~DeclarationNameTable ()
 
DeclarationName getIdentifier (const IdentifierInfo *ID)
 getIdentifier - Create a declaration name that is a simple identifier. More...
 
DeclarationName getCXXConstructorName (CanQualType Ty)
 getCXXConstructorName - Returns the name of a C++ constructor for the given Type. More...
 
DeclarationName getCXXDestructorName (CanQualType Ty)
 getCXXDestructorName - Returns the name of a C++ destructor for the given Type. More...
 
DeclarationName getCXXConversionFunctionName (CanQualType Ty)
 getCXXConversionFunctionName - Returns the name of a C++ conversion function for the given Type. More...
 
DeclarationName getCXXSpecialName (DeclarationName::NameKind Kind, CanQualType Ty)
 getCXXSpecialName - Returns a declaration name for special kind of C++ name, e.g., for a constructor, destructor, or conversion function. More...
 
DeclarationName getCXXOperatorName (OverloadedOperatorKind Op)
 getCXXOperatorName - Get the name of the overloadable C++ operator corresponding to Op. More...
 
DeclarationName getCXXLiteralOperatorName (IdentifierInfo *II)
 getCXXLiteralOperatorName - Get the name of the literal operator function with II as the identifier. More...
 

Detailed Description

DeclarationNameTable - Used to store and retrieve DeclarationName instances for the various kinds of declaration names, e.g., normal identifiers, C++ constructor names, etc.

This class contains uniqued versions of each of the C++ special names, which can be retrieved using its member functions (e.g., getCXXConstructorName).

Definition at line 344 of file DeclarationName.h.

Constructor & Destructor Documentation

DeclarationNameTable::DeclarationNameTable ( const ASTContext C)
DeclarationNameTable::~DeclarationNameTable ( )

Definition at line 374 of file DeclarationName.cpp.

Member Function Documentation

DeclarationName DeclarationNameTable::getCXXConstructorName ( CanQualType  Ty)
DeclarationName DeclarationNameTable::getCXXConversionFunctionName ( CanQualType  Ty)
DeclarationName DeclarationNameTable::getCXXDestructorName ( CanQualType  Ty)
DeclarationName DeclarationNameTable::getCXXLiteralOperatorName ( IdentifierInfo II)
DeclarationName DeclarationNameTable::getCXXOperatorName ( OverloadedOperatorKind  Op)
DeclarationName DeclarationNameTable::getCXXSpecialName ( DeclarationName::NameKind  Kind,
CanQualType  Ty 
)
DeclarationName clang::DeclarationNameTable::getIdentifier ( const IdentifierInfo ID)
inline

getIdentifier - Create a declaration name that is a simple identifier.

Definition at line 359 of file DeclarationName.h.

Referenced by clang::ASTContext::getNameForTemplate(), and hasMember().


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