clang API Documentation
Represents a dependent using declaration which was not marked with typename
.
More...
#include <DeclCXX.h>
Public Member Functions | |
SourceLocation | getUsingLoc () const |
Returns the source location of the 'using' keyword. | |
void | setUsingLoc (SourceLocation L) |
Set the source location of the 'using' keyword. | |
bool | isAccessDeclaration () const |
Return true if it is a C++03 access declaration (no 'using'). | |
NestedNameSpecifierLoc | getQualifierLoc () const |
Retrieve the nested-name-specifier that qualifies the name, with source-location information. | |
NestedNameSpecifier * | getQualifier () const |
Retrieve the nested-name-specifier that qualifies the name. | |
DeclarationNameInfo | getNameInfo () const |
SourceRange | getSourceRange () const override LLVM_READONLY |
Source range that this declaration covers. | |
UnresolvedUsingValueDecl * | getCanonicalDecl () override |
Retrieves the canonical declaration of this declaration. | |
const UnresolvedUsingValueDecl * | getCanonicalDecl () const |
Static Public Member Functions | |
static UnresolvedUsingValueDecl * | Create (ASTContext &C, DeclContext *DC, SourceLocation UsingLoc, NestedNameSpecifierLoc QualifierLoc, const DeclarationNameInfo &NameInfo) |
static UnresolvedUsingValueDecl * | CreateDeserialized (ASTContext &C, unsigned ID) |
static bool | classof (const Decl *D) |
static bool | classofKind (Kind K) |
Friends | |
class | ASTDeclReader |
class | ASTDeclWriter |
Represents a dependent using declaration which was not marked with typename
.
Unlike non-dependent using declarations, these *only* bring through non-types; otherwise they would break two-phase lookup.
template \<class T> class A : public Base<T> { using Base<T>::foo; };
static bool clang::UnresolvedUsingValueDecl::classof | ( | const Decl * | D | ) | [inline, static] |
Reimplemented from clang::ValueDecl.
Definition at line 3074 of file DeclCXX.h.
References classofKind(), and clang::Decl::getKind().
static bool clang::UnresolvedUsingValueDecl::classofKind | ( | Kind | K | ) | [inline, static] |
Reimplemented from clang::ValueDecl.
Definition at line 3075 of file DeclCXX.h.
Referenced by classof().
UnresolvedUsingValueDecl * UnresolvedUsingValueDecl::Create | ( | ASTContext & | C, |
DeclContext * | DC, | ||
SourceLocation | UsingLoc, | ||
NestedNameSpecifierLoc | QualifierLoc, | ||
const DeclarationNameInfo & | NameInfo | ||
) | [static] |
Definition at line 2108 of file DeclCXX.cpp.
References AttributeLangSupport::C, and clang::ASTContext::DependentTy.
Referenced by clang::Sema::BuildUsingDeclaration().
UnresolvedUsingValueDecl * UnresolvedUsingValueDecl::CreateDeserialized | ( | ASTContext & | C, |
unsigned | ID | ||
) | [static] |
Definition at line 2117 of file DeclCXX.cpp.
References AttributeLangSupport::C.
UnresolvedUsingValueDecl* clang::UnresolvedUsingValueDecl::getCanonicalDecl | ( | ) | [inline, override, virtual] |
Retrieves the canonical declaration of this declaration.
Reimplemented from clang::Decl.
Definition at line 3067 of file DeclCXX.h.
References clang::Mergeable< UnresolvedUsingValueDecl >::getFirstDecl().
const UnresolvedUsingValueDecl* clang::UnresolvedUsingValueDecl::getCanonicalDecl | ( | ) | const [inline] |
Reimplemented from clang::Decl.
Definition at line 3070 of file DeclCXX.h.
References clang::Mergeable< UnresolvedUsingValueDecl >::getFirstDecl().
DeclarationNameInfo clang::UnresolvedUsingValueDecl::getNameInfo | ( | ) | const [inline] |
Definition at line 3052 of file DeclCXX.h.
References clang::NamedDecl::getDeclName(), and clang::Decl::getLocation().
Referenced by getSourceRange().
NestedNameSpecifier* clang::UnresolvedUsingValueDecl::getQualifier | ( | ) | const [inline] |
Retrieve the nested-name-specifier that qualifies the name.
Definition at line 3048 of file DeclCXX.h.
References clang::NestedNameSpecifierLoc::getNestedNameSpecifier().
NestedNameSpecifierLoc clang::UnresolvedUsingValueDecl::getQualifierLoc | ( | ) | const [inline] |
Retrieve the nested-name-specifier that qualifies the name, with source-location information.
Definition at line 3045 of file DeclCXX.h.
Referenced by getSourceRange(), and clang::ASTDeclWriter::VisitUnresolvedUsingValueDecl().
SourceRange UnresolvedUsingValueDecl::getSourceRange | ( | ) | const [override, virtual] |
Source range that this declaration covers.
Reimplemented from clang::Decl.
Definition at line 2124 of file DeclCXX.cpp.
References clang::NestedNameSpecifierLoc::getBeginLoc(), getNameInfo(), getQualifierLoc(), and isAccessDeclaration().
SourceLocation clang::UnresolvedUsingValueDecl::getUsingLoc | ( | ) | const [inline] |
Returns the source location of the 'using' keyword.
Definition at line 3035 of file DeclCXX.h.
Referenced by clang::ASTDeclWriter::VisitUnresolvedUsingValueDecl().
bool clang::UnresolvedUsingValueDecl::isAccessDeclaration | ( | ) | const [inline] |
Return true if it is a C++03 access declaration (no 'using').
Definition at line 3041 of file DeclCXX.h.
References clang::SourceLocation::isInvalid().
Referenced by getSourceRange().
void clang::UnresolvedUsingValueDecl::setUsingLoc | ( | SourceLocation | L | ) | [inline] |
Set the source location of the 'using' keyword.
Definition at line 3038 of file DeclCXX.h.
Referenced by clang::ASTDeclReader::VisitUnresolvedUsingValueDecl().
friend class ASTDeclReader [friend] |
Reimplemented from clang::Decl.
friend class ASTDeclWriter [friend] |
Reimplemented from clang::Decl.