Nikolas Klauser
948bffa951
[libc++] Simplify __promote ( #136101 )
...
This avoids instantiating an extra class for every variant `__promote`
is used in.
2025-05-08 16:48:57 -04:00
Nikolas Klauser
17e0686ab1
[libc++][NFC] Use [[__nodiscard__]] unconditionally ( #80454 )
...
`__has_cpp_attribute(__nodiscard__)` is always true now, so we might as
well replace `_LIBCPP_NODISCARD`. It's one less macro that can result in
bad diagnostics.
2024-09-12 21:18:43 +02:00
Nikolas Klauser
6b4b29f859
[libc++][NFC] Remove unnecessary parens in static_asserts ( #95605 )
...
These were required a long time ago due to `static_assert` not actually
being available in C++03. Now `static_assert` is simply mapped to
`_Static_assert` in C++03, making the additional parens unnecessary.
2024-06-18 10:45:30 +02:00
Nikolas Klauser
83bc7b5771
[libc++] Remove _LIBCPP_DISABLE_NODISCARD_EXTENSIONS and refactor the tests ( #87094 )
...
This also adds a few tests that were missing.
2024-04-22 22:13:58 +02:00
Nikolas Klauser
dcdcc7c804
[libc++][NFC] Replace typedefs with using in the math headers
...
Reviewed By: #libc, Mordante, ldionne
Spies: Mordante, libcxx-commits
Differential Revision: https://reviews.llvm.org/D155382
2023-08-03 08:51:50 -07:00
Nikolas Klauser
f3589d25fe
[libc++][NFC] Refactor the enable_ifs in the math headers
...
Reviewed By: #libc, Mordante
Spies: Mordante, libcxx-commits
Differential Revision: https://reviews.llvm.org/D155261
2023-08-02 10:03:32 -07:00
Nikolas Klauser
0e4d812f3e
[libc++][NFC] Format math headers
...
Reviewed By: #libc, Mordante
Spies: arichardson, Mordante, libcxx-commits
Differential Revision: https://reviews.llvm.org/D155260
2023-07-31 17:19:49 -07:00
Nikolas Klauser
404d31196f
[libc++][NFC] Remove std:: qualifications from math headers
...
Reviewed By: #libc, Mordante
Spies: Mordante, libcxx-commits
Differential Revision: https://reviews.llvm.org/D155259
2023-07-31 17:19:44 -07:00
Nikolas Klauser
6553608aca
[libc++] Granulaize math.h and move the functions to std::__math
...
Reviewed By: #libc, Mordante
Spies: Mordante, arichardson, libcxx-commits
Differential Revision: https://reviews.llvm.org/D155258
2023-07-31 17:19:39 -07:00