From: Jérémie Galarneau Date: Thu, 12 May 2022 18:32:32 +0000 (-0400) Subject: format: add a custom formatter for std::type_info X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=5bb4ff54d92e0a4520f02d08601a0c25f4d2505f;hp=5bb4ff54d92e0a4520f02d08601a0c25f4d2505f;p=lttng-tools.git format: add a custom formatter for std::type_info The name() returned by std::type_info is implementation-dependant. In practice, it is typically the type's mangled name. For GCC and clang, it is possible to use abi::__cxa_demangle to demangle the name at runtime while formatting a string. If this poses any compatibility problem on other platforms, we can fallback to using name() directly. Signed-off-by: Jérémie Galarneau Change-Id: Ib80babe4039c91ce6fdf6d9a9442c31645a43b08 ---