| 30 | } |
| 31 | |
| 32 | std::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 | |
| 39 | std::string getRelativePath(std::string path, std::string projectBuildPath) { |
| 40 | return regex(path, "^" + projectBuildPath + "/?(.+)", 1); |