class NestedNameSpecifierLoc

Declaration

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

Description

A C++ nested-name-specifier augmented with source location information.

Declared at: clang/include/clang/AST/NestedNameSpecifier.h:243

Member Variables

private clang::NestedNameSpecifier* Qualifier = nullptr
private void* Data = nullptr

Method Overview

Methods

NestedNameSpecifierLoc()

Description

Construct an empty nested-name-specifier.

Declared at: clang/include/clang/AST/NestedNameSpecifier.h:257

NestedNameSpecifierLoc(
    clang::NestedNameSpecifier* Qualifier,
    void* Data)

Description

Construct a nested-name-specifier with source location information from

Declared at: clang/include/clang/AST/NestedNameSpecifier.h:261

Parameters

clang::NestedNameSpecifier* Qualifier
void* Data

clang::SourceLocation getBeginLoc() const

Description

Retrieve the location of the beginning of this nested-name-specifier.

Declared at: clang/include/clang/AST/NestedNameSpecifier.h:299

static unsigned int getDataLength(
    clang::NestedNameSpecifier* Qualifier)

Description

Determines the data length for the entire nested-name-specifier.

Declared at: clang/include/clang/AST/NestedNameSpecifier.h:253

Parameters

clang::NestedNameSpecifier* Qualifier

unsigned int getDataLength() const

Description

Determines the data length for the entire nested-name-specifier.

Declared at: clang/include/clang/AST/NestedNameSpecifier.h:340

clang::SourceLocation getEndLoc() const

Description

Retrieve the location of the end of this nested-name-specifier.

Declared at: clang/include/clang/AST/NestedNameSpecifier.h:305

clang::SourceLocation getLocalBeginLoc() const

Description

Retrieve the location of the beginning of this component of the nested-name-specifier.

Declared at: clang/include/clang/AST/NestedNameSpecifier.h:311

static unsigned int getLocalDataLength(
    clang::NestedNameSpecifier* Qualifier)

Description

Determines the data length for the last component in the given nested-name-specifier.

Declared at: clang/include/clang/AST/NestedNameSpecifier.h:249

Parameters

clang::NestedNameSpecifier* Qualifier

clang::SourceLocation getLocalEndLoc() const

Description

Retrieve the location of the end of this component of the nested-name-specifier.

Declared at: clang/include/clang/AST/NestedNameSpecifier.h:317

clang::SourceRange getLocalSourceRange() const

Description

Retrieve the source range covering just the last part of this nested-name-specifier, not including the prefix. For example, if this instance refers to a nested-name-specifier\c \::std::vector<int>:: the returned source range would cover from "vector" to the last '::'.

Declared at: clang/include/clang/AST/NestedNameSpecifier.h:295

clang::NestedNameSpecifier*
getNestedNameSpecifier() const

Description

Retrieve the nested-name-specifier to which this instance refers.

Declared at: clang/include/clang/AST/NestedNameSpecifier.h:274

void* getOpaqueData() const

Description

Retrieve the opaque pointer that refers to source-location data.

Declared at: clang/include/clang/AST/NestedNameSpecifier.h:279

clang::NestedNameSpecifierLoc getPrefix() const

Description

Return the prefix of this nested-name-specifier. For example, if this instance refers to a nested-name-specifier\c \::std::vector<int>:: the prefix is \c \::std:: Note that the returned prefix may be empty, if this is the first component of the nested-name-specifier.

Declared at: clang/include/clang/AST/NestedNameSpecifier.h:327

clang::SourceRange getSourceRange() const

Description

Retrieve the source range covering the entirety of this nested-name-specifier. For example, if this instance refers to a nested-name-specifier\c \::std::vector<int>:: the returned source range would cover from the initial '::' to the last '::'.

Declared at: clang/include/clang/AST/NestedNameSpecifier.h:287

clang::TypeLoc getTypeLoc() const

Description

For a nested-name-specifier that refers to a type, retrieve the type with source-location information.

Declared at: clang/include/clang/AST/NestedNameSpecifier.h:336

bool hasQualifier() const

Description

Evaluates true when this nested-name-specifier location is empty.

Declared at: clang/include/clang/AST/NestedNameSpecifier.h:270

bool operator bool() const

Description

Evaluates true when this nested-name-specifier location is non-empty.

Declared at: clang/include/clang/AST/NestedNameSpecifier.h:266