14#ifdef __GXX_ABI_VERSION
30void reportMessageStandalone (
const std::string& context,
31 const std::string& severity,
32 const std::string&
file,
int line,
33 const std::string&
msg) {
37 std::string
source (context);
38 static constexpr std::size_t CONTEXT_WIDTH = 18;
39 if (
source.size() > CONTEXT_WIDTH) {
46 output << std::setiosflags(std::ios::left)
47 << std::setw(CONTEXT_WIDTH) <<
source <<
" " << severity <<
" "
50 std::cout <<
output.str() << std::endl;
68 std::string
result = ti.name();
70#ifdef __GXX_ABI_VERSION
73 char*
typeName = abi::__cxa_demangle( ti.name(), 0, 0, &status );
Helper for emitting error messages.
std::string typeinfoName(const std::type_info &ti)
Convert a type_info to a demangled string.