summaryrefslogtreecommitdiff
path: root/Utilities/cmjsoncpp
Commit message (Collapse)AuthorAgeFilesLines
* Build: Use imported target `kwiml::kwiml` instead of variablesAlex Turbov2022-09-221-1/+1
|
* Utilities: Suppress warnings in third-party code with IBMClangAaron Liu2022-01-271-1/+1
|
* jsoncpp: Drop outdated CMake-specific READMEBrad King2022-01-121-66/+0
| | | | | | Since commit ee68d3eb8c (jsoncpp: Add script to update from upstream, 2017-08-28, v3.10.0-rc1~199^2~8) we use a script to maintain the jsoncpp vendor branch. Drop our readme that documented the old approach.
* jsoncpp: Drop deprecation markupBrad King2022-01-121-2/+2
| | | | | Apply the change from commit 0a0f71066f (jsoncpp: Drop deprecation markup, 2017-08-28, v3.10.0-rc1~199^2~3) to new markup instances.
* Merge branch 'upstream-jsoncpp' into update-jsoncppBrad King2022-01-1211-81/+105
| | | | | * upstream-jsoncpp: jsoncpp 2022-01-12 (42e892d9)
* LCC: Add dedicated support for MCST LCC compilermakise-homura2021-10-151-1/+1
| | | | | | | | | | | | | | | | | | | | | Divert LCC compiler as a new one, instead of treating it as GNU. Since old times, Elbrus C/C++/Fortran Compiler (LCC) by MCST has been passing checks for GNU compilers, so it has been identified as GNU. Now, with intent of seriously upstreaming its support, it has been added as a separate LCC compiler, and its version displays not a supported GCC version, but LCC version itself (e.g. LCC 1.25.19 instead of GNU 7.3.0). This commit adds its support for detection, and also converts basically every check like 'is this compiler GNU?' to 'is this compiler GNU or LCC?'. The only places where this check is untouched, is where it regards other platforms where LCC is unavailable (primarily non-Linux), and where it REALLY differs from GNU compiler. Note: this transition may break software that are already ported to Elbrus, but hardly relies that LCC will be detected as GNU; still such software is not known.
* Merge branch 'upstream-jsoncpp' into update-jsoncppBrad King2021-09-0915-2338/+2289
| | | | | * upstream-jsoncpp: jsoncpp 2020-09-25 (9059f5ca)
* clang-analyzer: rename from scan-build in commentsBrad King2021-06-031-1/+1
|
* jsoncpp: Revert "Code style: add missed explicit 'this->'"Kitware Robot2021-06-033-2883/+2411
| | | | | 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.
* Utilities: Suppress warnings in third-party code with NVHPCBrad King2021-04-201-1/+1
|
* Utilities: Suppress warnings in third-party code when using IntelLLVMBrad King2021-01-281-1/+1
|
* Code style: add missed explicit 'this->'Oleksandr Koval2021-01-053-2411/+2883
| | | | | CMake uses explicit 'this->' style. Using custom clang-tidy check we can detect and fix places where 'this->' was missed.
* jsoncpp: Fix compilation on HP-UX 11.31 ia64 with GCC 4.9.3Earle Lowe2019-09-201-2/+3
| | | | In particular, fix the `isfinite` definition.
* Fixing warnings generated by clang 8.0 on WindowsZsolt Parragi2019-05-291-6/+4
| | | | | | | | | | | | * Deprecation removals previously specific to MSVC/Intel now also used by clang * String literals were assigned to non const pointers. These are stored in mutable arrays now * An implicit function pointer to pointer conversion is a Microsoft extension warning is suppressed by an explicit reinterpret_cast * The MSVC specific deprecation macro for jsoncpp was moved after the clang macro to avoid redefinition warnings. This is consistent with how jsoncpp fixed the issue in 36d8cfd7
* jsoncpp: Fix include order for build within CMakeBrad King2019-02-251-3/+4
| | | | | Include the KWSys `Configure.h` header first to get its large file support definitions before including system headers.
* Utilities: Suppress warnings in third-party code when using XLClangBrad King2019-02-251-1/+1
|
* Remove now-unused code once used for MIPSpro on IRIXBrad King2019-02-211-1/+1
| | | | | | In commit beb991110d (Remove now-unused code once used on IRIX, 2019-01-11, v3.14.0-rc1~167^2) we removed remnants of IRIX support. Also remove remnants of MIPSpro compiler support.
* jsoncpp: fix signed overflow when parsing negative valueBrad King2018-12-111-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.
* jsoncpp: Drop doxygen comments not recognized by ClangBrad King2017-08-304-6/+6
| | | | | Some Clang versions warn with `-Wdocumentation-unknown-command` about the `\internal` and `\snippet` command tag names.
* jsoncpp: Add initialization to pacify scanbuildBrad King2017-08-301-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.
* jsoncpp: Fix compilation on SunProBrad King2017-08-305-0/+20
| | | | The SunPro compiler does not support `#pragma pack`.
* jsoncpp: Drop deprecation markupBrad King2017-08-304-11/+12
| | | | | | | | Even though we disable warnings when building jsoncpp itself, including its headers from other CMake sources may still cause warnings. Additional work will be needed to port CMake to newer jsoncpp interfaces while still supporting jsoncpp 1.0.0. For now, just suppress the markup.
* Merge branch 'upstream-jsoncpp' into update-jsoncppBrad King2017-08-3019-2272/+3417
| | | | | * upstream-jsoncpp: jsoncpp 2017-08-27 (4cfae897)
* jsoncpp: Drop unnecessary files from source listBrad King2017-08-301-2/+0
|
* jsoncpp: Exclude from include-what-you-useBrad King2017-05-051-0/+1
| | | | This is third-party code.
* Add option to use a system-installed KWIMLBrad King2015-12-181-0/+1
| | | | | Do not activate it with the general use-system-libs options for now because KWIML is not commonly distributed or available.
* jsoncpp: Add missing cast to convert from char to UIntMarc Chevrier2015-09-251-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.
* jsoncpp: Fix compilation as C99 on SolarisJoerg Sonnenberger2015-09-141-1/+3
| | | | | In C99 mode, Solaris variants may already define isfinite, so check for the existence first.
* jsoncpp: Provide 'isfinite' impl on more HP-UX versions (#15576)Michael Scott2015-05-261-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.
* jsoncpp: Provide 'isfinite' implementation on older AIX and HP-UXÅdne Hovda2015-03-311-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.
* jsoncpp: Drop doxygen comments that cause Clang warningsBrad King2015-01-202-3/+0
| | | | | | Even though we disable warnings when building jsoncpp itself, including its headers from other CMake sources may still cause warnings. Update the code to remove these -Wdocumentation warnings.
* jsoncpp: Add README-CMake.txtBrad King2015-01-151-0/+66
| | | | Describe how to update jsoncpp from upstream.
* jsoncpp: Provide 'isfinite' implementation on SolarisBrad King2015-01-151-0/+6
| | | | Solaris provides a 'finite' function in <ieeefp.h>.
* jsoncpp: Provide 'isfinite' implementation on ancient glibcBrad King2015-01-151-0/+7
| | | | | The glibc 2.1 headers provide isfinite only in C99 mode. Add its definition ourselves.
* jsoncpp: Add missing assert before strcmp in json_value.cppBrad King2015-01-151-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.
* jsoncpp: Add missing <iosfwd> include in json/writer.hBrad King2015-01-151-0/+1
| | | | The header uses std::ostream, so it must be declared.
* jsoncpp: Include C headers since we use APIs without std::Brad King2015-01-152-5/+5
|
* jsoncpp: Disable warnings to avoid changing 3rd party codeBrad King2015-01-152-0/+12
| | | | | Add '-w' or equivalent flag on compilers supporting it. Tell MSVC to use its lowest warning level inside jsoncpp sources.
* jsoncpp: Build the library within CMakeBrad King2015-01-153-1/+20
| | | | | | | | | Update json/json.h to account for our lack of autolink.h. Update json/config.h to include KWSys Large File Support configuration so that consistent stream libraries are used (on AIX with XL). Add a cm_jsoncpp_reader.h header to include the CMake-provided copy of the json/reader.h header from CMake sources.
* jsoncpp: Include "config.h" before system headersBrad King2015-01-151-2/+2
|
* Merge branch 'jsoncpp-upstream' into import-jsoncppBrad King2015-01-1318-0/+6249
| | | | | Use a subtree merge to place the upstream content in the Utilities/cmjsoncpp directory.
* jsoncpp: Add .gitattributes to skip whitespace checksBrad King2015-01-131-0/+1