MCPcopy Create free account
hub / github.com/catboost/catboost / Demangle

Method Demangle

util/system/type_name.cpp:26–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24} // anonymous namespace
25
26const char* NPrivate::TCppDemangler::Demangle(const char* name) {
27#ifndef __GNUC__
28 return name;
29#else
30 int status;
31 TmpBuf_.Reset(__cxxabiv1::__cxa_demangle(name, nullptr, nullptr, &status));
32
33 if (!TmpBuf_) {
34 return name;
35 }
36
37 return TmpBuf_.Get();
38#endif
39}
40
41static TString CppDemangleImpl(const char* name) {
42 return NPrivate::TCppDemangler().Demangle(name);

Callers 2

CppDemangleImplFunction · 0.80
ResolveSymbolFunction · 0.80

Calls 3

__cxa_demangleFunction · 0.85
ResetMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected