Benoit Blanchon
62dea9d364
Reformat CMake files
2023-02-10 17:02:51 +01:00
Benoit Blanchon
94b2b3f9ce
Run all tests with C++11 enabled ( #1820 )
2023-02-10 17:02:51 +01:00
Benoit Blanchon
0f85a55cac
Implement VariantRefBase with a CRTP
2022-12-05 21:00:24 +01:00
Benoit Blanchon
cf4436e581
Extract VariantProxy from ElementProxy and MemberProxy
2022-08-30 10:25:03 +02:00
Benoit Blanchon
8002722f3b
Clang-format: set DerivePointerAlignment to false
2022-08-09 16:52:17 +02:00
Benoit Blanchon
758580bfb6
Rename addElement() to add()
2022-07-07 14:32:43 +02:00
Benoit Blanchon
cd8373ad32
Change link() to shallowCopy() (issue #1343 )
...
Instead of storing a pointer, the function copies the `VariantData`.
Benefits:
* smaller code
* no impact on programs that don't use this feature
Drawbacks:
* changes to the original variant are not always reflected on the copy
* modifying the original from the shallow copy leads to UB
2022-07-05 17:07:43 +02:00
Benoit Blanchon
3d6c328a4f
Add JsonVariant::link() ( resolves #1343 )
2022-04-27 15:08:13 +02:00
Benoit Blanchon
1d103a1528
MemberProxy: move tests for createNestedArray() and createNestedObject()
2022-04-27 15:07:26 +02:00
Benoit Blanchon
8d9504239b
Fix comparisons operators with const JsonDocument&
2022-04-05 10:12:17 +02:00
Benoit Blanchon
bf5d0c790c
Add implicit conversion from JsonDocument to JsonVariant
2022-03-23 17:17:35 +01:00
Benoit Blanchon
f4379f97ae
Format code with clang-format
2022-03-23 17:17:35 +01:00
Benoit Blanchon
3dc67c5663
Add memoryUsage() to ElementProxy and MemberProxy ( fixes #1730 )
2022-03-19 12:11:40 +01:00
Benoit Blanchon
89ed54362b
Fix -Wsign-conversion on GCC 8 ( fixes #1715 )
2022-02-25 10:28:42 +01:00
Benoit Blanchon
ee12155617
Fix crash when adding an object member in a too small JsonDocument
2022-01-13 11:52:45 +01:00
Benoit Blanchon
af18994deb
Update copyright notice
2022-01-01 10:01:05 +01:00
Benoit Blanchon
e16767af92
Avoid pool reallocation in BasicJsonDocument's copy assignment
2021-12-16 14:42:54 +01:00
Benoit Blanchon
3166356484
Test capacity after calling BasicJsonDocument's copy assignment
2021-12-16 14:28:30 +01:00
Benoit Blanchon
b06bbd9d2a
Fix inconsistent pool size in BasicJsonDocument's copy constructor
2021-11-23 10:49:35 +01:00
Benoit Blanchon
2df1bc7d4f
Fix call of overloaded 'swap(...)' is ambiguous ( fixes #1678 )
2021-11-23 10:47:31 +01:00
Benoit Blanchon
14639f129e
CMake: added empty line at end of each file
2021-06-26 11:29:15 +02:00
Benoit Blanchon
7be0c2c650
CMake: added labels to tests
2021-04-25 11:38:19 +02:00
Benoit Blanchon
d5d2209d09
Added "https://" prefix to all URLs so they are clickable in VS Code
2021-03-29 19:35:25 +02:00
Benoit Blanchon
97b7161d78
Update copyright notice for 2021
2021-01-25 09:14:15 +01:00
Benoit Blanchon
10ec0f21b0
Fixed operator|(MemberProxy, JsonObject) ( fixes #1415 )
2020-10-23 10:48:33 +02:00
Benoit Blanchon
ff66182dc6
Gathered the tests of MemberProxy in one file
2020-10-22 09:37:05 +02:00
Benoit Blanchon
d02ce2f1bb
Gathered the tests of ElementProxy in one file
2020-10-22 09:37:05 +02:00
Benoit Blanchon
8d37939086
Added JsonDocument::overflowed() ( closes #1358 )
2020-09-05 13:44:40 +02:00
Benoit Blanchon
764ff2cd53
Added string deduplication ( closes #1303 )
2020-07-21 20:15:31 +02:00
Benoit Blanchon
04c59985a1
Inverted dependency between MemoryPool and string adapters.
...
Inserted a null after each raw string in the pool.
2020-07-08 09:38:27 +02:00
Benoit Blanchon
dcf7eeef28
CMake: used link_libraries() instead of target_link_libraries()
2020-05-03 10:25:38 +02:00
Benoit Blanchon
1791dccbf2
Added CMake "install" target ( closes #1209 )
2020-04-07 21:43:10 +02:00
Benoit Blanchon
735bea1f47
Added StaticJsonDocument::garbageCollect()
2020-03-02 14:50:16 +01:00
Benoit Blanchon
0853b04589
Changed BasicJsonDocument's copy-constructor to copy the capacity
2020-03-02 12:39:29 +01:00
Benoit Blanchon
c1b3705df1
Added BasicJsonDocument::garbageCollect() (issue #1195 )
2020-03-01 18:01:55 +01:00
Benoit Blanchon
2540b4e01b
Added move-constructor and move-assignment to BasicJsonDocument
2020-03-01 17:24:29 +01:00
Benoit Blanchon
d8724e0a0b
Changed the array subscript to automatically add missing elements
2020-02-20 08:59:25 +01:00
Benoit Blanchon
0001dabfd1
Improved coverage of MemoryPool
2020-02-19 17:27:04 +01:00
Benoit Blanchon
d2a67f362f
Fixed "deprecated-copy" warning on GCC 9 ( fixes #1184 )
2020-02-13 11:07:40 +01:00
Benoit Blanchon
f9cfea244a
Updated copyright notice
2020-01-09 15:48:38 +01:00
Benoit Blanchon
062c1c13b5
Added BasicJsonDocument::shrinkToFit()
2019-11-07 15:40:20 +01:00
Benoit Blanchon
b47ac27ac6
Moved ancillary files to extras/ ( fixes #1011 )
2019-09-03 15:11:05 +02:00