[libcxx-commits] [PATCH] D116880: [libcxx][test] Make LIBCPP_STATIC_ASSERT usable at namespace scope

Casey Carter via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 10 16:30:11 PST 2022


CaseyCarter added inline comments.


================
Comment at: libcxx/test/support/test_macros.h:239-243
 #define LIBCPP_ASSERT(...) ((void)0)
-#define LIBCPP_STATIC_ASSERT(...) ((void)0)
+#define LIBCPP_STATIC_ASSERT(...) static_assert(true, "")
 #define LIBCPP_ASSERT_NOEXCEPT(...) ((void)0)
 #define LIBCPP_ASSERT_NOT_NOEXCEPT(...) ((void)0)
 #define LIBCPP_ONLY(...) ((void)0)
----------------
Quuxplusone wrote:
> I think you're onto something here. :)
I'll change these when I push.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116880/new/

https://reviews.llvm.org/D116880



More information about the libcxx-commits mailing list