Function mangleTemplateFunctionToString

Function mangleTemplateFunctionToString#

Function Documentation#

std::string mangleTemplateFunctionToString(const std::string &templ_name, const SgTemplateArgumentPtrList &templ_args, const SgFunctionType *func_type, const SgScopeStatement *scope)#

Mangles an instantiated template function or template member function.

Parameters:
  • templ_name[in] Unmangled base name of the function. This std::string should not contain the template arguments (i.e., should be ‘foo’ and not ‘foo < int >’).

  • templ_args[in] Container of template arguments.

  • func_type[in] The function’s type (e.g., via ‘get_type ()’)

  • scope[in] Scope of the function (e.g., via ‘get_scope ()’), used to get qualifiers.

Returns:

Mangled name, including all parameter information.