class FriendTemplateDecl

Declaration

class FriendTemplateDecl : public Decl { /* full declaration omitted */ };

Description

Declaration of a friend template. For example:

Declared at: clang/include/clang/AST/DeclTemplate.h:2470

Inherits from: Decl

Member Variables

private unsigned int NumParams = 0
private clang::TemplateParameterList** Params = nullptr
private clang::FriendTemplateDecl::FriendUnion Friend
private clang::SourceLocation FriendLoc

Inherited from Decl:

protected NextInContextAndBits
protected Access
protected FromASTFile
protected IdentifierNamespace
protected CacheValidAndLinkage

Method Overview

  • public static clang::FriendTemplateDecl * Create(clang::ASTContext & Context, clang::DeclContext * DC, clang::SourceLocation Loc, MutableArrayRef<clang::TemplateParameterList *> Params, clang::FriendTemplateDecl::FriendUnion Friend, clang::SourceLocation FriendLoc)
  • public static clang::FriendTemplateDecl * CreateDeserialized(clang::ASTContext & C, unsigned int ID)
  • private FriendTemplateDecl(clang::DeclContext * DC, clang::SourceLocation Loc, clang::TemplateParameterList ** Params, unsigned int NumParams, clang::FriendTemplateDecl::FriendUnion Friend, clang::SourceLocation FriendLoc)
  • private FriendTemplateDecl(clang::Decl::EmptyShell Empty)
  • private virtual void anchor()
  • public static bool classof(const clang::Decl * D)
  • public static bool classofKind(clang::Decl::Kind K)
  • public clang::NamedDecl * getFriendDecl() const
  • public clang::SourceLocation getFriendLoc() const
  • public clang::TypeSourceInfo * getFriendType() const
  • public unsigned int getNumTemplateParameters() const
  • public clang::TemplateParameterList * getTemplateParameterList(unsigned int i) const

Inherited from Decl:

Methods

static clang::FriendTemplateDecl* Create(
    clang::ASTContext& Context,
    clang::DeclContext* DC,
    clang::SourceLocation Loc,
    MutableArrayRef<clang::TemplateParameterList*>
        Params,
    clang::FriendTemplateDecl::FriendUnion Friend,
    clang::SourceLocation FriendLoc)

Declared at: clang/include/clang/AST/DeclTemplate.h:2501

Parameters

clang::ASTContext& Context
clang::DeclContext* DC
clang::SourceLocation Loc
MutableArrayRef<clang::TemplateParameterList*> Params
clang::FriendTemplateDecl::FriendUnion Friend
clang::SourceLocation FriendLoc

static clang::FriendTemplateDecl*
CreateDeserialized(clang::ASTContext& C,
                   unsigned int ID)

Declared at: clang/include/clang/AST/DeclTemplate.h:2505

Parameters

clang::ASTContext& C
unsigned int ID

FriendTemplateDecl(
    clang::DeclContext* DC,
    clang::SourceLocation Loc,
    clang::TemplateParameterList** Params,
    unsigned int NumParams,
    clang::FriendTemplateDecl::FriendUnion Friend,
    clang::SourceLocation FriendLoc)

Declared at: clang/include/clang/AST/DeclTemplate.h:2489

Parameters

clang::DeclContext* DC
clang::SourceLocation Loc
clang::TemplateParameterList** Params
unsigned int NumParams
clang::FriendTemplateDecl::FriendUnion Friend
clang::SourceLocation FriendLoc

FriendTemplateDecl(clang::Decl::EmptyShell Empty)

Declared at: clang/include/clang/AST/DeclTemplate.h:2495

Parameters

clang::Decl::EmptyShell Empty

virtual void anchor()

Declared at: clang/include/clang/AST/DeclTemplate.h:2471

static bool classof(const clang::Decl* D)

Declared at: clang/include/clang/AST/DeclTemplate.h:2536

Parameters

const clang::Decl* D

static bool classofKind(clang::Decl::Kind K)

Declared at: clang/include/clang/AST/DeclTemplate.h:2537

Parameters

clang::Decl::Kind K

clang::NamedDecl* getFriendDecl() const

Description

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

Declared at: clang/include/clang/AST/DeclTemplate.h:2517

clang::SourceLocation getFriendLoc() const

Description

Retrieves the location of the 'friend' keyword.

Declared at: clang/include/clang/AST/DeclTemplate.h:2522

clang::TypeSourceInfo* getFriendType() const

Description

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

Declared at: clang/include/clang/AST/DeclTemplate.h:2510

unsigned int getNumTemplateParameters() const

Declared at: clang/include/clang/AST/DeclTemplate.h:2531

clang::TemplateParameterList*
getTemplateParameterList(unsigned int i) const

Declared at: clang/include/clang/AST/DeclTemplate.h:2526

Parameters

unsigned int i