[libcxx-commits] [libcxx] e52ad49 - [libc++][NFC] Add reminder to remove _LIBCPP_HAS_EXPLICIT_THIS_PARAMETER macro (#127070)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Feb 14 06:02:17 PST 2025


Author: Hristo Hristov
Date: 2025-02-14T16:02:13+02:00
New Revision: e52ad499ff00480175b630c2a941a10422d40a67

URL: https://github.com/llvm/llvm-project/commit/e52ad499ff00480175b630c2a941a10422d40a67
DIFF: https://github.com/llvm/llvm-project/commit/e52ad499ff00480175b630c2a941a10422d40a67.diff

LOG: [libc++][NFC] Add reminder to remove _LIBCPP_HAS_EXPLICIT_THIS_PARAMETER macro (#127070)

`__cpp_explicit_this_parameter` has been set in LLVM20
https://github.com/llvm/llvm-project/pull/107451 /
https://github.com/llvm/llvm-project/commit/72e58e00c27c7f4dd9502c719ddd13dcfef33e85

---------

Co-authored-by: Hristo Hristov <zingam at outlook.com>

Added: 
    

Modified: 
    libcxx/include/__config

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__config b/libcxx/include/__config
index ca6aade34107b..c16552228dbb1 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -1198,6 +1198,7 @@ typedef __char32_t char32_t;
 #    define _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK
 #  endif
 
+// TODO(LLVM 22): Remove this macro once LLVM19 support ends. __cpp_explicit_this_parameter has been set in LLVM20.
 // Clang-18 has support for deducing this, but it does not set the FTM.
 #  if defined(__cpp_explicit_this_parameter) || (defined(_LIBCPP_CLANG_VER) && _LIBCPP_CLANG_VER >= 1800)
 #    define _LIBCPP_HAS_EXPLICIT_THIS_PARAMETER 1


        


More information about the libcxx-commits mailing list