struct DeclarationNameInfo
Declaration
struct DeclarationNameInfo { /* full declaration omitted */ };
Description
DeclarationNameInfo - A collector data type for bundling together a DeclarationName and the correspnding source/type location info.
Declared at: clang/include/clang/AST/DeclarationName.h:767
Member Variables
- private clang::DeclarationName Name
- Name - The declaration name, also encoding name kind.
- private clang::SourceLocation NameLoc
- Loc - The main source location for the declaration name.
- private clang::DeclarationNameLoc LocInfo
- Info - Further source/type location info for special kinds of names.
Method Overview
- public DeclarationNameInfo(clang::DeclarationName Name, clang::SourceLocation NameLoc)
- public DeclarationNameInfo(clang::DeclarationName Name, clang::SourceLocation NameLoc, clang::DeclarationNameLoc LocInfo)
- public DeclarationNameInfo()
- public bool containsUnexpandedParameterPack() const
- public std::string getAsString() const
- public clang::SourceLocation getBeginLoc() const
- public clang::SourceLocation getCXXLiteralOperatorNameLoc() const
- public clang::SourceRange getCXXOperatorNameRange() const
- public clang::SourceLocation getEndLoc() const
- private clang::SourceLocation getEndLocPrivate() const
- public const clang::DeclarationNameLoc & getInfo() const
- public clang::SourceLocation getLoc() const
- public clang::DeclarationName getName() const
- public clang::TypeSourceInfo * getNamedTypeInfo() const
- public clang::SourceRange getSourceRange() const
- public bool isInstantiationDependent() const
- public void printName(llvm::raw_ostream & OS, clang::PrintingPolicy Policy) const
- public void setCXXLiteralOperatorNameLoc(clang::SourceLocation Loc)
- public void setCXXOperatorNameRange(clang::SourceRange R)
- public void setInfo(const clang::DeclarationNameLoc & Info)
- public void setLoc(clang::SourceLocation L)
- public void setName(clang::DeclarationName N)
- public void setNamedTypeInfo(clang::TypeSourceInfo * TInfo)
Methods
¶DeclarationNameInfo(clang::DeclarationName Name,
clang::SourceLocation NameLoc)
DeclarationNameInfo(clang::DeclarationName Name,
clang::SourceLocation NameLoc)
Declared at: clang/include/clang/AST/DeclarationName.h:782
Parameters
- clang::DeclarationName Name
- clang::SourceLocation NameLoc
¶DeclarationNameInfo(
clang::DeclarationName Name,
clang::SourceLocation NameLoc,
clang::DeclarationNameLoc LocInfo)
DeclarationNameInfo(
clang::DeclarationName Name,
clang::SourceLocation NameLoc,
clang::DeclarationNameLoc LocInfo)
Declared at: clang/include/clang/AST/DeclarationName.h:785
Parameters
- clang::DeclarationName Name
- clang::SourceLocation NameLoc
- clang::DeclarationNameLoc LocInfo
¶DeclarationNameInfo()
DeclarationNameInfo()
Declared at: clang/include/clang/AST/DeclarationName.h:780
¶bool containsUnexpandedParameterPack() const
bool containsUnexpandedParameterPack() const
Description
Determine whether this name contains an unexpanded parameter pack.
Declared at: clang/include/clang/AST/DeclarationName.h:860
¶std::string getAsString() const
std::string getAsString() const
Description
getAsString - Retrieve the human-readable string for this name.
Declared at: clang/include/clang/AST/DeclarationName.h:863
¶clang::SourceLocation getBeginLoc() const
clang::SourceLocation getBeginLoc() const
Description
getBeginLoc - Retrieve the location of the first token.
Declared at: clang/include/clang/AST/DeclarationName.h:869
¶clang::SourceLocation
getCXXLiteralOperatorNameLoc() const
clang::SourceLocation
getCXXLiteralOperatorNameLoc() const
Description
getCXXLiteralOperatorNameLoc - Returns the location of the literal operator name (not the operator keyword). Assumes it is a literal operator.
Declared at: clang/include/clang/AST/DeclarationName.h:841
¶clang::SourceRange getCXXOperatorNameRange() const
clang::SourceRange getCXXOperatorNameRange() const
Description
getCXXOperatorNameRange - Gets the range of the operator name (without the operator keyword). Assumes it is a (non-literal) operator.
Declared at: clang/include/clang/AST/DeclarationName.h:825
¶clang::SourceLocation getEndLoc() const
clang::SourceLocation getEndLoc() const
Declared at: clang/include/clang/AST/DeclarationName.h:876
¶clang::SourceLocation getEndLocPrivate() const
clang::SourceLocation getEndLocPrivate() const
Declared at: clang/include/clang/AST/DeclarationName.h:882
¶const clang::DeclarationNameLoc& getInfo() const
const clang::DeclarationNameLoc& getInfo() const
Declared at: clang/include/clang/AST/DeclarationName.h:801
¶clang::SourceLocation getLoc() const
clang::SourceLocation getLoc() const
Description
getLoc - Returns the main location of the declaration name.
Declared at: clang/include/clang/AST/DeclarationName.h:796
¶clang::DeclarationName getName() const
clang::DeclarationName getName() const
Description
getName - Returns the embedded declaration name.
Declared at: clang/include/clang/AST/DeclarationName.h:790
¶clang::TypeSourceInfo* getNamedTypeInfo() const
clang::TypeSourceInfo* getNamedTypeInfo() const
Description
getNamedTypeInfo - Returns the source type info associated to the name. Assumes it is a constructor, destructor or conversion.
Declared at: clang/include/clang/AST/DeclarationName.h:806
¶clang::SourceRange getSourceRange() const
clang::SourceRange getSourceRange() const
Description
getSourceRange - The range of the declaration name.
Declared at: clang/include/clang/AST/DeclarationName.h:872
¶bool isInstantiationDependent() const
bool isInstantiationDependent() const
Description
Determine whether this name involves a template parameter.
Declared at: clang/include/clang/AST/DeclarationName.h:856
¶void printName(llvm::raw_ostream& OS,
clang::PrintingPolicy Policy) const
void printName(llvm::raw_ostream& OS,
clang::PrintingPolicy Policy) const
Description
printName - Print the human-readable name to a stream.
Declared at: clang/include/clang/AST/DeclarationName.h:866
Parameters
- llvm::raw_ostream& OS
- clang::PrintingPolicy Policy
¶void setCXXLiteralOperatorNameLoc(
clang::SourceLocation Loc)
void setCXXLiteralOperatorNameLoc(
clang::SourceLocation Loc)
Description
setCXXLiteralOperatorNameLoc - Sets the location of the literal operator name (not the operator keyword). Assumes it is a literal operator.
Declared at: clang/include/clang/AST/DeclarationName.h:850
Parameters
¶void setCXXOperatorNameRange(clang::SourceRange R)
void setCXXOperatorNameRange(clang::SourceRange R)
Description
setCXXOperatorNameRange - Sets the range of the operator name (without the operator keyword). Assumes it is a C++ operator.
Declared at: clang/include/clang/AST/DeclarationName.h:833
Parameters
¶void setInfo(
const clang::DeclarationNameLoc& Info)
void setInfo(
const clang::DeclarationNameLoc& Info)
Declared at: clang/include/clang/AST/DeclarationName.h:802
Parameters
- const clang::DeclarationNameLoc& Info
¶void setLoc(clang::SourceLocation L)
void setLoc(clang::SourceLocation L)
Description
setLoc - Sets the main location of the declaration name.
Declared at: clang/include/clang/AST/DeclarationName.h:799
Parameters
¶void setName(clang::DeclarationName N)
void setName(clang::DeclarationName N)
Description
setName - Sets the embedded declaration name.
Declared at: clang/include/clang/AST/DeclarationName.h:793
Parameters
¶void setNamedTypeInfo(
clang::TypeSourceInfo* TInfo)
void setNamedTypeInfo(
clang::TypeSourceInfo* TInfo)
Description
setNamedTypeInfo - Sets the source type info associated to the name. Assumes it is a constructor, destructor or conversion.
Declared at: clang/include/clang/AST/DeclarationName.h:816
Parameters
- clang::TypeSourceInfo* TInfo