clang API Documentation
Represents a dependent using declaration which was marked with typename
.
More...
#include <DeclCXX.h>
Public Member Functions | |
SourceLocation | getUsingLoc () const |
Returns the source location of the 'using' keyword. | |
SourceLocation | getTypenameLoc () const |
Returns the source location of the 'typename' keyword. | |
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. | |
UnresolvedUsingTypenameDecl * | getCanonicalDecl () override |
Retrieves the canonical declaration of this declaration. | |
const UnresolvedUsingTypenameDecl * | getCanonicalDecl () const |
Static Public Member Functions | |
static UnresolvedUsingTypenameDecl * | Create (ASTContext &C, DeclContext *DC, SourceLocation UsingLoc, SourceLocation TypenameLoc, NestedNameSpecifierLoc QualifierLoc, SourceLocation TargetNameLoc, DeclarationName TargetName) |
static UnresolvedUsingTypenameDecl * | CreateDeserialized (ASTContext &C, unsigned ID) |
static bool | classof (const Decl *D) |
static bool | classofKind (Kind K) |
Friends | |
class | ASTDeclReader |
Represents a dependent using declaration which was marked with typename
.
template \<class T> class A : public Base<T> { using typename Base<T>::foo; };
The type associated with an unresolved using typename decl is currently always a typename type.
static bool clang::UnresolvedUsingTypenameDecl::classof | ( | const Decl * | D | ) | [inline, static] |
Reimplemented from clang::TypeDecl.
Definition at line 3146 of file DeclCXX.h.
References classofKind(), and clang::Decl::getKind().
static bool clang::UnresolvedUsingTypenameDecl::classofKind | ( | Kind | K | ) | [inline, static] |
Reimplemented from clang::TypeDecl.
Definition at line 3147 of file DeclCXX.h.
Referenced by classof().
UnresolvedUsingTypenameDecl * UnresolvedUsingTypenameDecl::Create | ( | ASTContext & | C, |
DeclContext * | DC, | ||
SourceLocation | UsingLoc, | ||
SourceLocation | TypenameLoc, | ||
NestedNameSpecifierLoc | QualifierLoc, | ||
SourceLocation | TargetNameLoc, | ||
DeclarationName | TargetName | ||
) | [static] |
Definition at line 2133 of file DeclCXX.cpp.
References AttributeLangSupport::C, and clang::DeclarationName::getAsIdentifierInfo().
Referenced by clang::Sema::BuildUsingDeclaration().
UnresolvedUsingTypenameDecl * UnresolvedUsingTypenameDecl::CreateDeserialized | ( | ASTContext & | C, |
unsigned | ID | ||
) | [static] |
Definition at line 2145 of file DeclCXX.cpp.
References AttributeLangSupport::C.
UnresolvedUsingTypenameDecl* clang::UnresolvedUsingTypenameDecl::getCanonicalDecl | ( | ) | [inline, override, virtual] |
Retrieves the canonical declaration of this declaration.
Reimplemented from clang::Decl.
Definition at line 3139 of file DeclCXX.h.
References clang::Mergeable< UnresolvedUsingTypenameDecl >::getFirstDecl().
const UnresolvedUsingTypenameDecl* clang::UnresolvedUsingTypenameDecl::getCanonicalDecl | ( | ) | const [inline] |
Reimplemented from clang::Decl.
Definition at line 3142 of file DeclCXX.h.
References clang::Mergeable< UnresolvedUsingTypenameDecl >::getFirstDecl().
NestedNameSpecifier* clang::UnresolvedUsingTypenameDecl::getQualifier | ( | ) | const [inline] |
Retrieve the nested-name-specifier that qualifies the name.
Definition at line 3126 of file DeclCXX.h.
References clang::NestedNameSpecifierLoc::getNestedNameSpecifier().
NestedNameSpecifierLoc clang::UnresolvedUsingTypenameDecl::getQualifierLoc | ( | ) | const [inline] |
Retrieve the nested-name-specifier that qualifies the name, with source-location information.
Definition at line 3123 of file DeclCXX.h.
Referenced by clang::ASTDeclWriter::VisitUnresolvedUsingTypenameDecl().
SourceLocation clang::UnresolvedUsingTypenameDecl::getTypenameLoc | ( | ) | const [inline] |
Returns the source location of the 'typename' keyword.
Definition at line 3119 of file DeclCXX.h.
Referenced by clang::ASTDeclWriter::VisitUnresolvedUsingTypenameDecl().
SourceLocation clang::UnresolvedUsingTypenameDecl::getUsingLoc | ( | ) | const [inline] |
Returns the source location of the 'using' keyword.
Definition at line 3116 of file DeclCXX.h.
References clang::TypeDecl::getLocStart().
friend class ASTDeclReader [friend] |
Reimplemented from clang::Decl.