| 5 | |
| 6 | namespace BinaryNinja { |
| 7 | bool DemangleGeneric(Ref<Architecture> arch, const std::string& name, Ref<Type>& outType, |
| 8 | QualifiedName& outVarName, Ref<BinaryView> view, bool simplify) |
| 9 | { |
| 10 | BNType* apiType; |
| 11 | BNQualifiedName apiVarName; |
| 12 | bool success = BNDemangleGeneric( |
| 13 | arch->m_object, name.c_str(), &apiType, &apiVarName, view ? view->m_object : nullptr, simplify); |
| 14 | |
| 15 | if (!success) |
| 16 | return false; |
| 17 | |
| 18 | if (apiType) |
| 19 | outType = new Type(apiType); |
| 20 | outVarName = QualifiedName::FromAPIObject(&apiVarName); |
| 21 | BNFreeQualifiedName(&apiVarName); |
| 22 | return true; |
| 23 | } |
| 24 | |
| 25 | bool DemangleLLVM(const std::string& mangledName, QualifiedName& outVarName, |
| 26 | BinaryView* view) |
no test coverage detected