Instantiator
Generate c++ template instantiations
Loading...
Searching...
No Matches
Param Struct Reference

Struct for the collection of all relevant data for a function parameter. More...

#include <Param.hpp>

Collaboration diagram for Param:
[legend]

Public Member Functions

bool compare_cvr (const Param &other) const
 
bool compare (const Param &other) const
 
bool operator== (const Param &other) const
 

Static Public Member Functions

static Param createFromParmVarDecl (const clang::ParmVarDecl *parm, clang::PrintingPolicy pp)
 

Public Attributes

std::string name = ""
 
bool is_lvalue_reference = false
 
bool is_rvalue_reference = false
 
bool is_forwarding_reference = false
 
bool is_reference = false
 
bool is_const = false
 
bool is_volatile = false
 
bool is_restrict = false
 
bool is_dependent = false
 
std::string template_name = ""
 
bool is_template_param = false
 

Detailed Description

Struct for the collection of all relevant data for a function parameter.

Definition at line 15 of file Param.hpp.

Member Function Documentation

◆ compare()

bool Param::compare ( const Param & other) const

Compares if two parameters are the same.

Definition at line 53 of file Param.cpp.

◆ compare_cvr()

bool Param::compare_cvr ( const Param & other) const

Compares the const, volatile and restrict qualifier of the parameter type.

Definition at line 48 of file Param.cpp.

◆ createFromParmVarDecl()

Param Param::createFromParmVarDecl ( const clang::ParmVarDecl * parm,
clang::PrintingPolicy pp )
static

Load the parameter from a clang::ParmVarDecl.

Parameters
parmPointer to the clang::ParmVarDecl
ppclang::PrintingPolicy which controls how strings are created.

Definition at line 9 of file Param.cpp.

◆ operator==()

bool Param::operator== ( const Param & other) const
inline

Definition at line 49 of file Param.hpp.

Member Data Documentation

◆ is_const

bool Param::is_const = false

Definition at line 23 of file Param.hpp.

◆ is_dependent

bool Param::is_dependent = false

Definition at line 26 of file Param.hpp.

◆ is_forwarding_reference

bool Param::is_forwarding_reference = false

Definition at line 21 of file Param.hpp.

◆ is_lvalue_reference

bool Param::is_lvalue_reference = false

Definition at line 19 of file Param.hpp.

◆ is_reference

bool Param::is_reference = false

Definition at line 22 of file Param.hpp.

◆ is_restrict

bool Param::is_restrict = false

Definition at line 25 of file Param.hpp.

◆ is_rvalue_reference

bool Param::is_rvalue_reference = false

Definition at line 20 of file Param.hpp.

◆ is_template_param

bool Param::is_template_param = false

Definition at line 28 of file Param.hpp.

◆ is_volatile

bool Param::is_volatile = false

Definition at line 24 of file Param.hpp.

◆ name

std::string Param::name = ""

Name of the function

Definition at line 18 of file Param.hpp.

◆ template_name

std::string Param::template_name = ""

Definition at line 27 of file Param.hpp.


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