clang
3.9.0
|
Declaration of a friend template. More...
#include <DeclTemplate.h>
Public Types | |
typedef llvm::PointerUnion < NamedDecl *, TypeSourceInfo * > | FriendUnion |
Public Member Functions | |
TypeSourceInfo * | getFriendType () const |
If this friend declaration names a templated type (or a dependent member type of a templated type), return that type; otherwise return null. More... | |
NamedDecl * | getFriendDecl () const |
If this friend declaration names a templated function (or a member function of a templated type), return that type; otherwise return null. More... | |
SourceLocation | getFriendLoc () const |
Retrieves the location of the 'friend' keyword. More... | |
TemplateParameterList * | getTemplateParameterList (unsigned i) const |
unsigned | getNumTemplateParameters () const |
Static Public Member Functions | |
static FriendTemplateDecl * | Create (ASTContext &Context, DeclContext *DC, SourceLocation Loc, MutableArrayRef< TemplateParameterList * > Params, FriendUnion Friend, SourceLocation FriendLoc) |
static FriendTemplateDecl * | CreateDeserialized (ASTContext &C, unsigned ID) |
static bool | classof (const Decl *D) |
static bool | classofKind (Kind K) |
Friends | |
class | ASTDeclReader |
Declaration of a friend template.
For example:
Definition at line 2144 of file DeclTemplate.h.
typedef llvm::PointerUnion<NamedDecl*,TypeSourceInfo*> clang::FriendTemplateDecl::FriendUnion |
Definition at line 2147 of file DeclTemplate.h.
Definition at line 2211 of file DeclTemplate.h.
Definition at line 2212 of file DeclTemplate.h.
|
static |
Definition at line 875 of file DeclTemplate.cpp.
References Context.
Referenced by clang::Sema::ActOnFriendTypeDecl().
|
static |
Definition at line 882 of file DeclTemplate.cpp.
References ID.
|
inline |
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 2192 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitFriendTemplateDecl().
|
inline |
Retrieves the location of the 'friend' keyword.
Definition at line 2197 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitFriendTemplateDecl().
|
inline |
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 2185 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitFriendTemplateDecl().
|
inline |
Definition at line 2206 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitFriendTemplateDecl().
|
inline |
Definition at line 2201 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitFriendTemplateDecl().
|
friend |
Definition at line 2214 of file DeclTemplate.h.