clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions | Friends
clang::FriendTemplateDecl Class Reference

Declaration of a friend template. More...

#include <DeclTemplate.h>

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

List of all members.

Public Types

typedef llvm::PointerUnion
< NamedDecl *, TypeSourceInfo * > 
FriendUnion

Public Member Functions

TypeSourceInfogetFriendType () const
NamedDeclgetFriendDecl () const
SourceLocation getFriendLoc () const
 Retrieves the location of the 'friend' keyword.
TemplateParameterListgetTemplateParameterList (unsigned i) const
unsigned getNumTemplateParameters () const

Static Public Member Functions

static FriendTemplateDeclCreate (ASTContext &Context, DeclContext *DC, SourceLocation Loc, unsigned NParams, TemplateParameterList **Params, FriendUnion Friend, SourceLocation FriendLoc)
static FriendTemplateDeclCreateDeserialized (ASTContext &C, unsigned ID)
static bool classof (const Decl *D)
static bool classofKind (Kind K)

Friends

class ASTDeclReader

Detailed Description

Declaration of a friend template.

For example:

 template \<typename T> class A {
   friend class MyVector<T>; // not a friend template
   template \<typename U> friend class B; // not a friend template
   template \<typename U> friend class Foo<T>::Nested; // friend template
 };
Note:
This class is not currently in use. All of the above will yield a FriendDecl, not a FriendTemplateDecl.

Definition at line 2010 of file DeclTemplate.h.


Member Typedef Documentation

Definition at line 2013 of file DeclTemplate.h.


Member Function Documentation

static bool clang::FriendTemplateDecl::classof ( const Decl D) [inline, static]

Definition at line 2086 of file DeclTemplate.h.

References classofKind(), and clang::Decl::getKind().

static bool clang::FriendTemplateDecl::classofKind ( Kind  K) [inline, static]

Reimplemented from clang::Decl.

Definition at line 2087 of file DeclTemplate.h.

Referenced by classof().

FriendTemplateDecl * FriendTemplateDecl::Create ( ASTContext Context,
DeclContext DC,
SourceLocation  Loc,
unsigned  NParams,
TemplateParameterList **  Params,
FriendUnion  Friend,
SourceLocation  FriendLoc 
) [static]

Definition at line 863 of file DeclTemplate.cpp.

References Context.

Referenced by clang::Sema::ActOnFriendTypeDecl().

Definition at line 874 of file DeclTemplate.cpp.

References AttributeLangSupport::C.

If this friend declaration names a templated function (or a member function of a templated type), return that type; otherwise return null.

Definition at line 2067 of file DeclTemplate.h.

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

Retrieves the location of the 'friend' keyword.

Definition at line 2072 of file DeclTemplate.h.

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

If this friend declaration names a templated type (or a dependent member type of a templated type), return that type; otherwise return null.

Definition at line 2060 of file DeclTemplate.h.

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

Definition at line 2081 of file DeclTemplate.h.

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

Definition at line 2076 of file DeclTemplate.h.

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


Friends And Related Function Documentation

friend class ASTDeclReader [friend]

Reimplemented from clang::Decl.

Definition at line 2089 of file DeclTemplate.h.


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