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

Function getDemangledName

lib/utils/StringUtil.cpp:53–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53std::string getDemangledName(std::string MangledName) {
54
55 const std::string AnonymousNS = "(anonymous namespace)::";
56
57 std::string DemangledName = llvm::demangle(MangledName);
58 DemangledName = replaceString(DemangledName, "()", "");
59
60 if (DemangledName.find(AnonymousNS) == 0)
61 DemangledName = DemangledName.replace(0, AnonymousNS.size() - 2, "");
62
63 replaceStrAll(DemangledName, "(anonymous namespace)::", "");
64 return DemangledName;
65}
66
67bool isHeaderFile(std::string path) {
68

Callers 5

getAllocSizeArgNoMethod · 0.85
isVirtTableFunction · 0.85
isTestBodyMethod · 0.85
FunctionNodeMethod · 0.85
handleUserMethod · 0.85

Calls 5

demangleFunction · 0.85
replaceStringFunction · 0.85
replaceStrAllFunction · 0.85
sizeMethod · 0.80
findMethod · 0.45

Tested by 1

isTestBodyMethod · 0.68