Commit 6a9b506a authored by neverlord's avatar neverlord

fixed clang name demangling

parent 5b69972e
...@@ -79,6 +79,14 @@ std::string demangle(const char* decorated) { ...@@ -79,6 +79,14 @@ std::string demangle(const char* decorated) {
} }
} }
free(undecorated); free(undecorated);
# ifdef __clang__
// replace "std::__1::" with "std::" (fixes strange clang names)
std::string needle = "std::__1::";
std::string fixed_string = "std::";
for (auto pos = result.find(needle); pos != std::string::npos; pos = result.find(needle)) {
result.replace(pos, needle.size(), fixed_string);
}
# endif
return result; return result;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment