ClickHouse/libs/libcommon/include/common/demangle.h
proller 68ba523b23 Compile and doc fixes (#2410)
* Try fix travis

* fix

* Fix clickhouse-local shared-split link

* fix

* fix

* fix

* Build fixes

* Fix tinfo

* fix

* tinfo -> termcap

* termcap fix

* Better llvm version detect

* fix

* Debian postinst fix
Tests: use /usr/local if exists

* Compile and doc fixes

* fix

* fix

* fix

* macos fixes

* fix

* wip

* Update demangle.h

* Update demangle.cpp
2018-05-25 21:13:48 +03:00

17 lines
373 B
C++

#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);
}