MCPcopy Create free account
hub / github.com/Samsung/UTopia / demangle

Function demangle

lib/utils/StringUtil.cpp:32–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32std::string demangle(const char *name) {
33 int status = -1;
34 std::unique_ptr<char, void (*)(void *)> res{
35 abi::__cxa_demangle(name, nullptr, nullptr, &status), std::free};
36 return (status == 0) ? res.get() : std::string(name);
37}
38
39std::string getRelativePath(std::string path, std::string projectBuildPath) {
40 return regex(path, "^" + projectBuildPath + "/?(.+)", 1);

Callers 1

getDemangledNameFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected