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

Methods

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)

Declared at: clang/include/clang/AST/DeclarationName.h:785

Parameters

clang::DeclarationName Name
clang::SourceLocation NameLoc
clang::DeclarationNameLoc LocInfo

DeclarationNameInfo()

Declared at: clang/include/clang/AST/DeclarationName.h:780

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

Description

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

Declared at: clang/include/clang/AST/DeclarationName.h:863

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

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

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

Declared at: clang/include/clang/AST/DeclarationName.h:876

clang::SourceLocation getEndLocPrivate() const

Declared at: clang/include/clang/AST/DeclarationName.h:882

const clang::DeclarationNameLoc& getInfo() const

Declared at: clang/include/clang/AST/DeclarationName.h:801

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

Description

getName - Returns the embedded declaration name.

Declared at: clang/include/clang/AST/DeclarationName.h:790

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

Description

getSourceRange - The range of the declaration name.

Declared at: clang/include/clang/AST/DeclarationName.h:872

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

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)

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

clang::SourceLocation Loc

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

clang::SourceRange R

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)

Description

setLoc - Sets the main location of the declaration name.

Declared at: clang/include/clang/AST/DeclarationName.h:799

Parameters

clang::SourceLocation L

void setName(clang::DeclarationName N)

Description

setName - Sets the embedded declaration name.

Declared at: clang/include/clang/AST/DeclarationName.h:793

Parameters

clang::DeclarationName N

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