clang 20.0.0git
Classes | Public Member Functions | List of all members
clang::extractapi::Template Class Reference

#include "clang/ExtractAPI/API.h"

Public Member Functions

 Template ()=default
 
 Template (const TemplateDecl *Decl)
 
 Template (const ClassTemplatePartialSpecializationDecl *Decl)
 
 Template (const VarTemplatePartialSpecializationDecl *Decl)
 
const llvm::SmallVector< TemplateParameter > & getParameters () const
 
const llvm::SmallVector< TemplateConstraint > & getConstraints () const
 
void addTemplateParameter (std::string Type, std::string Name, unsigned int Index, unsigned int Depth, bool IsParameterPack)
 
bool empty () const
 

Detailed Description

Definition at line 40 of file API.h.

Constructor & Destructor Documentation

◆ Template() [1/4]

clang::extractapi::Template::Template ( )
default

◆ Template() [2/4]

clang::extractapi::Template::Template ( const TemplateDecl Decl)
inline

Definition at line 67 of file API.h.

References addTemplateParameter(), and clang::Parameter.

◆ Template() [3/4]

clang::extractapi::Template::Template ( const ClassTemplatePartialSpecializationDecl Decl)
inline

Definition at line 85 of file API.h.

References addTemplateParameter(), and clang::Parameter.

◆ Template() [4/4]

clang::extractapi::Template::Template ( const VarTemplatePartialSpecializationDecl Decl)
inline

Definition at line 103 of file API.h.

References addTemplateParameter(), and clang::Parameter.

Member Function Documentation

◆ addTemplateParameter()

void clang::extractapi::Template::addTemplateParameter ( std::string  Type,
std::string  Name,
unsigned int  Index,
unsigned int  Depth,
bool  IsParameterPack 
)
inline

Definition at line 129 of file API.h.

Referenced by Template().

◆ empty()

bool clang::extractapi::Template::empty ( ) const
inline

Definition at line 135 of file API.h.

◆ getConstraints()

const llvm::SmallVector< TemplateConstraint > & clang::extractapi::Template::getConstraints ( ) const
inline

Definition at line 125 of file API.h.

◆ getParameters()

const llvm::SmallVector< TemplateParameter > & clang::extractapi::Template::getParameters ( ) const
inline

Definition at line 121 of file API.h.


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