Diagnostics: Fix demangling (#1215)

Rename to better names
More comments
Less branches
This commit is contained in:
David Markowitz
2023-10-09 13:31:43 -07:00
committed by GitHub
parent 500ae4d6e5
commit e96fd56fbd
6 changed files with 58 additions and 57 deletions

9
dCommon/Demangler.h Normal file
View File

@@ -0,0 +1,9 @@
#pragma once
#include <string>
namespace Demangler {
// Given a char* containing a mangled name, return a std::string containing the demangled name.
// If the function fails for any reason, it returns an empty string.
std::string Demangle(const char* name);
}