llvm-project/libcxx/include/__format
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
..
buffer.h [libc++] Make the Debug mode a configuration-time only option 2022-06-07 16:33:53 -04:00
concepts.h [libc++][format] Adds a formattable concept. 2022-05-18 20:02:08 +02:00
enable_insertable.h [libc++][format][3/6] Adds a __container_buffer. 2022-04-09 09:35:48 +02:00
format_arg.h [libc++] Remove unused __functional includes 2022-05-28 10:12:39 +02:00
format_arg_store.h [libc++][format] Fixes string-literal formatting. 2022-06-01 17:49:09 +02:00
format_args.h [libc++][format] Improve format-arg-store. 2022-05-18 20:11:36 +02:00
format_context.h [libc++][NFC] Add missing includes 2022-06-06 12:58:23 -04:00
format_error.h [libc++] Revert "Protect users from relying on detail headers" & related changes 2022-03-01 08:20:24 -05:00
format_fwd.h [libc++][format] Improve format-arg-store. 2022-05-18 20:11:36 +02:00
format_parse_context.h [libc++] Replace _LIBCPP_HAS_NO_CONCEPTS with _LIBCPP_STD_VER > 17. NFCI. 2022-03-13 12:32:06 -04:00
format_string.h [libc++] Replace _LIBCPP_HAS_NO_CONCEPTS with _LIBCPP_STD_VER > 17. NFCI. 2022-03-13 12:32:06 -04:00
format_to_n_result.h [libc++] Replace _LIBCPP_HAS_NO_CONCEPTS with _LIBCPP_STD_VER > 17. NFCI. 2022-03-13 12:32:06 -04:00
formatter.h [libc++] Replace _LIBCPP_HAS_NO_CONCEPTS with _LIBCPP_STD_VER > 17. NFCI. 2022-03-13 12:32:06 -04:00
formatter_bool.h [libc++] Replace _LIBCPP_HAS_NO_CONCEPTS with _LIBCPP_STD_VER > 17. NFCI. 2022-03-13 12:32:06 -04:00
formatter_char.h [libc++] Replace _LIBCPP_HAS_NO_CONCEPTS with _LIBCPP_STD_VER > 17. NFCI. 2022-03-13 12:32:06 -04:00
formatter_floating_point.h [libc++][NFC] Add missing includes 2022-06-06 12:58:23 -04:00
formatter_integer.h [libc++] Replace _LIBCPP_HAS_NO_CONCEPTS with _LIBCPP_STD_VER > 17. NFCI. 2022-03-13 12:32:06 -04:00
formatter_integral.h [libc++] Replace _LIBCPP_HAS_NO_CONCEPTS with _LIBCPP_STD_VER > 17. NFCI. 2022-03-13 12:32:06 -04:00
formatter_pointer.h Revert "[libc++][format] Use a helper constant." 2022-04-07 22:40:08 +02:00
formatter_string.h [libc++][format] Adds formatter<charT[N], charT>. 2022-05-18 20:10:16 +02:00
parser_std_format_spec.h [libc++] Define _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER whenever we enable warnings in the test suite 2022-03-15 17:17:54 -04:00