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
- public NestedNameSpecifierLoc()
- public NestedNameSpecifierLoc(clang::NestedNameSpecifier * Qualifier, void * Data)
- public clang::SourceLocation getBeginLoc() const
- private static unsigned int getDataLength(clang::NestedNameSpecifier * Qualifier)
- public unsigned int getDataLength() const
- public clang::SourceLocation getEndLoc() const
- public clang::SourceLocation getLocalBeginLoc() const
- private static unsigned int getLocalDataLength(clang::NestedNameSpecifier * Qualifier)
- public clang::SourceLocation getLocalEndLoc() const
- public clang::SourceRange getLocalSourceRange() const
- public clang::NestedNameSpecifier * getNestedNameSpecifier() const
- public void * getOpaqueData() const
- public clang::NestedNameSpecifierLoc getPrefix() const
- public clang::SourceRange getSourceRange() const
- public clang::TypeLoc getTypeLoc() const
- public bool hasQualifier() const
- public bool operator bool() const
Methods
¶NestedNameSpecifierLoc()
NestedNameSpecifierLoc()
Description
Construct an empty nested-name-specifier.
Declared at: clang/include/clang/AST/NestedNameSpecifier.h:257
¶NestedNameSpecifierLoc(
clang::NestedNameSpecifier* Qualifier,
void* Data)
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
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)
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
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
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
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)
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
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
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
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
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
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
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
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
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
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