Hans Johnson
f64244ed3f
COMP: Use nullptr instead of 0 or NULL
...
The check converts the usage of null pointer constants (eg. NULL, 0) to
use the new C++11 nullptr keyword.
SRCDIR=/Users/johnsonhj/src/jsoncpp #My local SRC
BLDDIR=/Users/johnsonhj/src/jsoncpp/cmake-build-debug/ #My local BLD
cd /Users/johnsonhj/src/jsoncpp/cmake-build-debug/
run-clang-tidy.py -extra-arg=-D__clang__ -checks=-*,modernize-use-nullptr -header-filter=.* -fix
2018-12-12 13:41:06 -06:00
Christopher Dunn
6219eae304
Merge pull request #843 from manang/master
...
Update json_writer.cpp
2018-12-03 20:20:55 -08:00
manang
b955e0f699
Update json_writer.cpp
2018-12-03 10:26:27 +01:00
Julien Schueller
d501fbe741
Set CMAKE_BUILD_TYPE default on win32 too
2018-12-02 18:37:11 -06:00
Julien Schueller
ec4251b728
Use CMAKE_CROSSCOMPILING_EMULATOR to run tests
...
Needed when cross-compiling
2018-12-02 18:37:11 -06:00
Julien Schueller
a72266d00b
Remove useless BUILD_STATIC_LIBS option
2018-12-02 18:37:11 -06:00
Julien Schueller
010a2d04d3
Unique lib target name
2018-12-02 18:37:11 -06:00
Christopher Dunn
2baad4923e
Merge pull request #804 from yantaozhao/master
...
allow nullptr when not care the removed array value
2018-07-14 22:11:35 -05:00
YantaoZhao
e32ee4717c
allow nullptr when not care the removed array value
2018-07-03 21:29:18 +08:00
Christopher Dunn
80bc776bae
Merge pull request #250 from cdunn2001/travis
...
in travis, build for osx also
2018-06-24 20:42:46 -05:00
Christopher Dunn
da498591fc
In travis-ci, build for osx also
...
Drop gcc b/c it takes too long to install via addon.
Build only static/release, to save VMs. (No shared to debug.)
2018-06-24 20:35:49 -05:00
pavel.pimenov
745287275c
"\n" -> '\n'
2018-06-24 18:51:10 -05:00
Christopher Dunn
c00a3b95c2
Merge pull request #800 from cdunn2001/patch-1
...
Fixes #798
Closes #799
2018-06-23 18:17:08 -05:00
Christopher Dunn
c59db80002
Try the way I build locally
2018-06-23 18:08:53 -05:00
Christopher Dunn
473afca1e3
Tell meson/ninja versions
2018-06-23 18:08:53 -05:00
Christopher Dunn
59d41de5b1
Try to avoid empty string
...
- g++ has a problem with ''
- clang++ does not seem to mind it.
2018-06-23 18:08:53 -05:00
Peter Spiess-Knafl
b87f6dbc8a
Fix for #798
...
Add preprocessor definitions for MSVC dllexport/dllimport statements
(cherry picked from commit 2654b6bbbf
)
2018-06-23 16:11:47 -05:00
Kamel CHAOUCHE
ee34ac1fbb
Add position independent code feature to CMakeList.txt
...
Enable Position Independent Code for shared lib
2018-06-22 11:37:18 -05:00
Christopher Dunn
d31a5300e1
Merge pull request #788 from pavel-pimenov/fix-782
...
Fix #782
2018-06-22 10:29:52 -05:00
pavel.pimenov
86789e7c2f
Fix #782
2018-06-05 10:17:36 +03:00
Christopher Dunn
c4103ab390
Merge pull request #784 from Nekto89/cppcheck_fix
...
Multiple fixes for issues found by Cppcheck
2018-06-03 13:28:53 -05:00
Marian Klymov
a5d7c714b1
Fix typo in previous fix.
2018-06-02 21:52:45 +03:00
Marian Klymov
84ca7d6f0b
Apply the formatting specified in .clang-format file.
2018-06-02 20:27:31 +03:00
Marian Klymov
fc20134c92
Fix different names for parameters in declaration and definition
2018-06-02 20:15:26 +03:00
Marian Klymov
091e03979d
Reduce scope of variable.
2018-06-02 19:48:10 +03:00
Marian Klymov
a7d0ffc717
Remove unused private function in TestResult class
2018-06-02 19:46:16 +03:00
Marian Klymov
48112c8b62
Make several methods static.
2018-06-02 19:43:31 +03:00
Marian Klymov
c8bb600d27
Pass string as a const reference.
2018-06-02 19:41:57 +03:00
Marian Klymov
85a263e89f
Fix improper format specifier in printf
...
%d in format string requires 'int' but the argument type is 'unsigned int'.
2018-06-02 19:38:12 +03:00
Christopher Dunn
cfab607c0d
Merge pull request #776 from BillyDonahue/apply_clang_format
...
Reapply clang format
2018-05-22 13:32:58 -05:00
Billy Donahue
b5e1fe89aa
Apply the formatting specified in .clang-format file.
...
$ clang-format --version
clang-format version 7.0.0 (tags/google/stable/2018-01-11)
$ clang-format -i --style=file $(find . -name '*.cpp' -o -name '*.h')
2018-05-20 18:38:42 -04:00
Billy Donahue
abd39e791b
json_tool missing include
2018-05-20 18:38:42 -04:00
Christopher Dunn
768e31fc68
Merge pull request #773 from BillyDonahue/precision
...
Improvements in writing precision and json_tool.h helpers.
resolves #772
2018-05-13 22:57:16 -05:00
Billy Donahue
aa1b383666
fix string construction
2018-05-13 18:28:05 -04:00
Billy Donahue
8bf20bdc35
Merge branch 'precision' of github.com:BillyDonahue/jsoncpp into precision
2018-05-11 14:31:51 -04:00
Billy Donahue
0ba5c435f4
Improvements in writing precision and json_tool.h helpers
2018-05-11 14:31:12 -04:00
Billy Donahue
fdcc2e4428
single-arg string ctor
2018-05-11 14:26:09 -04:00
Billy Donahue
9ebfc8d37b
whitespace cleanup
2018-05-11 14:20:51 -04:00
Billy Donahue
4cec95a2e7
formatting refactor
2018-05-11 14:03:34 -04:00
fo40225
cf73619e28
refactoring cross compiler macro
2018-05-09 02:06:19 -05:00
Christopher Dunn
ded953e0a6
Merge pull request #771 from Binyang2014/master
...
Disable warning "C4702" when compiling json cpp using vs2013 and above
resolves #759
2018-05-09 02:04:08 -05:00
binyangl
0a62267fe4
Disable warning "C4702" when compiling json cpp using vs2013 and above
2018-05-08 20:55:30 +08:00
Christopher Dunn
2cc9b24f0d
Merge pull request #768 from fo40225/fix_msvc_fpfast
...
Fix msvc /fp:fast test failure
2018-05-08 00:30:14 -05:00
fo40225
6e5e9be736
corss compiler isnan
2018-05-08 12:35:08 +08:00
fo40225
4050143288
fix ValueTest/integers, CharReaderAllowSpecialFloatsTest/issue209 test failure when fp:fast on msvc
2018-05-05 15:05:22 +08:00
fo40225
3f0d91f08a
fix ValueTest/specialFloats test failure when fp:fast on msvc
2018-05-05 14:38:53 +08:00
Christopher Dunn
02211117f1
Merge pull request #764 from Melown/master
...
allow out-of-source build
2018-04-20 00:22:22 -05:00
Tomáš Malý
323450eafc
allow out-of-source build
2018-04-17 16:16:54 +02:00
Christopher Dunn
af17fecd29
Merge pull request #760 from ldionne/master
...
[CMake] Generate CMake config files by default
2018-04-05 19:36:03 -05:00
Louis Dionne
ffc62d26f3
[CMake] Generate CMake config files by default
2018-04-05 16:37:58 -07:00