[libcxx-commits] [PATCH] D142184: [libcxx] Add new line after assert message

Vitaly Buka via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jan 19 23:34:11 PST 2023


vitalybuka created this revision.
Herald added a project: All.
vitalybuka requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Abort signal handler may print aswell. Without new line it goes into the
same.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142184

Files:
  libcxx/src/verbose_abort.cpp


Index: libcxx/src/verbose_abort.cpp
===================================================================
--- libcxx/src/verbose_abort.cpp
+++ libcxx/src/verbose_abort.cpp
@@ -36,6 +36,7 @@
     va_list list;
     va_start(list, format);
     std::vfprintf(stderr, format, list);
+    std::fprintf(stderr, "\n");
     va_end(list);
   }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142184.490731.patch
Type: text/x-patch
Size: 337 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230120/0e5e192f/attachment.bin>


More information about the libcxx-commits mailing list