clang API Documentation

clang::Sema::LocalInstantiationScope Class Reference

A stack-allocated class that identifies which local variable declaration instantiations are present in this scope. More...

#include <Sema.h>

Collaboration diagram for clang::Sema::LocalInstantiationScope:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LocalInstantiationScope (Sema &SemaRef, bool CombineWithOuterScope=false)
 ~LocalInstantiationScope ()
void Exit ()
 Exit this local instantiation scope early.
DeclgetInstantiationOf (const Decl *D)
VarDeclgetInstantiationOf (const VarDecl *Var)
ParmVarDeclgetInstantiationOf (const ParmVarDecl *Var)
NonTypeTemplateParmDeclgetInstantiationOf (const NonTypeTemplateParmDecl *Var)
void InstantiatedLocal (const Decl *D, Decl *Inst)

Detailed Description

A stack-allocated class that identifies which local variable declaration instantiations are present in this scope.

A new instance of this class type will be created whenever we instantiate a new function declaration, which will have its own set of parameter declarations.

Definition at line 3824 of file Sema.h.


Constructor & Destructor Documentation

clang::Sema::LocalInstantiationScope::LocalInstantiationScope ( Sema SemaRef,
bool  CombineWithOuterScope = false 
) [inline]

Definition at line 3862 of file Sema.h.

References clang::Sema::CurrentInstantiationScope.

clang::Sema::LocalInstantiationScope::~LocalInstantiationScope (  )  [inline]

Definition at line 3869 of file Sema.h.

References Exit().


Member Function Documentation

void clang::Sema::LocalInstantiationScope::Exit (  )  [inline]

Exit this local instantiation scope early.

Definition at line 3874 of file Sema.h.

References clang::Sema::CurrentInstantiationScope.

Referenced by clang::Sema::InstantiateFunctionDefinition(), and ~LocalInstantiationScope().

NonTypeTemplateParmDecl* clang::Sema::LocalInstantiationScope::getInstantiationOf ( const NonTypeTemplateParmDecl Var  )  [inline]

Definition at line 3892 of file Sema.h.

References getInstantiationOf().

ParmVarDecl* clang::Sema::LocalInstantiationScope::getInstantiationOf ( const ParmVarDecl Var  )  [inline]

Definition at line 3888 of file Sema.h.

References getInstantiationOf().

VarDecl* clang::Sema::LocalInstantiationScope::getInstantiationOf ( const VarDecl Var  )  [inline]

Definition at line 3884 of file Sema.h.

References getInstantiationOf().

Decl * Sema::LocalInstantiationScope::getInstantiationOf ( const Decl D  ) 
void Sema::LocalInstantiationScope::InstantiatedLocal ( const Decl D,
Decl Inst 
)

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