llvm-project/libcxx/test/std
Louis Dionne f3966eaf86 [libc++] Make the Debug mode a configuration-time only option
The debug mode has been broken pretty much ever since it was shipped
because it was possible to enable the debug mode in user code without
actually enabling it in the dylib, leading to ODR violations that
caused various kinds of failures.

This commit makes the debug mode a knob that is configured when
building the library and which can't be changed afterwards. This is
less flexible for users, however it will actually work as intended
and it will allow us, in the future, to add various kinds of checks
that do not assume the same ABI as the normal library. Furthermore,
this will make the debug mode more robust, which means that vendors
might be more tempted to support it properly, which hasn't been the
case with the current debug mode.

This patch shouldn't break any user code, except folks who are building
against a library that doesn't have the debug mode enabled and who try
to enable the debug mode in their code. Such users will get a compile-time
error explaining that this configuration isn't supported anymore.

In the future, we should further increase the granularity of the debug
mode checks so that we can cherry-pick which checks to enable, like we
do for unspecified behavior randomization.

Differential Revision: https://reviews.llvm.org/D122941
2022-06-07 16:33:53 -04:00
..
algorithms [libc++] Make the Debug mode a configuration-time only option 2022-06-07 16:33:53 -04:00
atomics [runtimes] Rename various libcpp-has-no-XYZ Lit features to just no-XYZ 2022-05-27 15:24:45 -04:00
concepts [libc++] Remove unused __functional includes 2022-05-28 10:12:39 +02:00
containers [libc++][NFC] Move span tests under views.span 2022-06-06 14:06:05 -04:00
depr [runtimes] Rename various libcpp-has-no-XYZ Lit features to just no-XYZ 2022-05-27 15:24:45 -04:00
diagnostics [runtimes] Rename various libcpp-has-no-XYZ Lit features to just no-XYZ 2022-05-27 15:24:45 -04:00
experimental [libc++] Remove unused __functional includes 2022-05-28 10:12:39 +02:00
input.output [libc++] Make the Debug mode a configuration-time only option 2022-06-07 16:33:53 -04:00
iterators [libc++] Remove unused __functional includes 2022-05-28 10:12:39 +02:00
language.support [libc++] Removes __cpp_lib_monadic_optional. 2022-05-31 19:18:34 +02:00
library/description/conventions [libc++][ranges] Implement ranges::binary_search and ranges::{lower, upper}_bound 2022-06-06 13:33:18 +02:00
localization [libc++][CI] AIX does not have alternative for time_put_byname 2022-05-31 14:20:34 -04:00
namespace [runtimes] Rename various libcpp-has-no-XYZ Lit features to just no-XYZ 2022-05-27 15:24:45 -04:00
numerics [libc++] Avoid creating temporaries in unary expressions involving valarray 2022-06-06 12:58:23 -04:00
ranges [libc++] Remove unused __functional includes 2022-05-28 10:12:39 +02:00
re [runtimes] Rename various libcpp-has-no-XYZ Lit features to just no-XYZ 2022-05-27 15:24:45 -04:00
strings [libc++][test] Skip string_view tests for other vendors on older modes 2022-06-03 13:51:49 -06:00
thread [runtimes] Rename various libcpp-has-no-XYZ Lit features to just no-XYZ 2022-05-27 15:24:45 -04:00
time [runtimes] Rename various libcpp-has-no-XYZ Lit features to just no-XYZ 2022-05-27 15:24:45 -04:00
utilities [libc++] Make the Debug mode a configuration-time only option 2022-06-07 16:33:53 -04:00
pstl