Function mangleFunctionNameToString#
Defined in File manglingSupport.h
Function Documentation#
-
std::string mangleFunctionNameToString(const std::string &s, const std::string &ret_type_name = std::string(""))#
Returns a mangled form of special C++ function names (excl. qualifiers).
Adapted from SgType::mangledNameSupport. This routine considers these cases:
An overloaded operator, including ‘new/delete’ and ‘new[]/delete[]’.
Overloaded casting operators: the caller should specify the optional return type of the function as a mangled name (see parameters).
A destructor (signaled by a ‘~’ prefix).
The caller may omit the second parameter to this function, but that is not recommended.
- Parameters:
s – [in] Unmangled function name.
ret_type_name – [in] Return type of this function, as a mangled name.
- Returns:
A mangled std::string name.