clang API Documentation
#include <DeclarationName.h>
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 341 of file DeclarationName.h.
DeclarationNameTable::DeclarationNameTable | ( | const ASTContext & | C | ) |
Definition at line 340 of file DeclarationName.cpp.
References clang::DeclarationNameExtra::CXXConversionFunction, clang::DeclarationNameExtra::ExtraKindOrNumArgs, and clang::CXXOperatorIdName::FETokenInfo.
Definition at line 353 of file DeclarationName.cpp.
getCXXConstructorName - Returns the name of a C++ constructor for the given Type.
Definition at line 364 of file DeclarationName.cpp.
References clang::DeclarationName::CXXConstructorName, getCXXSpecialName(), and clang::CanQual< T >::getUnqualifiedType().
Referenced by clang::Sema::BuildUsingDeclaration(), clang::Sema::DeclareImplicitCopyConstructor(), clang::Sema::DeclareImplicitDefaultConstructor(), clang::Sema::DeclareImplicitMoveConstructor(), clang::Sema::GetNameFromUnqualifiedId(), clang::ASTImporter::Import(), clang::Sema::LookupConstructors(), clang::Sema::LookupSpecialMember(), and clang::ASTReader::ReadDeclarationName().
getCXXConversionFunctionName - Returns the name of a C++ conversion function for the given Type.
Definition at line 375 of file DeclarationName.cpp.
References clang::DeclarationName::CXXConversionFunctionName, and getCXXSpecialName().
Referenced by addBlockPointerConversion(), addFunctionPointerConversion(), clang::Sema::GetNameFromUnqualifiedId(), clang::ASTImporter::Import(), and clang::ASTReader::ReadDeclarationName().
getCXXDestructorName - Returns the name of a C++ destructor for the given Type.
Definition at line 369 of file DeclarationName.cpp.
References clang::DeclarationName::CXXDestructorName, getCXXSpecialName(), and clang::CanQual< T >::getUnqualifiedType().
Referenced by clang::Sema::CheckFunctionDeclaration(), clang::Sema::DeclareImplicitDestructor(), FindOverriddenMethod(), clang::CXXRecordDecl::getDestructor(), clang::Sema::GetNameFromUnqualifiedId(), clang::ASTImporter::Import(), and clang::ASTReader::ReadDeclarationName().
getCXXLiteralOperatorName - Get the name of the literal operator function with II as the identifier.
Definition at line 429 of file DeclarationName.cpp.
References clang::DeclarationNameExtra::ExtraKindOrNumArgs, clang::CXXLiteralOperatorIdName::FETokenInfo, and clang::CXXLiteralOperatorIdName::ID.
Referenced by clang::Sema::ActOnNumericConstant(), clang::Sema::ActOnStringLiteral(), BuildCookedLiteralOperatorCall(), clang::Sema::GetNameFromUnqualifiedId(), clang::ASTImporter::Import(), clang::Sema::isTemplateName(), and clang::ASTReader::ReadDeclarationName().
getCXXOperatorName - Get the name of the overloadable C++ operator corresponding to Op.
Definition at line 424 of file DeclarationName.cpp.
Referenced by clang::Sema::ActOnCXXDelete(), clang::Sema::AddMemberOperatorCandidates(), clang::Sema::BuildBlockForLambdaConversion(), clang::Sema::BuildCallToObjectOfClassType(), clang::Sema::BuildOverloadedArrowExpr(), buildSingleCopyAssignRecursively(), clang::Sema::CheckDestructor(), clang::Sema::CreateOverloadedArraySubscriptExpr(), clang::Sema::CreateOverloadedBinOp(), clang::Sema::CreateOverloadedUnaryOp(), clang::Sema::DeclareGlobalNewDelete(), clang::Sema::DeclareImplicitCopyAssignment(), clang::Sema::DeclareImplicitMoveAssignment(), DiagnoseTwoPhaseOperatorLookup(), doesUsualArrayDeleteWantSize(), clang::Sema::FindAllocationFunctions(), clang::CXXRecordDecl::getLambdaCallOperator(), clang::ASTContext::getNameForTemplate(), clang::Sema::GetNameFromUnqualifiedId(), HasNoThrowOperator(), clang::ASTImporter::Import(), clang::Sema::isTemplateName(), clang::Sema::LookupOverloadedOperatorName(), clang::Sema::LookupSpecialMember(), clang::ASTReader::ReadDeclarationName(), clang::Sema::ShouldDeleteSpecialMember(), clang::Sema::startLambdaDefinition(), and threadSafetyCheckIsSmartPointer().
DeclarationName DeclarationNameTable::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.
Definition at line 380 of file DeclarationName.cpp.
References clang::DeclarationNameExtra::CXXConstructor, clang::DeclarationName::CXXConstructorName, clang::DeclarationNameExtra::CXXConversionFunction, clang::DeclarationName::CXXConversionFunctionName, clang::DeclarationNameExtra::CXXDestructor, clang::DeclarationName::CXXDestructorName, clang::DeclarationNameExtra::ExtraKindOrNumArgs, clang::CXXSpecialName::FETokenInfo, clang::CanQual< T >::getAsOpaquePtr(), clang::CanQual< T >::hasQualifiers(), and clang::CXXSpecialName::Type.
Referenced by getCXXConstructorName(), getCXXConversionFunctionName(), and getCXXDestructorName().
DeclarationName clang::DeclarationNameTable::getIdentifier | ( | const IdentifierInfo * | ID | ) | [inline] |
getIdentifier - Create a declaration name that is a simple identifier.
Definition at line 356 of file DeclarationName.h.
Referenced by clang::ASTContext::getNameForTemplate(), and hasMember().