Debian Codegraph @

debian/patches/6b9199382bca57d5c85609c54f70279f0d5e7f25.patch

raw
1 From 6b9199382bca57d5c85609c54f70279f0d5e7f25 Mon Sep 17 00:00:00 2001
2 From: Niels Lohmann <[email protected]>
3 Date: Sun, 27 Apr 2025 18:18:57 +0200
4 Subject: [PATCH] Add missing header (#4763)
5
6 * :bug: add missing header
7
8 Signed-off-by: Niels Lohmann <[email protected]>
9
10 * :rotating_light: fix warning
11
12 Signed-off-by: Niels Lohmann <[email protected]>
13
14 * :rotating_light: fix warning
15
16 Signed-off-by: Niels Lohmann <[email protected]>
17
18 ---------
19
20 Signed-off-by: Niels Lohmann <[email protected]>
21 ---
22 docs/mkdocs/docs/community/quality_assurance.md | 1 +
23 include/nlohmann/detail/conversions/from_json.hpp | 4 ++++
24 single_include/nlohmann/json.hpp | 4 ++++
25 tests/src/unit-regression2.cpp | 2 +-
26 tests/src/unit-user_defined_input.cpp | 4 ++--
27 5 files changed, 12 insertions(+), 3 deletions(-)
28
29 #diff --git a/docs/mkdocs/docs/community/quality_assurance.md b/docs/mkdocs/docs/community/quality_assurance.md
30 #index 82e03211d4..29da7a512b 100644
31 #--- a/docs/mkdocs/docs/community/quality_assurance.md
32 #+++ b/docs/mkdocs/docs/community/quality_assurance.md
33 #@@ -76,6 +76,7 @@ violations will result in a failed build.
34 # | GNU 13.3.0 | x86_64 | Ubuntu 22.04.1 LTS | GitHub |
35 # | GNU 14.2.0 | x86_64 | Ubuntu 22.04.1 LTS | GitHub |
36 # | GNU 14.2.0 | arm64 | Linux 6.1.100 | Cirrus CI |
37 #+ | GNU 15.1.0 | x86_64 | Ubuntu 22.04.1 LTS | GitHub |
38 # | icpc (ICC) 2021.5.0 20211109 | x86_64 | Ubuntu 20.04.3 LTS | GitHub |
39 # | MSVC 19.0.24241.7 | x86 | Windows 8.1 | AppVeyor |
40 # | MSVC 19.16.27035.0 | x86 | Windows-10 (Build 14393) | AppVeyor |
41 diff --git a/include/nlohmann/detail/conversions/from_json.hpp b/include/nlohmann/detail/conversions/from_json.hpp
42 index 3a24a6f4d2..adb461c7af 100644
43 --- a/include/nlohmann/detail/conversions/from_json.hpp
44 +++ b/include/nlohmann/detail/conversions/from_json.hpp
45 @@ -34,6 +34,10 @@
46 #include <optional> // optional
47 #endif
48
49 +#if JSON_HAS_FILESYSTEM || JSON_HAS_EXPERIMENTAL_FILESYSTEM
50 + #include <string_view> // u8string_view
51 +#endif
52 +
53 NLOHMANN_JSON_NAMESPACE_BEGIN
54 namespace detail
55 {
56 diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp
57 index 93e5983cf1..374b54ecbc 100644
58 --- a/single_include/nlohmann/json.hpp
59 +++ b/single_include/nlohmann/json.hpp
60 @@ -4819,6 +4819,10 @@ NLOHMANN_JSON_NAMESPACE_END
61 #include <optional> // optional
62 #endif
63
64 +#if JSON_HAS_FILESYSTEM || JSON_HAS_EXPERIMENTAL_FILESYSTEM
65 + #include <string_view> // u8string_view
66 +#endif
67 +
68 NLOHMANN_JSON_NAMESPACE_BEGIN
69 namespace detail
70 {
71 diff --git a/tests/src/unit-regression2.cpp b/tests/src/unit-regression2.cpp
72 index 509abe9860..33e913cd22 100644
73 --- a/tests/src/unit-regression2.cpp
74 +++ b/tests/src/unit-regression2.cpp
75 @@ -396,7 +396,7 @@ struct Example_3810
76 Example_3810() = default;
77 };
78
79 -NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(Example_3810, bla); // NOLINT(misc-use-internal-linkage)
80 +NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(Example_3810, bla) // NOLINT(misc-use-internal-linkage)
81
82 /////////////////////////////////////////////////////////////////////
83 // for #4740
84 diff --git a/tests/src/unit-user_defined_input.cpp b/tests/src/unit-user_defined_input.cpp
85 index befc4b17af..5115e8fd30 100644
86 --- a/tests/src/unit-user_defined_input.cpp
87 +++ b/tests/src/unit-user_defined_input.cpp
88 @@ -60,12 +60,12 @@ TEST_CASE("Custom container member begin/end")
89 {
90 const char* data;
91
92 - const char* begin() const
93 + const char* begin() const noexcept
94 {
95 return data;
96 }
97
98 - const char* end() const
99 + const char* end() const noexcept
100 {
101 return data + strlen(data); // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic)
102 }