clang 24.0.0git
clang::TemplateDeclInstantiator::DeferredParamAttrs Class Reference

Container for the late-parsed attributes of a function's parameters, which SubstFunctionType defers until the function is declared. More...

#include "clang/Sema/Template.h"

Public Member Functions

 DeferredParamAttrs (TemplateDeclInstantiator &Instantiator)
 DeferredParamAttrs (const DeferredParamAttrs &)=delete
DeferredParamAttrs & operator= (const DeferredParamAttrs &)=delete
 ~DeferredParamAttrs ()
void discard ()
 Free the attributes without instantiating them.
void instantiate ()
 Instantiate the attributes, once the function is declared.

Public Attributes

Sema::LateInstantiatedAttrVec Attrs

Detailed Description

Container for the late-parsed attributes of a function's parameters, which SubstFunctionType defers until the function is declared.

Definition at line 727 of file Template.h.

Constructor & Destructor Documentation

◆ DeferredParamAttrs() [1/2]

clang::TemplateDeclInstantiator::DeferredParamAttrs::DeferredParamAttrs ( TemplateDeclInstantiator & Instantiator)
inlineexplicit

◆ DeferredParamAttrs() [2/2]

clang::TemplateDeclInstantiator::DeferredParamAttrs::DeferredParamAttrs ( const DeferredParamAttrs & )
delete

References DeferredParamAttrs().

◆ ~DeferredParamAttrs()

clang::TemplateDeclInstantiator::DeferredParamAttrs::~DeferredParamAttrs ( )
inline

Definition at line 740 of file Template.h.

References discard().

Member Function Documentation

◆ discard()

void TemplateDeclInstantiator::DeferredParamAttrs::discard ( )

Free the attributes without instantiating them.

Definition at line 5495 of file SemaTemplateInstantiateDecl.cpp.

References Attrs, and clang::LocalInstantiationScope::deleteScopes().

Referenced by instantiate(), clang::TemplateDeclInstantiator::SubstFunctionType(), and ~DeferredParamAttrs().

◆ instantiate()

void TemplateDeclInstantiator::DeferredParamAttrs::instantiate ( )

Instantiate the attributes, once the function is declared.

In a class, they are deferred again until the class is instantiated.

Definition at line 5501 of file SemaTemplateInstantiateDecl.cpp.

References Attrs, and discard().

Referenced by clang::TemplateDeclInstantiator::VisitCXXMethodDecl(), and clang::TemplateDeclInstantiator::VisitFunctionDecl().

◆ operator=()

DeferredParamAttrs & clang::TemplateDeclInstantiator::DeferredParamAttrs::operator= ( const DeferredParamAttrs & )
delete

References DeferredParamAttrs().

Member Data Documentation

◆ Attrs

Sema::LateInstantiatedAttrVec clang::TemplateDeclInstantiator::DeferredParamAttrs::Attrs

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