memgraph/src/utils/demangle.hpp
Matej Ferencevic 9291a5fc4d Migrate to C++17
Reviewers: teon.banek, buda

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1974
2019-04-23 14:46:44 +02:00

18 lines
307 B
C++

/**
* @file
*/
#pragma once
#include <optional>
#include <string>
namespace utils {
/**
* Converts a mangled name to a human-readable name using abi::__cxa_demangle.
* Returns nullopt if the conversion failed.
*/
std::optional<std::string> Demangle(const char *mangled_name);
} // namespace utils