clang API Documentation

Public Member Functions
clang::DeclarationNameTable Class Reference

#include <DeclarationName.h>

List of all members.

Public Member Functions

 DeclarationNameTable (const ASTContext &C)
 ~DeclarationNameTable ()
DeclarationName getIdentifier (const IdentifierInfo *ID)
DeclarationName getCXXConstructorName (CanQualType Ty)
DeclarationName getCXXDestructorName (CanQualType Ty)
DeclarationName getCXXConversionFunctionName (CanQualType Ty)
DeclarationName getCXXSpecialName (DeclarationName::NameKind Kind, CanQualType Ty)
DeclarationName getCXXOperatorName (OverloadedOperatorKind Op)
DeclarationName getCXXLiteralOperatorName (IdentifierInfo *II)

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 317 of file DeclarationName.h.


Constructor & Destructor Documentation

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

Definition at line 397 of file DeclarationName.cpp.


Member Function Documentation

DeclarationName clang::DeclarationNameTable::getCXXConstructorName ( CanQualType  Ty) [inline]
DeclarationName clang::DeclarationNameTable::getCXXConversionFunctionName ( CanQualType  Ty) [inline]

getCXXConversionFunctionName - Returns the name of a C++ conversion function for the given Type.

Definition at line 352 of file DeclarationName.h.

References clang::DeclarationName::CXXConversionFunctionName, and getCXXSpecialName().

Referenced by clang::serialization::reader::ASTDeclContextNameLookupTrait::GetExternalKey(), clang::ASTImporter::Import(), and clang::ASTReader::ReadDeclarationName().

DeclarationName clang::DeclarationNameTable::getCXXDestructorName ( CanQualType  Ty) [inline]
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 332 of file DeclarationName.h.

Referenced by clang::ASTContext::getNameForTemplate().


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