Niels Lohmann
e9797ace09
🚨 fix useless-cast warnings
2021-08-08 08:56:45 +08:00
Louis Dionne
d9562c1075
Properly constrain the basic_json conversion operator
...
Fixes #2491
2021-08-08 08:56:45 +08:00
Niels Lohmann
a281280b7a
CMake cleanup ( #2885 )
...
* 🔥 clean CMake files and Makefile
* 💡 update documentation
2021-08-08 08:56:45 +08:00
Niels Lohmann
8da9e251b7
Refactor Unicode tests ( #2889 )
...
* ♻️ split Unicode tests
2021-08-08 08:56:45 +08:00
Niels Lohmann
9661e66975
👥 update contributors
2021-08-08 08:56:45 +08:00
Niels Lohmann
2e82056152
⬆️ update Doxyfile
2021-08-08 08:56:45 +08:00
Niels Lohmann
6a810733d5
🎨 reindent code
2021-08-08 08:56:45 +08:00
Niels Lohmann
7e63060008
📝 fix GIF examples #2457
2021-08-08 08:56:45 +08:00
Niels Lohmann
740c896609
📝 add support section
2021-08-08 08:56:44 +08:00
Niels Lohmann
fdb0f072cd
⚡ avoid string in case of empty objects
2021-08-08 08:56:44 +08:00
Niels Lohmann
3ff25174b2
📝 restructure README
2021-08-08 08:56:44 +08:00
Niels Lohmann
fc0a1381ef
📝 update documentation
2021-08-08 08:56:44 +08:00
Niels Lohmann
1f1b6a700b
✅ add test for JSON_SystemInclude flag
2021-08-08 08:56:44 +08:00
Jean-Philippe Lemieux
8e077ae8f1
Add a cmake option to use SYSTEM in target_include_directories
...
Without SYSTEM static analysis like clang-tidy raise warnings on
json.hpp. This is not desirable for projects embedding nlohmann_json
Tests:
- Validated that without the option OFF the warnings are raised as
before
- Validated that with the option ON the warnings are silenced
2021-08-08 08:56:44 +08:00
Niels Lohmann
95384542b7
👷 fix Codacity badge
2021-08-08 08:56:44 +08:00
Niels Lohmann
d65ee13803
🚨 suppress warning
2021-08-08 08:56:44 +08:00
Niels Lohmann
2668c896c0
🚨 fix format-truncation warning #2572
2021-08-08 08:54:56 +08:00
Niels Lohmann
2d994d9452
🔨 remove noexcept annotation
2021-08-07 21:46:26 +08:00
Niels Lohmann
94e87ff6af
💡 add comment to describe j.m_value.destroy(j.m_type) calls
2021-08-07 21:46:26 +08:00
Niels Lohmann
519dcc5029
🐛 fix leak for all types
2021-08-07 21:46:26 +08:00
Niels Lohmann
3675770d22
🐛 fix leak for strings
2021-08-07 21:46:26 +08:00
Niels Lohmann
88ea375f39
🐛 fix leak for strings
2021-08-07 21:46:26 +08:00
Niels Lohmann
16758b933b
🐛 fix leak for strings
2021-08-07 21:46:26 +08:00
Niels Lohmann
5bbbe5fbfa
🐛 fix leak for strings
2021-08-07 21:46:26 +08:00
Niels Lohmann
e77ae77d7e
♻️ simplify destroy() function for primitive types
2021-08-07 21:46:26 +08:00
Niels Lohmann
97eb6414e4
✅ add regression test
2021-08-07 21:46:25 +08:00
Niels Lohmann
8b643e4362
🚨 fix warnings
2021-08-07 21:46:25 +08:00
Niels Lohmann
45c77b1c72
♻️ move capacity check to set_parent function
2021-08-07 21:46:25 +08:00
Niels Lohmann
44a7dceb04
🔥 remove duplicated line
2021-08-07 21:46:25 +08:00
Niels Lohmann
a5fd035506
🐛 fix logics
2021-08-07 21:46:25 +08:00
Niels Lohmann
714d9f56f8
🐛 fix assertion failure #2838
2021-08-07 21:46:25 +08:00
Rafail Giavrimis
23803e267a
Specified git branch for google benchmark fetch
...
The default branch was renamed from "master" to "main", which breaks the cloning process.
2021-08-07 21:46:25 +08:00
Niels Lohmann
a4c9fa06ec
⚗️ fix coverage
2021-08-07 21:46:25 +08:00
Niels Lohmann
3363fc8aab
🚨 suppress missingReturn warnings
2021-08-07 21:46:25 +08:00
Niels Lohmann
1d7639a6f6
📝 document JSON_NO_IO macro #2842
2021-08-07 21:46:25 +08:00
Niels Lohmann
b475990b00
📝 add comment for handling of negative zeros #2854
2021-08-07 21:46:25 +08:00
David Pfahler
eeb48dd0a7
fixed amalgation file for #2728
2021-08-07 21:46:25 +08:00
David Pfahler
5a499323a2
include io only if JSON_NO_IO is not set for #2728
2021-08-07 21:46:25 +08:00
David Pfahler
378fbda911
fixed amalgation file for #2728
2021-08-07 21:46:25 +08:00
David Pfahler
6c99b750da
Fixes #2728
...
includes some macros to be defined for using without file io.
2021-08-07 21:46:25 +08:00
Niels Lohmann
69de3eb786
📝 fix documentation ( #2845 )
2021-08-07 21:46:25 +08:00
justanotheranonymoususer
44201db12b
Update arbitrary_types.md
2021-08-07 21:46:25 +08:00
justanotheranonymoususer
7ea27324c0
Update README.md
2021-08-07 21:46:25 +08:00
justanotheranonymoususer
a5104d1229
Consistency with using in README.md
2021-08-07 21:46:25 +08:00
Chaoya Li
db0287d2ef
trigger upstream CI
2021-07-21 08:43:45 +08:00
Chaoya Li
98ac25b2ce
Add const to getters for macro tests
2021-06-28 21:02:29 +08:00
Chaoya Li
f452a92c07
Added test for serialization of default constructed object
2021-06-28 18:35:02 +08:00
Chaoya Li
35c37c8ab5
Renamed default_obj in to avoid name clashes
2021-06-28 18:06:46 +08:00
Chaoya Li
d8ba9f43b0
Updated docs for NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT and NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT
2021-06-28 18:02:14 +08:00
Chaoya Li
5664233fe4
Rephrased docs for NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT and NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT
2021-06-26 05:57:45 +08:00