30 #ifndef HARDWARE_INTERFACE_INTERNAL_DEMANGLE_SYMBOL_H 31 #define HARDWARE_INTERFACE_INTERNAL_DEMANGLE_SYMBOL_H 36 #if (__GNUC__ && __cplusplus && __GNUC__ >= 3) 52 #if (__GNUC__ && __cplusplus && __GNUC__ >= 3) 54 char* res = abi::__cxa_demangle(name, 0, 0, &status);
57 const std::string demangled_name(res);
59 return demangled_name;
62 return std::string(name);
64 return std::string(name);
92 #endif // HARDWARE_INTERFACE_INTERNAL_DEMANGLE_SYMBOL_H
std::string demangleSymbol(const char *name)
Demangle symbol, if symbol demangling is available.
std::string demangledTypeName()
Convenience method for demangling type names.