- 11 Jun, 2020 1 commit
-
-
Nikolay Baklicharov authored
-
- 10 Jun, 2020 2 commits
-
-
Billy Donahue authored
-
Billy Donahue authored
`std::isprint` is locale-specific and the JSON-spec is not. In particular, isprint('\t') is true in Windows CP1252. Has bitten others, e.g. https://github.com/laurikari/tre/issues/64 Fixes #1187
-
- 31 May, 2020 1 commit
-
-
Jordan Bayles authored
This patch fixes a fuzzing bug by resolving a bad fallthrough in the setComment logic. The result is that we get a proper error instead of an assert, making the library friendlier to use and less likely to cause issue for consumers. See related Chromium project bug: https://bugs.chromium.org/p/chromium/issues/detail?id=989851 Issue: 1182
-
- 29 May, 2020 1 commit
-
-
kabeer27 authored
* Fix heap-buffer-overflow in json_reader
-
- 21 May, 2020 1 commit
-
-
Billy Donahue authored
* Escape control chars even if emitting UTF8 See #1176 Fixes #1175 * review comments * fix test by stopping early enough to punt on utf8-input.
-
- 13 May, 2020 1 commit
-
-
Billy Donahue authored
-
- 12 May, 2020 1 commit
-
-
Rosen Penev authored
* [clang-tidy] change functions to static Found with readability-convert-member-functions-to-static Signed-off-by:
Rosen Penev <rosenp@gmail.com> * optimize JsonWriter::validate #1171 * do the same for json_reader Signed-off-by:
Rosen Penev <rosenp@gmail.com> * use std::any_of Also simplified two loops. Signed-off-by:
Rosen Penev <rosenp@gmail.com> Co-authored-by:
Billy Donahue <billy.donahue@gmail.com>
-
- 08 May, 2020 1 commit
-
-
Edward Brey authored
The `./` is needed before `vcpkg install jsoncpp` when installing with PowerShell.
-
- 30 Apr, 2020 3 commits
- 29 Apr, 2020 1 commit
-
-
Christopher Dunn authored
Improve CMake correctness and handling
-
- 28 Apr, 2020 13 commits
-
-
Joel Johnson authored
This is already covered by the toplevel CMake, which also serves to provide a consistent minimum version.
-
Joel Johnson authored
-
Joel Johnson authored
Commit aebc7faa added version checks for CMake compatibility. In reality, only the add_compile_definitions need the check - add_compile_options itself has been supported since 3.0. Tested and confirmed built successfully with CMake 3.8.0.
-
Joel Johnson authored
EXTRA_CXX_FLAGS is never defined, making this a noop. Further, COMPILE_OPTIONS is invalid to set as a DIRECTORY property.
-
Joel Johnson authored
-
Joel Johnson authored
Since the introduction of CMAKE_COMPILER_IS_GNUCXX CMake has suggested using CMAKE_CXX_COMPILER_ID for more general checks.
-
Joel Johnson authored
Since CMake has subdirectory variable scope, unilaterally set the CMAKE_CXX_STANDARD variable to use C++11. This covers cases with the library being included externally, both in cases of only C++98 being specified, as well as later versions being specified (since the CXX_STANDARD itself isn't a library dependency, only the PUBLIC target_compile_features on jsoncpp_lib). The previous direct check for C++98 is handled by requiring C++11 on this library; should the compiler being used not support C++11 then CMake will issue an error.
-
Joel Johnson authored
As of CMake 3.0 with CMP0042, MACOSX_RPATH is enabled by default. Since the validated version used by jsoncpp is later than 3.0, this is already covered.
-
Joel Johnson authored
-
Joel Johnson authored
-
Joel Johnson authored
The more general CMake way to handle library suffixing is to set CMAKE_<CONFIG>_POSTFIX, so setting the Debug output suffix name should be more correctly done by the caller or CMake configurer by setting the desired value in CMAKE_DEBUG_POSTFIX.
-
Chen authored
-
Chen authored
* Ignore bom at the beginning of the UTF-8 text
-
- 24 Apr, 2020 9 commits
-
-
bcsgh authored
-
Christopher Dunn authored
-
Christopher Dunn authored
-
Jordan Bayles authored
-
Jordan Bayles authored
A recent PR broken the JsonChecker tests by adding support for trailing commas. This didn't end up breaking the build, because those tests aren't run, except locally and only using CMake. This patch fixes the tests by adding exclusions for trailing comma tests, as well as updates Meson to run these tests as part of `ninja test`. See issue #1102.
-
Christopher Dunn authored
-
Christopher Dunn authored
-
Ben Boeckel authored
Required to get JSONCPP_USING_SECURE_MEMORY and the SecureAllocator available for the definition of Allocator.
-
Stefano Fiorentino authored
commits: ff923658c4d9f1492617557148369b34c71ba623 5907cef86ca699a842d0a8cad4c018b4da5d6e17
-
- 12 Apr, 2020 1 commit
-
-
Rosen Penev authored
* [clang-tidy] remove redundant string initialization Found with readability-redundant-string-init Signed-off-by:
Rosen Penev <rosenp@gmail.com> * [clang-tidy] switch to raw strings Easier to read. Found with modernize-raw-string-literal Signed-off-by:
Rosen Penev <rosenp@gmail.com> * [clang-tidy] fix performance issues Found with performance* Signed-off-by:
Rosen Penev <rosenp@gmail.com> * fix extra comma warnings Found with clang's -Wextra-semi-stmt Signed-off-by:
Rosen Penev <rosenp@gmail.com> * remove JSONCPP_OP_EXPLICIT This codebase in C++11. No need for compatibility with C++98. Signed-off-by:
Rosen Penev <rosenp@gmail.com> * remove JSONCPP_NOEXCEPT This codebase is C++11 now. No need for this macro. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 13 Feb, 2020 3 commits
-
-
Chen authored
-
David Gobbi authored
For Apple clang-800.0.42.1, which was released with Xcode 8 in September 2016, the '=delete' on the 'is' and 'as' methods causes the following errors for value.h: inline declaration of 'as<bool>' follows non-inline definition inline declaration of 'is<bool>' follows non-inline definition etcetera for the other specializations of 'is' and 'as'. The same problem also occurs for clang-3.8 but not clang-3.9 or later.
-
Claus Klein authored
* Prevent cmakelint warnings Use 4 spaces for indent, no tabs * Use ccache right fix indents too at CMakeLists.txt
-
- 03 Feb, 2020 1 commit
-
-
Rosen Penev authored
* [clang-tidy] Do not use else after return Found with readability-else-after-return Signed-off-by:
Rosen Penev <rosenp@gmail.com> * [clang-tidy] Convert several loops to be range based Found with modernize-loop-convert Signed-off-by:
Rosen Penev <rosenp@gmail.com> * [clang-tidy] Replace deprecated C headers Found with modernize-deprecated-headers Signed-off-by:
Rosen Penev <rosenp@gmail.com> * [clang-tidy] Use auto where applicable Found with modernize-use-auto Signed-off-by:
Rosen Penev <rosenp@gmail.com> * .clang-tidy: Add these checks
-