Do not use #pragma once
Fixes #3974 by using the standard-compliant `#ifndef #define #endif` pattern instead of `#pragma once`.
This commit is contained in:
parent
6af826d0bd
commit
e1fca0b1ae
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_ADL_SERIALIZER_HPP
|
||||
#define INCLUDE_NLOHMANN_ADL_SERIALIZER_HPP
|
||||
|
||||
#include <utility>
|
||||
|
||||
@ -53,3 +54,5 @@ struct adl_serializer
|
||||
};
|
||||
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_ADL_SERIALIZER_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_BYTE_CONTAINER_WITH_SUBTYPE_HPP
|
||||
#define INCLUDE_NLOHMANN_BYTE_CONTAINER_WITH_SUBTYPE_HPP
|
||||
|
||||
#include <cstdint> // uint8_t, uint64_t
|
||||
#include <tuple> // tie
|
||||
@ -101,3 +102,5 @@ class byte_container_with_subtype : public BinaryType
|
||||
};
|
||||
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_BYTE_CONTAINER_WITH_SUBTYPE_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_ABI_MACROS_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_ABI_MACROS_HPP
|
||||
|
||||
// This file contains all macro definitions affecting or depending on the ABI
|
||||
|
||||
@ -98,3 +99,5 @@
|
||||
} /* namespace (inline namespace) NOLINT(readability/namespace) */ \
|
||||
} // namespace nlohmann
|
||||
#endif
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_ABI_MACROS_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_FROM_JSON_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_FROM_JSON_HPP
|
||||
|
||||
#include <algorithm> // transform
|
||||
#include <array> // array
|
||||
@ -495,3 +496,5 @@ JSON_INLINE_VARIABLE constexpr const auto& from_json = // NOLINT(misc-definition
|
||||
#endif
|
||||
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_FROM_JSON_HPP
|
||||
|
||||
@ -7,7 +7,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_TO_CHARS_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_TO_CHARS_HPP
|
||||
|
||||
#include <array> // array
|
||||
#include <cmath> // signbit, isfinite
|
||||
@ -1116,3 +1117,5 @@ char* to_chars(char* first, const char* last, FloatType value)
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_TO_CHARS_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_TO_JSON_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_TO_JSON_HPP
|
||||
|
||||
#include <algorithm> // copy
|
||||
#include <iterator> // begin, end
|
||||
@ -444,3 +445,5 @@ JSON_INLINE_VARIABLE constexpr const auto& to_json = // NOLINT(misc-definitions-
|
||||
#endif
|
||||
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_CONVERSIONS_TO_JSON_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_EXCEPTIONS_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_EXCEPTIONS_HPP
|
||||
|
||||
#include <cstddef> // nullptr_t
|
||||
#include <exception> // exception
|
||||
@ -256,3 +257,5 @@ class other_error : public exception
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_EXCEPTIONS_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_HASH_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_HASH_HPP
|
||||
|
||||
#include <cstdint> // uint8_t
|
||||
#include <cstddef> // size_t
|
||||
@ -127,3 +128,5 @@ std::size_t hash(const BasicJsonType& j)
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_HASH_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_INPUT_BINARY_READER_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_INPUT_BINARY_READER_HPP
|
||||
|
||||
#include <algorithm> // generate_n
|
||||
#include <array> // array
|
||||
@ -3008,3 +3009,5 @@ class binary_reader
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_INPUT_BINARY_READER_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_INPUT_INPUT_ADAPTERS_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_INPUT_INPUT_ADAPTERS_HPP
|
||||
|
||||
#include <array> // array
|
||||
#include <cstddef> // size_t
|
||||
@ -492,3 +493,5 @@ class span_input_adapter
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_INPUT_INPUT_ADAPTERS_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_INPUT_JSON_SAX_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_INPUT_JSON_SAX_HPP
|
||||
|
||||
#include <cstddef>
|
||||
#include <string> // string
|
||||
@ -726,3 +727,5 @@ class json_sax_acceptor
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_INPUT_JSON_SAX_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_INPUT_LEXER_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_INPUT_LEXER_HPP
|
||||
|
||||
#include <array> // array
|
||||
#include <clocale> // localeconv
|
||||
@ -1630,3 +1631,5 @@ scan_number_done:
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_INPUT_LEXER_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_INPUT_PARSER_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_INPUT_PARSER_HPP
|
||||
|
||||
#include <cmath> // isfinite
|
||||
#include <cstdint> // uint8_t
|
||||
@ -505,3 +506,5 @@ class parser
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_INPUT_PARSER_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_INPUT_POSITION_T_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_INPUT_POSITION_T_HPP
|
||||
|
||||
#include <cstddef> // size_t
|
||||
|
||||
@ -35,3 +36,5 @@ struct position_t
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_INPUT_POSITION_T_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_ITERATORS_INTERNAL_ITERATOR_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_ITERATORS_INTERNAL_ITERATOR_HPP
|
||||
|
||||
#include <nlohmann/detail/abi_macros.hpp>
|
||||
#include <nlohmann/detail/iterators/primitive_iterator.hpp>
|
||||
@ -33,3 +34,5 @@ template<typename BasicJsonType> struct internal_iterator
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_ITERATORS_INTERNAL_ITERATOR_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITER_IMPL_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITER_IMPL_HPP
|
||||
|
||||
#include <iterator> // iterator, random_access_iterator_tag, bidirectional_iterator_tag, advance, next
|
||||
#include <type_traits> // conditional, is_const, remove_const
|
||||
@ -749,3 +750,5 @@ class iter_impl // NOLINT(cppcoreguidelines-special-member-functions,hicpp-speci
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITER_IMPL_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITERATION_PROXY_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITERATION_PROXY_HPP
|
||||
|
||||
#include <cstddef> // size_t
|
||||
#include <iterator> // input_iterator_tag
|
||||
@ -240,3 +241,5 @@ class tuple_element<N, ::nlohmann::detail::iteration_proxy_value<IteratorType >>
|
||||
template <typename IteratorType>
|
||||
inline constexpr bool ::std::ranges::enable_borrowed_range<::nlohmann::detail::iteration_proxy<IteratorType>> = true;
|
||||
#endif
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITERATION_PROXY_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITERATOR_TRAITS_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITERATOR_TRAITS_HPP
|
||||
|
||||
#include <iterator> // random_access_iterator_tag
|
||||
|
||||
@ -59,3 +60,5 @@ struct iterator_traits<T*, enable_if_t<std::is_object<T>::value>>
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_ITERATORS_ITERATOR_TRAITS_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_ITERATORS_JSON_REVERSE_ITERATOR_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_ITERATORS_JSON_REVERSE_ITERATOR_HPP
|
||||
|
||||
#include <cstddef> // ptrdiff_t
|
||||
#include <iterator> // reverse_iterator
|
||||
@ -128,3 +129,5 @@ class json_reverse_iterator : public std::reverse_iterator<Base>
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_ITERATORS_JSON_REVERSE_ITERATOR_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_ITERATORS_PRIMITIVE_ITERATOR_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_ITERATORS_PRIMITIVE_ITERATOR_HPP
|
||||
|
||||
#include <cstddef> // ptrdiff_t
|
||||
#include <limits> // numeric_limits
|
||||
@ -130,3 +131,5 @@ class primitive_iterator_t
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_ITERATORS_PRIMITIVE_ITERATOR_HPP
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_JSON_CUSTOM_BASE_CLASS_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_JSON_CUSTOM_BASE_CLASS_HPP
|
||||
|
||||
#include <type_traits> // conditional, is_same
|
||||
|
||||
@ -29,3 +30,5 @@ using json_base_class = typename std::conditional <
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_JSON_CUSTOM_BASE_CLASS_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_JSON_POINTER_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_JSON_POINTER_HPP
|
||||
|
||||
#include <algorithm> // all_of
|
||||
#include <cctype> // isdigit
|
||||
@ -986,3 +987,5 @@ inline bool operator<(const json_pointer<RefStringTypeLhs>& lhs,
|
||||
#endif
|
||||
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_JSON_POINTER_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_JSON_REF_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_JSON_REF_HPP
|
||||
|
||||
#include <initializer_list>
|
||||
#include <utility>
|
||||
@ -76,3 +77,5 @@ class json_ref
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_JSON_REF_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_MACRO_SCOPE_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_MACRO_SCOPE_HPP
|
||||
|
||||
#include <utility> // declval, pair
|
||||
#include <nlohmann/detail/meta/detected.hpp>
|
||||
@ -467,3 +468,5 @@
|
||||
#ifndef JSON_USE_GLOBAL_UDLS
|
||||
#define JSON_USE_GLOBAL_UDLS 1
|
||||
#endif
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_MACRO_SCOPE_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_MACRO_UNSCOPE_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_MACRO_UNSCOPE_HPP
|
||||
|
||||
// restore clang diagnostic settings
|
||||
#if defined(__clang__)
|
||||
@ -42,3 +43,5 @@
|
||||
#endif
|
||||
|
||||
#include <nlohmann/thirdparty/hedley/hedley_undef.hpp>
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_MACRO_UNSCOPE_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_META_CALL_STD_BEGIN_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_META_CALL_STD_BEGIN_HPP
|
||||
|
||||
#include <nlohmann/detail/macro_scope.hpp>
|
||||
|
||||
@ -15,3 +16,5 @@ NLOHMANN_JSON_NAMESPACE_BEGIN
|
||||
NLOHMANN_CAN_CALL_STD_FUNC_IMPL(begin);
|
||||
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_META_CALL_STD_BEGIN_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_META_CALL_STD_END_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_META_CALL_STD_END_HPP
|
||||
|
||||
#include <nlohmann/detail/macro_scope.hpp>
|
||||
|
||||
@ -15,3 +16,5 @@ NLOHMANN_JSON_NAMESPACE_BEGIN
|
||||
NLOHMANN_CAN_CALL_STD_FUNC_IMPL(end);
|
||||
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_META_CALL_STD_END_HPP
|
||||
|
||||
@ -7,7 +7,8 @@
|
||||
// SPDX-FileCopyrightText: 2018 The Abseil Authors
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_META_CPP_FUTURE_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_META_CPP_FUTURE_HPP
|
||||
|
||||
#include <array> // array
|
||||
#include <cstddef> // size_t
|
||||
@ -169,3 +170,5 @@ inline constexpr std::array<T, sizeof...(Args)> make_array(Args&& ... args)
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_META_CPP_FUTURE_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_META_DETECTED_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_META_DETECTED_HPP
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
@ -68,3 +69,5 @@ using is_detected_convertible =
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_META_DETECTED_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_META_IDENTITY_TAG_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_META_IDENTITY_TAG_HPP
|
||||
|
||||
#include <nlohmann/detail/abi_macros.hpp>
|
||||
|
||||
@ -19,3 +20,5 @@ template <class T> struct identity_tag {};
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_META_IDENTITY_TAG_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_META_IS_SAX_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_META_IS_SAX_HPP
|
||||
|
||||
#include <cstdint> // size_t
|
||||
#include <utility> // declval
|
||||
@ -157,3 +158,5 @@ struct is_sax_static_asserts
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_META_IS_SAX_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_META_STD_FS_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_META_STD_FS_HPP
|
||||
|
||||
#include <nlohmann/detail/macro_scope.hpp>
|
||||
|
||||
@ -27,3 +28,5 @@ namespace std_fs = std::filesystem;
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
#endif
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_META_STD_FS_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_META_TYPE_TRAITS_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_META_TYPE_TRAITS_HPP
|
||||
|
||||
#include <limits> // numeric_limits
|
||||
#include <type_traits> // false_type, is_constructible, is_integral, is_same, true_type
|
||||
@ -738,3 +739,5 @@ struct is_transparent : bool_constant<impl::is_transparent<T>()> {};
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_META_TYPE_TRAITS_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_META_VOID_T_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_META_VOID_T_HPP
|
||||
|
||||
#include <nlohmann/detail/abi_macros.hpp>
|
||||
|
||||
@ -22,3 +23,5 @@ template<typename ...Ts> using void_t = typename make_void<Ts...>::type;
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_META_VOID_T_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_OUTPUT_BINARY_WRITER_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_OUTPUT_BINARY_WRITER_HPP
|
||||
|
||||
#include <algorithm> // reverse
|
||||
#include <array> // array
|
||||
@ -1836,3 +1837,5 @@ class binary_writer
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_OUTPUT_BINARY_WRITER_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_OUTPUT_OUTPUT_ADAPTERS_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_OUTPUT_OUTPUT_ADAPTERS_HPP
|
||||
|
||||
#include <algorithm> // copy
|
||||
#include <cstddef> // size_t
|
||||
@ -145,3 +146,5 @@ class output_adapter
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_OUTPUT_OUTPUT_ADAPTERS_HPP
|
||||
|
||||
@ -7,7 +7,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_OUTPUT_SERIALIZER_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_OUTPUT_SERIALIZER_HPP
|
||||
|
||||
#include <algorithm> // reverse, remove, fill, find, none_of
|
||||
#include <array> // array
|
||||
@ -986,3 +987,5 @@ class serializer
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_OUTPUT_SERIALIZER_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_STRING_CONCAT_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_STRING_CONCAT_HPP
|
||||
|
||||
#include <cstring> // strlen
|
||||
#include <string> // string
|
||||
@ -144,3 +145,5 @@ inline OutStringType concat(Args && ... args)
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_STRING_CONCAT_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_STRING_ESCAPE_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_STRING_ESCAPE_HPP
|
||||
|
||||
#include <nlohmann/detail/abi_macros.hpp>
|
||||
|
||||
@ -70,3 +71,5 @@ static void unescape(StringType& s)
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_STRING_ESCAPE_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_VALUE_T_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_VALUE_T_HPP
|
||||
|
||||
#include <array> // array
|
||||
#include <cstddef> // size_t
|
||||
@ -116,3 +117,5 @@ inline bool operator<(const value_t lhs, const value_t rhs) noexcept
|
||||
|
||||
} // namespace detail
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_VALUE_T_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_ORDERED_MAP_HPP
|
||||
#define INCLUDE_NLOHMANN_ORDERED_MAP_HPP
|
||||
|
||||
#include <functional> // equal_to, less
|
||||
#include <initializer_list> // initializer_list
|
||||
@ -357,3 +358,5 @@ private:
|
||||
};
|
||||
|
||||
NLOHMANN_JSON_NAMESPACE_END
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_ORDERED_MAP_HPP
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_THIRDPARTY_HEDLEY_HEDLEY_HPP
|
||||
#define INCLUDE_NLOHMANN_THIRDPARTY_HEDLEY_HEDLEY_HPP
|
||||
|
||||
// __ _____ _____ _____
|
||||
// __| | __| | | | JSON for Modern C++
|
||||
@ -2043,3 +2044,5 @@ JSON_HEDLEY_DIAGNOSTIC_POP
|
||||
#define JSON_HEDLEY_CLANG_HAS_WARNING(warning) JSON_HEDLEY_HAS_WARNING(warning)
|
||||
|
||||
#endif /* !defined(JSON_HEDLEY_VERSION) || (JSON_HEDLEY_VERSION < X) */
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_THIRDPARTY_HEDLEY_HEDLEY_HPP
|
||||
|
||||
@ -6,7 +6,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#pragma once
|
||||
#ifndef INCLUDE_NLOHMANN_THIRDPARTY_HEDLEY_HEDLEY_UNDEF_HPP
|
||||
#define INCLUDE_NLOHMANN_THIRDPARTY_HEDLEY_HEDLEY_UNDEF_HPP
|
||||
|
||||
#undef JSON_HEDLEY_ALWAYS_INLINE
|
||||
#undef JSON_HEDLEY_ARM_VERSION
|
||||
@ -156,3 +157,5 @@
|
||||
#undef JSON_HEDLEY_WARN_UNUSED_RESULT
|
||||
#undef JSON_HEDLEY_WARN_UNUSED_RESULT_MSG
|
||||
#undef JSON_HEDLEY_FALL_THROUGH
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_THIRDPARTY_HEDLEY_HEDLEY_UNDEF_HPP
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -24,7 +24,8 @@
|
||||
// SPDX-FileCopyrightText: 2013-2022 Niels Lohmann <https://nlohmann.me>
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
|
||||
#ifndef INCLUDE_NLOHMANN_DETAIL_ABI_MACROS_HPP
|
||||
#define INCLUDE_NLOHMANN_DETAIL_ABI_MACROS_HPP
|
||||
|
||||
// This file contains all macro definitions affecting or depending on the ABI
|
||||
|
||||
@ -117,6 +118,8 @@
|
||||
} // namespace nlohmann
|
||||
#endif
|
||||
|
||||
#endif // INCLUDE_NLOHMANN_DETAIL_ABI_MACROS_HPP
|
||||
|
||||
|
||||
/*!
|
||||
@brief namespace for Niels Lohmann
|
||||
|
||||
Loading…
Reference in New Issue
Block a user