summaryrefslogtreecommitdiff
path: root/Utilities/cmjsoncpp/src/lib_json
AgeCommit message (Collapse)AuthorLines
2022-01-12Merge branch 'upstream-jsoncpp' into update-jsoncppBrad King-44/+60
* upstream-jsoncpp: jsoncpp 2022-01-12 (42e892d9)
2021-09-09Merge branch 'upstream-jsoncpp' into update-jsoncppBrad King-1509/+1416
* upstream-jsoncpp: jsoncpp 2020-09-25 (9059f5ca)
2021-06-03clang-analyzer: rename from scan-build in commentsBrad King-1/+1
2021-06-03jsoncpp: Revert "Code style: add missed explicit 'this->'"Kitware Robot-2877/+2405
Revert the part of commit 209daa20b2 (Code style: add missed explicit 'this->', 2021-01-05, v3.20.0-rc1~213^2) that updated third-party code.
2021-01-05Code style: add missed explicit 'this->'Oleksandr Koval-2405/+2877
CMake uses explicit 'this->' style. Using custom clang-tidy check we can detect and fix places where 'this->' was missed.
2019-09-20jsoncpp: Fix compilation on HP-UX 11.31 ia64 with GCC 4.9.3Earle Lowe-2/+3
In particular, fix the `isfinite` definition.
2018-12-11jsoncpp: fix signed overflow when parsing negative valueBrad King-1/+1
Clang's ubsan (-fsanitize=undefined) reports: runtime error: negation of -9223372036854775808 cannot be represented in type 'Json::Value::LargestInt' (aka 'long'); cast to an unsigned type to negate this value to itself Follow its advice and update the code to remove the explicit negation.
2017-08-30jsoncpp: Drop doxygen comments not recognized by ClangBrad King-1/+1
Some Clang versions warn with `-Wdocumentation-unknown-command` about the `\internal` and `\snippet` command tag names.
2017-08-30jsoncpp: Add initialization to pacify scanbuildBrad King-0/+1
The scanbuild analysis cannot see that decodeUnicodeEscapeSequence either initializes the `unicode` argument or returns `false` such that the code following it runs only if `unicode` is initialized. Add an explicit initialization to pacify it.
2017-08-30Merge branch 'upstream-jsoncpp' into update-jsoncppBrad King-1693/+2587
* upstream-jsoncpp: jsoncpp 2017-08-27 (4cfae897)
2015-09-25jsoncpp: Add missing cast to convert from char to UIntMarc Chevrier-1/+1
When parsing digits we know our `c - '0'` expression results in a non-negative value due to preceding conditions. Simply cast the result to UInt. This fixes compilation on SolarisStudio 12.4.
2015-09-14jsoncpp: Fix compilation as C99 on SolarisJoerg Sonnenberger-1/+3
In C99 mode, Solaris variants may already define isfinite, so check for the existence first.
2015-05-26jsoncpp: Provide 'isfinite' impl on more HP-UX versions (#15576)Michael Scott-1/+6
Some versions of HP-UX do not define 'isfinite' or 'finite' in math.h for Itanium when preprocessing with C++, so we have to add the definition ourselves instead to map to the internal version.
2015-03-31jsoncpp: Provide 'isfinite' implementation on older AIX and HP-UXÅdne Hovda-0/+14
Newer AIX and HP-UX platforms provide 'isfinite' as a <math.h> macro. Older versions do not, so add the definition if it is not provided.
2015-01-15jsoncpp: Provide 'isfinite' implementation on SolarisBrad King-0/+6
Solaris provides a 'finite' function in <ieeefp.h>.
2015-01-15jsoncpp: Provide 'isfinite' implementation on ancient glibcBrad King-0/+7
The glibc 2.1 headers provide isfinite only in C99 mode. Add its definition ourselves.
2015-01-15jsoncpp: Add missing assert before strcmp in json_value.cppBrad King-2/+6
The strcmp function does not allow NULL pointers, so add an assert to tell Clang scan-build that the code does not expect a NULL pointer.
2015-01-15jsoncpp: Include C headers since we use APIs without std::Brad King-5/+5
2015-01-13Merge branch 'jsoncpp-upstream' into import-jsoncppBrad King-0/+4335
Use a subtree merge to place the upstream content in the Utilities/cmjsoncpp directory.