clang API Documentation

Public Member Functions | Static Public Member Functions | Friends
clang::UnresolvedUsingTypenameDecl Class Reference

Represents a dependent using declaration which was marked with typename. More...

#include <DeclCXX.h>

Inheritance diagram for clang::UnresolvedUsingTypenameDecl:
Inheritance graph
[legend]
Collaboration diagram for clang::UnresolvedUsingTypenameDecl:
Collaboration graph
[legend]

List of all members.

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.
NestedNameSpecifiergetQualifier () const
 Retrieve the nested-name-specifier that qualifies the name.
UnresolvedUsingTypenameDeclgetCanonicalDecl () override
 Retrieves the canonical declaration of this declaration.
const UnresolvedUsingTypenameDeclgetCanonicalDecl () 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

Detailed Description

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.

Definition at line 3092 of file DeclCXX.h.


Member Function Documentation

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().

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 2145 of file DeclCXX.cpp.

References AttributeLangSupport::C.

Retrieves the canonical declaration of this declaration.

Reimplemented from clang::Decl.

Definition at line 3139 of file DeclCXX.h.

References clang::Mergeable< UnresolvedUsingTypenameDecl >::getFirstDecl().

Reimplemented from clang::Decl.

Definition at line 3142 of file DeclCXX.h.

References clang::Mergeable< UnresolvedUsingTypenameDecl >::getFirstDecl().

Retrieve the nested-name-specifier that qualifies the name.

Definition at line 3126 of file DeclCXX.h.

References clang::NestedNameSpecifierLoc::getNestedNameSpecifier().

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().

Returns the source location of the 'typename' keyword.

Definition at line 3119 of file DeclCXX.h.

Referenced by clang::ASTDeclWriter::VisitUnresolvedUsingTypenameDecl().

Returns the source location of the 'using' keyword.

Definition at line 3116 of file DeclCXX.h.

References clang::TypeDecl::getLocStart().


Friends And Related Function Documentation

friend class ASTDeclReader [friend]

Reimplemented from clang::Decl.

Definition at line 3112 of file DeclCXX.h.


The documentation for this class was generated from the following files: