Skip to content

Commit

Permalink
amalgamate with astyle==3.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fsandhei committed Oct 9, 2023
1 parent d4f9594 commit ee57287
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 19 deletions.
42 changes: 42 additions & 0 deletions single_include/nlohmann/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
// SPDX-License-Identifier: MIT



#include <utility>

// #include <nlohmann/detail/abi_macros.hpp>
Expand All @@ -53,6 +54,7 @@
// SPDX-License-Identifier: MIT



// This file contains all macro definitions affecting or depending on the ABI

#ifndef JSON_SKIP_LIBRARY_VERSION_CHECK
Expand Down Expand Up @@ -154,6 +156,7 @@
// SPDX-License-Identifier: MIT



#include <algorithm> // transform
#include <array> // array
#include <forward_list> // forward_list
Expand All @@ -176,6 +179,7 @@
// SPDX-License-Identifier: MIT



#include <cstddef> // nullptr_t
#include <exception> // exception
#if JSON_DIAGNOSTICS
Expand All @@ -195,6 +199,7 @@
// SPDX-License-Identifier: MIT



#include <array> // array
#include <cstddef> // size_t
#include <cstdint> // uint8_t
Expand All @@ -210,6 +215,7 @@
// SPDX-License-Identifier: MIT



#include <utility> // declval, pair
// #include <nlohmann/detail/meta/detected.hpp>
// __ _____ _____ _____
Expand All @@ -221,6 +227,7 @@
// SPDX-License-Identifier: MIT



#include <type_traits>

// #include <nlohmann/detail/meta/void_t.hpp>
Expand All @@ -233,6 +240,7 @@
// SPDX-License-Identifier: MIT



// #include <nlohmann/detail/abi_macros.hpp>


Expand Down Expand Up @@ -2932,6 +2940,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



// #include <nlohmann/detail/abi_macros.hpp>


Expand Down Expand Up @@ -3006,6 +3015,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <cstddef> // size_t

// #include <nlohmann/detail/abi_macros.hpp>
Expand Down Expand Up @@ -3048,6 +3058,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <array> // array
#include <cstddef> // size_t
#include <type_traits> // conditional, enable_if, false_type, integral_constant, is_constructible, is_integral, is_same, remove_cv, remove_reference, true_type
Expand Down Expand Up @@ -3220,6 +3231,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <limits> // numeric_limits
#include <type_traits> // false_type, is_constructible, is_integral, is_same, true_type
#include <utility> // declval
Expand All @@ -3235,6 +3247,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <iterator> // random_access_iterator_tag

// #include <nlohmann/detail/abi_macros.hpp>
Expand Down Expand Up @@ -3302,6 +3315,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



// #include <nlohmann/detail/macro_scope.hpp>


Expand All @@ -3321,6 +3335,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



// #include <nlohmann/detail/macro_scope.hpp>


Expand Down Expand Up @@ -4143,6 +4158,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <cstring> // strlen
#include <string> // string
#include <utility> // forward
Expand Down Expand Up @@ -4528,6 +4544,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



// #include <nlohmann/detail/abi_macros.hpp>


Expand All @@ -4551,6 +4568,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



// #include <nlohmann/detail/macro_scope.hpp>


Expand Down Expand Up @@ -5056,6 +5074,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <algorithm> // copy
#include <iterator> // begin, end
#include <string> // string
Expand All @@ -5075,6 +5094,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <cstddef> // size_t
#include <iterator> // input_iterator_tag
#include <string> // string, to_string
Expand Down Expand Up @@ -5795,6 +5815,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <cstdint> // uint8_t, uint64_t
#include <tuple> // tie
#include <utility> // move
Expand Down Expand Up @@ -5906,6 +5927,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <cstdint> // uint8_t
#include <cstddef> // size_t
#include <functional> // hash
Expand Down Expand Up @@ -6038,6 +6060,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <algorithm> // generate_n
#include <array> // array
#include <cmath> // ldexp
Expand All @@ -6063,6 +6086,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <array> // array
#include <cstddef> // size_t
#include <cstring> // strlen
Expand Down Expand Up @@ -6557,6 +6581,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <cstddef>
#include <string> // string
#include <utility> // move
Expand Down Expand Up @@ -7288,6 +7313,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <array> // array
#include <clocale> // localeconv
#include <cstddef> // size_t
Expand Down Expand Up @@ -8926,6 +8952,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <cstdint> // size_t
#include <utility> // declval
#include <string> // string
Expand Down Expand Up @@ -12077,6 +12104,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <cmath> // isfinite
#include <cstdint> // uint8_t
#include <functional> // function
Expand Down Expand Up @@ -12593,6 +12621,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



// #include <nlohmann/detail/abi_macros.hpp>

// #include <nlohmann/detail/iterators/primitive_iterator.hpp>
Expand All @@ -12605,6 +12634,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <cstddef> // ptrdiff_t
#include <limits> // numeric_limits

Expand Down Expand Up @@ -12763,6 +12793,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <iterator> // iterator, random_access_iterator_tag, bidirectional_iterator_tag, advance, next
#include <type_traits> // conditional, is_const, remove_const

Expand Down Expand Up @@ -13524,6 +13555,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <cstddef> // ptrdiff_t
#include <iterator> // reverse_iterator
#include <utility> // declval
Expand Down Expand Up @@ -13692,6 +13724,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <algorithm> // all_of
#include <cctype> // isdigit
#include <cerrno> // errno, ERANGE
Expand Down Expand Up @@ -14686,6 +14719,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <initializer_list>
#include <utility>

Expand Down Expand Up @@ -14777,6 +14811,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <algorithm> // reverse
#include <array> // array
#include <map> // map
Expand All @@ -14802,6 +14837,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <algorithm> // copy
#include <cstddef> // size_t
#include <iterator> // back_inserter
Expand Down Expand Up @@ -16770,6 +16806,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <algorithm> // reverse, remove, fill, find, none_of
#include <array> // array
#include <clocale> // localeconv, lconv
Expand All @@ -16794,6 +16831,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <array> // array
#include <cmath> // signbit, isfinite
#include <cstdint> // intN_t, uintN_t
Expand Down Expand Up @@ -18888,6 +18926,7 @@ NLOHMANN_JSON_NAMESPACE_END
// SPDX-License-Identifier: MIT



#include <functional> // equal_to, less
#include <initializer_list> // initializer_list
#include <iterator> // input_iterator_tag, iterator_traits
Expand Down Expand Up @@ -24442,6 +24481,7 @@ inline void swap(nlohmann::NLOHMANN_BASIC_JSON_TPL& j1, nlohmann::NLOHMANN_BASIC
// SPDX-License-Identifier: MIT



// restore clang diagnostic settings
#if defined(__clang__)
#pragma clang diagnostic pop
Expand Down Expand Up @@ -24486,6 +24526,7 @@ inline void swap(nlohmann::NLOHMANN_BASIC_JSON_TPL& j1, nlohmann::NLOHMANN_BASIC
// SPDX-License-Identifier: MIT



#undef JSON_HEDLEY_ALWAYS_INLINE
#undef JSON_HEDLEY_ARM_VERSION
#undef JSON_HEDLEY_ARM_VERSION_CHECK
Expand Down Expand Up @@ -24636,4 +24677,5 @@ inline void swap(nlohmann::NLOHMANN_BASIC_JSON_TPL& j1, nlohmann::NLOHMANN_BASIC
#undef JSON_HEDLEY_FALL_THROUGH



#endif // INCLUDE_NLOHMANN_JSON_HPP_
1 change: 1 addition & 0 deletions single_include/nlohmann/json_fwd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
// SPDX-License-Identifier: MIT



// This file contains all macro definitions affecting or depending on the ABI

#ifndef JSON_SKIP_LIBRARY_VERSION_CHECK
Expand Down
14 changes: 7 additions & 7 deletions tests/src/unit-bjdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,13 +339,13 @@ TEST_CASE("BJData")
std::vector<int32_t> const numbers
{
-32769,
-100000,
-1000000,
-10000000,
-100000000,
-1000000000,
-2147483647 - 1, // https://stackoverflow.com/a/29356002/266378
};
-100000,
-1000000,
-10000000,
-100000000,
-1000000000,
-2147483647 - 1, // https://stackoverflow.com/a/29356002/266378
};
for (const auto i : numbers)
{
CAPTURE(i)
Expand Down
14 changes: 7 additions & 7 deletions tests/src/unit-cbor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,13 @@ TEST_CASE("CBOR")
const std::vector<int64_t> numbers
{
-65537,
-100000,
-1000000,
-10000000,
-100000000,
-1000000000,
-4294967296,
};
-100000,
-1000000,
-10000000,
-100000000,
-1000000000,
-4294967296,
};
for (const auto i : numbers)
{
CAPTURE(i)
Expand Down
Loading

0 comments on commit ee57287

Please sign in to comment.