[llvm-branch-commits] [libcxx] [libc++] Makes saturation functions privately available. (PR #89503)

2024-04-20 Thread Hristo Hristov via llvm-branch-commits
@@ -107,6 +107,35 @@ _LIBCPP_HIDE_FROM_ABI constexpr _Rp saturate_cast(_Tp __x) noexcept { return static_cast<_Rp>(__x); } +#endif // _LIBCPP_STD_VER >= 20 + +#if _LIBCPP_STD_VER >= 26 + +template <__libcpp_integer _Tp> +_LIBCPP_HIDE_FROM_ABI constexpr _Tp add_sat(_Tp __x,

[llvm-branch-commits] [libcxx] [libc++] Makes saturation functions privately available. (PR #89503)

2024-04-20 Thread Hristo Hristov via llvm-branch-commits
https://github.com/Zingam edited https://github.com/llvm/llvm-project/pull/89503 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [libcxx] [libc++] Makes saturation functions privately available. (PR #89503)

2024-04-20 Thread Hristo Hristov via llvm-branch-commits
https://github.com/Zingam edited https://github.com/llvm/llvm-project/pull/89503 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [libcxx] [libc++] Makes saturation functions privately available. (PR #89503)

2024-04-23 Thread Hristo Hristov via llvm-branch-commits
Zingam wrote: @mordante The PR looks odd. Is this intentional or have you mixed two branches? https://github.com/llvm/llvm-project/pull/89503 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[llvm-branch-commits] [libcxx] [libc++][modules] Increase clang-tidy version used. (PR #76268)

2024-01-05 Thread Hristo Hristov via llvm-branch-commits
H-G-Hristov wrote: > Oh shit. I just realized that this is most likely a latent bug no matter > what. We build the module with Clang 18, and then essentially try to load it > with Clang 17 (aka Clang Tidy 17). AFAIK that's not guaranteed to work, and > probably just happens to work currently w

[llvm-branch-commits] [libcxx] [llvm] [libc++][C++03] Use `__cxx03/` headers in C++03 mode (PR #109002)

2024-10-01 Thread Hristo Hristov via llvm-branch-commits
Zingam wrote: @philnik777 These changes seem significant enough to affect already opened PRs and to confuse the authors who are unaware of the changes. So basically you are surrounding all C++11 mode headers with: ```C++ #include <__configuration/cxx03.h> #if defined(_LIBCPP_CXX03_LANG) && !d

[llvm-branch-commits] [llvm] [libc++][CI] Pin the XCode version. (PR #135412)

2025-04-11 Thread Hristo Hristov via llvm-branch-commits
Zingam wrote: I posted a similar comment here: https://github.com/llvm/llvm-project/pull/134496 I think the compiler support table needs to be updated with "Apple Clang 17", is that so? https://libcxx.llvm.org/ https://github.com/llvm/llvm-project/pull/135412 __