Instantiator
Generate c++ template instantiations
|
Struct for the collection of all relevant data for a function parameter. More...
#include <TemplateArgument.hpp>
Public Member Functions | |
std::string | name (const std::string &sep=" ") const |
bool | compare (const TemplateArgument &other) const |
bool | operator== (const TemplateArgument &other) const |
Static Public Member Functions | |
static TemplateArgument | createFromTemplateArgument (const clang::TemplateArgument *parm, clang::PrintingPolicy pp) |
Public Attributes | |
Kind | kind {} |
std::vector< std::string > | names = {""} |
bool | is_dependent = false |
Struct for the collection of all relevant data for a function parameter.
Definition at line 25 of file TemplateArgument.hpp.
bool Instantiator::TemplateArgument::compare | ( | const TemplateArgument & | other | ) | const |
Compares if two parameters are the same.
Definition at line 87 of file TemplateArgument.cpp.
|
static |
Load the parameter from a clang::ParmVarDecl.
parm | Pointer to the clang::ParmVarDecl |
pp | clang::PrintingPolicy which controls how strings are created. |
Definition at line 26 of file TemplateArgument.cpp.
std::string Instantiator::TemplateArgument::name | ( | const std::string & | sep = " " | ) | const |
Definition at line 13 of file TemplateArgument.cpp.
|
inline |
Definition at line 50 of file TemplateArgument.hpp.
bool Instantiator::TemplateArgument::is_dependent = false |
Whether this template argument is dependent (not already resolved).
Definition at line 36 of file TemplateArgument.hpp.
Kind Instantiator::TemplateArgument::kind {} |
Kind of the template argument (Type, NonType, ...)
Definition at line 28 of file TemplateArgument.hpp.
std::vector<std::string> Instantiator::TemplateArgument::names = {""} |
Name of the template argument
Definition at line 31 of file TemplateArgument.hpp.