[libcxx-commits] [libcxx] [libcxx] mark _LIBCPP_VERBOSE_{ABORT, TRAP} `nomerge` (PR #200078)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Fri May 29 06:15:52 PDT 2026


================
@@ -42,9 +42,13 @@ _LIBCPP_END_EXPLICIT_ABI_ANNOTATIONS
 #  if !_LIBCPP_AVAILABILITY_HAS_VERBOSE_ABORT
 // The decltype is there to suppress -Wunused warnings in this configuration.
 void __use(const char*, ...);
-#    define _LIBCPP_VERBOSE_ABORT(...) (decltype(::std::__use(__VA_ARGS__))(), __builtin_abort())
+#    define _LIBCPP_VERBOSE_ABORT(...)                                                                                 \
+      ({                                                                                                               \
----------------
philnik777 wrote:

I'm really not a huge fan of using statement expressions. Unfortunately I didn't manage to come up with anything similar which worked and was still a single expression.

https://github.com/llvm/llvm-project/pull/200078


More information about the libcxx-commits mailing list