ClickHouse/libs/libcommon/include/common/demangle.h

17 lines
373 B
C++
Raw Normal View History

#pragma once
#include <string>
/** Demangles C++ symbol name.
* When demangling fails, returns the original name and sets status to non-zero.
* TODO: Write msvc version (now returns the same string)
*/
std::string demangle(const char * name, int & status);
inline std::string demangle(const char * name)
{
int status = 0;
return demangle(name, status);
}