clang API Documentation

Namespaces | Functions
SemaTemplateInstantiate.cpp File Reference
#include "clang/Sema/SemaInternal.h"
#include "TreeTransform.h"
#include "clang/AST/ASTConsumer.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/ASTLambda.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/AST/Expr.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Sema/DeclSpec.h"
#include "clang/Sema/Initialization.h"
#include "clang/Sema/Lookup.h"
#include "clang/Sema/Template.h"
#include "clang/Sema/TemplateDeduction.h"
Include dependency graph for SemaTemplateInstantiate.cpp:

Go to the source code of this file.

Namespaces

namespace  clang
namespace  clang::sema

Functions

static std::pair< unsigned,
unsigned
getDepthAndIndex (NamedDecl *ND)
 Retrieve the depth and index of a parameter pack.
static TemplateArgument getPackSubstitutedTemplateArgument (Sema &S, TemplateArgument Arg)
static bool NeedsInstantiationAsFunctionType (TypeSourceInfo *T)
Attrclang::sema::instantiateTemplateAttribute (const Attr *At, ASTContext &C, Sema &S, const MultiLevelTemplateArgumentList &TemplateArgs)
static bool DiagnoseUninstantiableTemplate (Sema &S, SourceLocation PointOfInstantiation, TagDecl *Instantiation, bool InstantiatedFromMember, TagDecl *Pattern, TagDecl *PatternDef, TemplateSpecializationKind TSK, bool Complain=true)
static const DeclgetCanonicalParmVarDecl (const Decl *D)

Function Documentation

static bool DiagnoseUninstantiableTemplate ( Sema S,
SourceLocation  PointOfInstantiation,
TagDecl Instantiation,
bool  InstantiatedFromMember,
TagDecl Pattern,
TagDecl PatternDef,
TemplateSpecializationKind  TSK,
bool  Complain = true 
) [static]
static const Decl* getCanonicalParmVarDecl ( const Decl D) [static]
static std::pair<unsigned, unsigned> getDepthAndIndex ( NamedDecl ND) [static]

Retrieve the depth and index of a parameter pack.

Definition at line 630 of file SemaTemplateInstantiate.cpp.

References clang::TemplateParmPosition::getDepth(), and clang::TemplateParmPosition::getIndex().