clang API Documentation

Public Member Functions
clang::DeclarationNameInfo Struct Reference

#include <DeclarationName.h>

List of all members.

Public Member Functions

 DeclarationNameInfo ()
 DeclarationNameInfo (DeclarationName Name, SourceLocation NameLoc)
 DeclarationNameInfo (DeclarationName Name, SourceLocation NameLoc, DeclarationNameLoc LocInfo)
DeclarationName getName () const
 getName - Returns the embedded declaration name.
void setName (DeclarationName N)
 setName - Sets the embedded declaration name.
SourceLocation getLoc () const
 getLoc - Returns the main location of the declaration name.
void setLoc (SourceLocation L)
 setLoc - Sets the main location of the declaration name.
const DeclarationNameLocgetInfo () const
DeclarationNameLocgetInfo ()
void setInfo (const DeclarationNameLoc &Info)
TypeSourceInfogetNamedTypeInfo () const
void setNamedTypeInfo (TypeSourceInfo *TInfo)
SourceRange getCXXOperatorNameRange () const
void setCXXOperatorNameRange (SourceRange R)
SourceLocation getCXXLiteralOperatorNameLoc () const
void setCXXLiteralOperatorNameLoc (SourceLocation Loc)
bool isInstantiationDependent () const
 Determine whether this name involves a template parameter.
bool containsUnexpandedParameterPack () const
 Determine whether this name contains an unexpanded parameter pack.
std::string getAsString () const
 getAsString - Retrieve the human-readable string for this name.
void printName (raw_ostream &OS) const
 printName - Print the human-readable name to a stream.
SourceLocation getBeginLoc () const
 getBeginLoc - Retrieve the location of the first token.
SourceLocation getEndLoc () const
 getEndLoc - Retrieve the location of the last token.
SourceRange getSourceRange () const LLVM_READONLY
 getSourceRange - The range of the declaration name.
SourceLocation getLocStart () const LLVM_READONLY
SourceLocation getLocEnd () const LLVM_READONLY

Detailed Description

DeclarationNameInfo - A collector data type for bundling together a DeclarationName and the correspnding source/type location info.

Definition at line 430 of file DeclarationName.h.


Constructor & Destructor Documentation

Definition at line 441 of file DeclarationName.h.

Definition at line 443 of file DeclarationName.h.

Definition at line 446 of file DeclarationName.h.


Member Function Documentation

std::string DeclarationNameInfo::getAsString ( ) const

getAsString - Retrieve the human-readable string for this name.

Definition at line 521 of file DeclarationName.cpp.

References printName().

Referenced by clang::CodeGen::CodeGenFunction::EmitOMPCriticalDirective().

getBeginLoc - Retrieve the location of the first token.

Definition at line 528 of file DeclarationName.h.

Referenced by clang::Sema::ActOnFriendFunctionDecl(), getLocStart(), and clang::CXXDependentScopeMemberExpr::getLocStart().

getCXXLiteralOperatorNameLoc - Returns the location of the literal operator name (not the operator keyword). Assumes it is a literal operator.

Definition at line 501 of file DeclarationName.h.

References clang::DeclarationName::CXXLiteralOperatorName, clang::DeclarationNameLoc::CXXLiteralOperatorName, clang::SourceLocation::getFromRawEncoding(), and clang::DeclarationNameLoc::CXXLitOpName::OpNameLoc.

Referenced by clang::Sema::BuildLiteralOperatorCall(), and clang::ASTNodeImporter::ImportDeclarationNameLoc().

Definition at line 461 of file DeclarationName.h.

getName - Returns the embedded declaration name.

Definition at line 451 of file DeclarationName.h.

Referenced by clang::Sema::ActOnCXXMemberDeclarator(), clang::Sema::ActOnDependentMemberExpr(), clang::Sema::ActOnExplicitInstantiation(), clang::Sema::ActOnFriendFunctionDecl(), clang::Sema::ActOnIdExpression(), clang::Sema::ActOnMemberAccessExpr(), clang::Sema::ActOnOpenMPIdExpression(), clang::Sema::ActOnOpenMPReductionClause(), clang::Sema::ActOnUsingDeclaration(), clang::ASTWriter::AddDeclarationNameInfo(), clang::Sema::BuildMemberReferenceExpr(), clang::Sema::BuildPossibleImplicitMemberExpr(), clang::Sema::BuildQualifiedDeclarationNameExpr(), clang::Sema::BuildQualifiedTemplateIdExpr(), clang::Sema::BuildUsingDeclaration(), clang::Sema::CheckMicrosoftIfExistsSymbol(), CheckNestingOfRegions(), clang::Sema::CheckTemplateTypeArgument(), clang::Sema::CheckUsingDeclQualifier(), clang::Sema::CorrectTypo(), clang::Sema::CorrectTypoDelayed(), clang::CXXConstructorDecl::Create(), clang::CXXDestructorDecl::Create(), clang::CXXConversionDecl::Create(), CreateNewFunctionDecl(), clang::Sema::DiagnoseClassNameShadow(), diagnoseInstanceReference(), clang::Sema::DiagnoseUnexpandedParameterPack(), clang::DependentScopeDeclRefExpr::getDeclName(), clang::LookupResult::getLookupName(), clang::CXXDependentScopeMemberExpr::getMember(), clang::OverloadExpr::getName(), handleCleanupAttr(), clang::Sema::HandleDeclarator(), clang::ASTNodeImporter::ImportDeclarationNameLoc(), clang::MemberExpr::MemberExpr(), clang::ASTReader::ReadDeclarationNameInfo(), recoverFromMSUnqualifiedLookup(), clang::Sema::SubstDeclarationNameInfo(), clang::TreeTransform< Derived >::TransformDeclarationNameInfo(), and clang::RecursiveASTVisitor< Derived >::TraverseDeclarationNameInfo().

getSourceRange - The range of the declaration name.

Definition at line 532 of file DeclarationName.h.

References getLocEnd(), and getLocStart().

Referenced by clang::Sema::ActOnDependentMemberExpr(), and clang::Sema::CheckInheritingConstructorUsingDecl().

void DeclarationNameInfo::printName ( raw_ostream &  OS) const

Definition at line 462 of file DeclarationName.h.

Referenced by clang::ASTReader::ReadDeclarationNameInfo().

setLoc - Sets the main location of the declaration name.

Definition at line 458 of file DeclarationName.h.

Referenced by clang::Sema::GetNameFromUnqualifiedId(), and clang::ASTReader::ReadDeclarationNameInfo().


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