[libcxx-commits] [libcxx] [libc++] Remove _LIBCPP_USING_IF_EXISTS from fundamental aliases (PR #107220)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Sep 13 06:31:13 PDT 2024


https://github.com/ldionne updated https://github.com/llvm/llvm-project/pull/107220

>From 29445fa38d52a58cc2d91a04ae5c620916063902 Mon Sep 17 00:00:00 2001
From: Nikolas Klauser <nikolasklauser at berlin.de>
Date: Wed, 4 Sep 2024 13:03:58 +0200
Subject: [PATCH] [libc++] Remove _LIBCPP_USING_IF_EXISTS from fundamental
 aliases

---
 libcxx/include/__cstddef/max_align_t.h | 2 +-
 libcxx/include/__cstddef/ptrdiff_t.h   | 2 +-
 libcxx/include/__cstddef/size_t.h      | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libcxx/include/__cstddef/max_align_t.h b/libcxx/include/__cstddef/max_align_t.h
index 7c09c7e7f30172..d97c779b1cb6ad 100644
--- a/libcxx/include/__cstddef/max_align_t.h
+++ b/libcxx/include/__cstddef/max_align_t.h
@@ -19,7 +19,7 @@
 _LIBCPP_BEGIN_NAMESPACE_STD
 
 #if !defined(_LIBCPP_CXX03_LANG)
-using ::max_align_t _LIBCPP_USING_IF_EXISTS;
+using ::max_align_t;
 #endif
 
 _LIBCPP_END_NAMESPACE_STD
diff --git a/libcxx/include/__cstddef/ptrdiff_t.h b/libcxx/include/__cstddef/ptrdiff_t.h
index f8b5cdaaff01c9..28068b492c3a86 100644
--- a/libcxx/include/__cstddef/ptrdiff_t.h
+++ b/libcxx/include/__cstddef/ptrdiff_t.h
@@ -18,7 +18,7 @@
 
 _LIBCPP_BEGIN_NAMESPACE_STD
 
-using ::ptrdiff_t _LIBCPP_USING_IF_EXISTS;
+using ::ptrdiff_t;
 
 _LIBCPP_END_NAMESPACE_STD
 
diff --git a/libcxx/include/__cstddef/size_t.h b/libcxx/include/__cstddef/size_t.h
index 91abbf01318953..24875a2c813596 100644
--- a/libcxx/include/__cstddef/size_t.h
+++ b/libcxx/include/__cstddef/size_t.h
@@ -18,7 +18,7 @@
 
 _LIBCPP_BEGIN_NAMESPACE_STD
 
-using ::size_t _LIBCPP_USING_IF_EXISTS;
+using ::size_t;
 
 _LIBCPP_END_NAMESPACE_STD
 



More information about the libcxx-commits mailing list