formatting, typos, comments, details
Change-Id: Iae5f1acb653a694622e9ac2bad93efcfca588f3a
This commit is contained in:
@ -6,15 +6,15 @@
|
||||
|
||||
namespace fail {
|
||||
|
||||
const std::string Demangler::DEMANGLE_FAILED = "[Demangler] Demangle failed.";
|
||||
const std::string Demangler::DEMANGLE_FAILED = "[Demangler] Demangle failed.";
|
||||
|
||||
std::string Demangler::demangle(const std::string& name){
|
||||
const char* res = cplus_demangle(name.c_str(), 0);
|
||||
if(res != NULL){
|
||||
return std::string(res);
|
||||
}else{
|
||||
return Demangler::DEMANGLE_FAILED;
|
||||
}
|
||||
}
|
||||
std::string Demangler::demangle(const std::string& name){
|
||||
const char* res = cplus_demangle(name.c_str(), 0);
|
||||
if (res != NULL) {
|
||||
return std::string(res);
|
||||
} else {
|
||||
return Demangler::DEMANGLE_FAILED;
|
||||
}
|
||||
}
|
||||
|
||||
} // end of namespace
|
||||
|
||||
Reference in New Issue
Block a user