Skip to content

Commit

Permalink
[libc++][NFC] Add reminder to remove _LIBCPP_HAS_EXPLICIT_THIS_PARAME…
Browse files Browse the repository at this point in the history
…TER macro (llvm#127070)

`__cpp_explicit_this_parameter` has been set in LLVM20
llvm#107451 /
llvm@72e58e0

---------

Co-authored-by: Hristo Hristov <[email protected]>
  • Loading branch information
H-G-Hristov and Zingam authored Feb 14, 2025
1 parent 053e033 commit e52ad49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libcxx/include/__config
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e52ad49

Please sign in to comment.