mangleFunctionNameToString
Returns a mangled form of special C++ function names (excl. qualifiers).
Synopsis
Declared in <SageIII/manglingSupport.h>
std::string
mangleFunctionNameToString(
std::string const& s,
std::string const& ret_type_name = std::string(""));
Description
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.
Return Value
A mangled std::string name.
Parameters
Name |
Description |
s [in] |
Unmangled function name. |
ret_type_name [in] |
Return type of this function, as a mangled name. |
Created with MrDocs