class DeclarationNameLoc

Declaration

class DeclarationNameLoc { /* full declaration omitted */ };

Description

DeclarationNameLoc - Additional source/type location info for a declaration name. Needs a DeclarationName in order to be interpreted correctly.

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

Member Variables

private anonymous struct / union

Method Overview

Methods

DeclarationNameLoc(clang::DeclarationName Name)

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

Parameters

clang::DeclarationName Name

DeclarationNameLoc()

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

clang::SourceLocation
getCXXLiteralOperatorNameLoc() const

Description

Return the location of the literal operator name (without the operator keyword). Assumes that the object stores location information of a literal operator.

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

clang::SourceLocation getCXXOperatorNameBeginLoc()
    const

Description

Return the beginning location of the getCXXOperatorNameRange() range.

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

clang::SourceLocation getCXXOperatorNameEndLoc()
    const

Description

Return the end location of the getCXXOperatorNameRange() range.

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

clang::SourceRange getCXXOperatorNameRange() const

Description

Return the range of the operator name (without the operator keyword). Assumes that the object stores location information of a (non-literal) operator.

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

clang::TypeSourceInfo* getNamedTypeInfo() const

Description

Returns the source type info. Assumes that the object stores location information of a constructor, destructor or conversion operator.

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

static clang::DeclarationNameLoc
makeCXXLiteralOperatorNameLoc(
    clang::SourceLocation Loc)

Description

Construct location information for a literal C++ operator.

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

Parameters

clang::SourceLocation Loc

static clang::DeclarationNameLoc
makeCXXOperatorNameLoc(
    clang::SourceLocation BeginLoc,
    clang::SourceLocation EndLoc)

Description

Construct location information for a non-literal C++ operator.

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

Parameters

clang::SourceLocation BeginLoc
clang::SourceLocation EndLoc

static clang::DeclarationNameLoc
makeCXXOperatorNameLoc(clang::SourceRange Range)

Description

Construct location information for a non-literal C++ operator.

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

Parameters

clang::SourceRange Range

static clang::DeclarationNameLoc makeNamedTypeLoc(
    clang::TypeSourceInfo* TInfo)

Description

Construct location information for a constructor, destructor or conversion operator.

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

Parameters

clang::TypeSourceInfo* TInfo

void setCXXLiteralOperatorNameLoc(
    clang::SourceLocation Loc)

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

Parameters

clang::SourceLocation Loc

void setCXXOperatorNameRange(
    clang::SourceRange Range)

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

Parameters

clang::SourceRange Range

void setNamedTypeLoc(clang::TypeSourceInfo* TInfo)

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

Parameters

clang::TypeSourceInfo* TInfo