llvm-project/libcxx
Jordan Rupprecht d6b1448809 [libc++] Remove usage of `_LIBCPP_DEBUG` in `__comp_ref_type` and replace with `_LIBCPP_DEBUG_LEVEL`
In libc++, checking specific `_LIBCPP_DEBUG_LEVEL` levels is used everywhere except in `comp_ref_type.h`. `_LIBCPP_DEBUG` is meant as a user-facing option, and internally libc++ should be checking the value of `_LIBCPP_DEBUG_LEVEL`.

The definition of `std::__debug_less` doesn't need to be hidden behind the macro, we can unconditionally expose it. It will be unused by `__comp_ref_type` unless debug mode is enabled.

This was suggested in D118940.

Reviewed By: #libc, philnik, Quuxplusone, ldionne

Differential Revision: https://reviews.llvm.org/D118950
2022-02-10 09:03:07 -08:00
..
benchmarks [libc++] Fix modules and benchmarks CI builds when incomplete features are disabled 2022-02-08 15:15:07 -05:00
cmake [libc++] Add Unstable ABI CI run 2022-02-05 15:37:22 +01:00
docs [libc++][ranges] Implement std::ranges::swap_ranges() 2022-02-10 16:01:45 +01:00
include [libc++] Remove usage of `_LIBCPP_DEBUG` in `__comp_ref_type` and replace with `_LIBCPP_DEBUG_LEVEL` 2022-02-10 09:03:07 -08:00
lib Microsoft's floating-point to_chars powered by Ryu and Ryu Printf 2021-12-12 16:34:50 +01:00
src [libc++] Remove vector base class 2022-02-04 13:06:28 +01:00
test [libc++] Fix std::__debug_less in c++17. 2022-02-10 08:52:17 -08:00
utils [libc++] Try to fix the quoting of -isystem on Windows bots 2022-02-09 10:08:12 -05:00
.clang-format [libc++] Update clang-format to C++20. 2021-10-30 12:50:57 +02:00
.clang-tidy [libc++][NFC] Disable clang-tidy checks 2021-12-06 01:51:23 +01:00
.gitignore
CMakeLists.txt [runtimes] Remove support for standalone builds 2022-02-09 08:55:31 -05:00
CREDITS.TXT Microsoft's floating-point to_chars powered by Ryu and Ryu Printf 2021-12-12 16:34:50 +01:00
LICENSE.TXT
TODO.TXT [libc++] Disallow volatile types in std::allocator 2021-09-22 11:47:38 -04:00
appveyor-reqs-install.cmd
appveyor.yml