json/tests/src
Florian Albrechtskirchinger d909f80960
Add versioned, ABI-tagged inline namespace and namespace macros (#3590)
* Add versioned inline namespace

Add a versioned inline namespace to prevent ABI issues when linking code
using multiple library versions.

* Add namespace macros

* Encode ABI information in inline namespace

Add _diag suffix to inline namespace if JSON_DIAGNOSTICS is enabled, and
_ldvcmp suffix if JSON_USE_LEGACY_DISCARDED_VALUE_COMPARISON is enabled.

* Move ABI-affecting macros into abi_macros.hpp

* Move std_fs namespace definition into std_fs.hpp

* Remove std_fs namespace from unit test

* Format more files in tests directory

* Add unit tests

* Update documentation

* Fix GDB pretty printer

* fixup! Add namespace macros

* Derive ABI prefix from NLOHMANN_JSON_VERSION_*
2022-07-30 21:59:13 +02:00
..
fuzzer-driver_afl.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
fuzzer-parse_bjdata.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
fuzzer-parse_bson.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
fuzzer-parse_cbor.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
fuzzer-parse_json.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
fuzzer-parse_msgpack.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
fuzzer-parse_ubjson.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
make_test_data_available.hpp Add error message if test suite cannot be found (#3585) 2022-07-20 12:41:33 +02:00
test_utils.hpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-32bit.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-algorithms.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-allocator.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-alt-string.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-assert_macro.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-binary_formats.cpp Add error message if test suite cannot be found (#3585) 2022-07-20 12:41:33 +02:00
unit-bjdata.cpp Add error message if test suite cannot be found (#3585) 2022-07-20 12:41:33 +02:00
unit-bson.cpp Add error message if test suite cannot be found (#3585) 2022-07-20 12:41:33 +02:00
unit-byte_container_with_subtype.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-capacity.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-cbor.cpp Add error message if test suite cannot be found (#3585) 2022-07-20 12:41:33 +02:00
unit-class_const_iterator.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-class_iterator.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-class_lexer.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-class_parser.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-comparison.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-concepts.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-constructor1.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-constructor2.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-convenience.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-conversions.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-deserialization.cpp Make sure iterator_input_adapter advances iterators correctly (#3548) 2022-07-23 14:36:10 +02:00
unit-diagnostics.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-disabled_exceptions.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-element_access1.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-element_access2.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-hash.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-inspection.cpp Add error message if test suite cannot be found (#3585) 2022-07-20 12:41:33 +02:00
unit-items.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-iterators1.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-iterators2.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-json_patch.cpp Fix patch::add creating nonexistent parents (#3628) 2022-07-30 21:23:55 +02:00
unit-json_pointer.cpp Add operator<<(json_pointer) (#3601) 2022-07-28 22:12:23 +02:00
unit-large_json.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-merge_patch.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-meta.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-modifiers.cpp Use swap() by ADL (#3609) 2022-07-28 21:51:45 +02:00
unit-msgpack.cpp Add error message if test suite cannot be found (#3585) 2022-07-20 12:41:33 +02:00
unit-noexcept.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-ordered_json.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-ordered_map.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-pointer_access.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-readme.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-reference_access.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-regression1.cpp Add error message if test suite cannot be found (#3585) 2022-07-20 12:41:33 +02:00
unit-regression2.cpp Add versioned, ABI-tagged inline namespace and namespace macros (#3590) 2022-07-30 21:59:13 +02:00
unit-serialization.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-testsuites.cpp Add error message if test suite cannot be found (#3585) 2022-07-20 12:41:33 +02:00
unit-to_chars.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-ubjson.cpp Add error message if test suite cannot be found (#3585) 2022-07-20 12:41:33 +02:00
unit-udt_macro.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-udt.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-unicode1.cpp Add error message if test suite cannot be found (#3585) 2022-07-20 12:41:33 +02:00
unit-unicode2.cpp Add error message if test suite cannot be found (#3585) 2022-07-20 12:41:33 +02:00
unit-unicode3.cpp Add error message if test suite cannot be found (#3585) 2022-07-20 12:41:33 +02:00
unit-unicode4.cpp Add error message if test suite cannot be found (#3585) 2022-07-20 12:41:33 +02:00
unit-unicode5.cpp Add error message if test suite cannot be found (#3585) 2022-07-20 12:41:33 +02:00
unit-user_defined_input.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit-wstring.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00
unit.cpp Use REUSE framework (#3546) 2022-07-20 12:38:07 +02:00