1220 Commits

Author SHA1 Message Date
Milo Yip
7f43373a12 Merge pull request #311 from miloyip/issue310_versionmacro
RapidJSON v1.0.0
v1.0.0
2015-04-22 10:26:03 +08:00
miloyip
b2e53523bf Change version in appveyor 2015-04-22 09:24:56 +08:00
miloyip
5ab3f69910 Simplify RAPIDJSON_VERSION_STRING 2015-04-22 09:19:18 +08:00
Milo Yip
de137a2567 Merge pull request #312 from jollyroger/find_gtest
Introduce option to select default gtest installation
2015-04-21 18:37:43 +08:00
Andrii Senkovych
04b673686a Introduce option to select default gtest installation. Refs #309
This will introduce RAPIDJSON_BUILD_THIRDPARTY_GTEST option. If it is set to
TRUE, cmake will look for GTest installation in `thirdparty/gtest` before
looking in other places.

Current default value (OFF) for RAPIDJSON_BUILD_THIRDPARTY_GTEST represents
previous behaviour when system-wide gtest installation is used whenever
possible.

This commit will as well eliminate problem described in #309 when source
directory found is `thirdparty/gtest` while include files are found
system-wide. This however won't give the user possibility to select gtest
installation to use.
2015-04-21 13:33:44 +03:00
miloyip
95c6ec97c4 Add release badge to readmes 2015-04-21 17:28:31 +08:00
miloyip
5ab1e9361d Add version macros for RapidJSON 2015-04-21 16:38:49 +08:00
miloyip
8d39282af5 Update license headers for tests 2015-04-18 21:41:38 +08:00
miloyip
aa61b08d11 Fix warnings for misctest 2015-04-18 21:31:56 +08:00
Milo Yip
0e8bbe5e3e Standardize behavior of CrtAllocator::Malloc() 2015-04-17 13:01:14 +08:00
Milo Yip
4cd14b7c0e Merge pull request #305 from pah/fix/strict-memcpy
Avoid calling memcpy with NULL pointers
2015-04-17 12:28:37 +08:00
Philipp A. Hartmann
0c5c1538dc Avoid calling memcpy with NULL pointers
According to the C/C++ standards, calling `memcpy(NULL, NULL, 0)` is
undefined behaviour. Recent GCC versions may rely on this by optimizing
NULL pointer checks more aggressively, see [1].

This patch tries to avoid calling std::memcpy with zero elements.
As a side effect, explicitly return NULL when requesting an empty block
from MemoryPoolAllocator::Malloc.

This may be related to #301.

[1] https://gcc.gnu.org/gcc-4.9/porting_to.html
2015-04-16 21:05:08 +02:00
miloyip
30ace6fa95 Fix mistake in perftest 2015-04-16 10:55:42 +08:00
miloyip
556d154bed Search sample data in more folders for perftest 2015-04-16 10:34:45 +08:00
miloyip
22021d6622 Converts tabs to spaces 2015-04-16 10:15:23 +08:00
miloyip
a7763cbeca Fix allocator test 2015-04-16 09:42:22 +08:00
miloyip
67a3ee39b5 Fix coveralls 2015-04-16 00:29:28 +08:00
Milo Yip
b1fd2f18e1 Update readme.zh-cn.md
Add build status
2015-04-16 00:16:34 +08:00
Milo Yip
e857b082fb Update readme.md
Add coverall badges
2015-04-16 00:11:41 +08:00
Milo Yip
75ee552f49 Merge pull request #304 from miloyip/issue298_coverage
100% line of code coverage
2015-04-15 23:58:59 +08:00
miloyip
0edf27fa0c Only do coverage on gcc/debug 2015-04-15 22:55:35 +08:00
Milo Yip
0571a211bd Cover SkipWhiteSpace for InsituStringStream 2015-04-15 22:36:00 +08:00
Milo Yip
8f2add7527 Not enforce force inline for debug configuration 2015-04-15 22:23:00 +08:00
Milo Yip
4d3c64acee Improves SkipWhitespace test 2015-04-15 21:07:30 +08:00
Milo Yip
a81585b5e2 Further improve SkipWhitespace coverage 2015-04-15 20:51:36 +08:00
Milo Yip
998e76fecc Improves SkipWhitespace coverage 2015-04-15 20:38:46 +08:00
miloyip
ee505261c1 Try to use another namespace for SIMD version 2015-04-15 18:34:18 +08:00
miloyip
a32d8b7650 Add SIMD SkipWhitespace() unit test which don't run in Valgrind 2015-04-15 18:18:57 +08:00
Milo Yip
fa32ec8991 Merge pull request #302 from thebusytypist/issue298_coverage
Improve code coverage for iterative parsing
2015-04-15 16:32:22 +08:00
thebusytypist
6ef29ff431 Fix warning about unused argument. 2015-04-15 16:09:29 +08:00
thebusytypist
0d28bb13c7 Add a missing error handling check(a single number as JSON root). 2015-04-15 15:46:31 +08:00
thebusytypist
5ae48a0380 Assert on impossible state transition in Transit(); Put the last case and all non-enumerated cases(also supply assertion for them) in for code coverage. 2015-04-15 15:21:42 +08:00
miloyip
3f562e118f Fix "SSE 4.1 -> SSE 4.2" typo and add some comments about SIMD in internals and FAQ 2015-04-15 14:57:29 +08:00
thebusytypist
399333226b Use assertion for impossible case(The Predict() can ensure the token is ColonToken, otherwise it would be marked as Error state. So there is no need to check ColonToken again). 2015-04-15 14:54:44 +08:00
thebusytypist
8576747373 Add unittest for state transition to IterativeParsingMemberKeyState. 2015-04-15 14:51:48 +08:00
thebusytypist
7cb031cc03 Add unittests for parsing root JSON value other than array and object. 2015-04-15 14:45:07 +08:00
miloyip
631302e68e Reduce random test iterations to speedup travis 2015-04-15 14:41:33 +08:00
miloyip
c69ff41fc2 Add tests for parsing number with exhaustive exponents and random signifcant 2015-04-15 14:23:00 +08:00
miloyip
76d67b7eae Improves coverage of Value::Accept() 2015-04-15 12:16:16 +08:00
miloyip
2689cc4974 Remove more unused code paths in double conversions 2015-04-15 11:52:24 +08:00
miloyip
402d75a801 Fix gcc warning 2015-04-15 11:07:13 +08:00
miloyip
37d820a13e Remove unused code paths in double conversions 2015-04-15 10:58:49 +08:00
miloyip
5b89f331c5 Add more test numbers for writer 2015-04-15 00:18:22 +08:00
miloyip
5f5758bc22 Try coverage on gcc/release also 2015-04-14 23:26:00 +08:00
Milo Yip
f8909e875b Improve coverage of encoded streams 2015-04-14 21:50:13 +08:00
Milo Yip
afe2fbdc3f Fix the warnings again 2015-04-14 21:30:57 +08:00
Milo Yip
84e5741204 Fix gcc warning 2015-04-14 21:23:44 +08:00
Milo Yip
872aba660c Improve coverage of encoded streams 2015-04-14 21:08:33 +08:00
miloyip
4be4857a19 Remove ununused BigInteger::FullAdd() 2015-04-14 14:58:48 +08:00
miloyip
3621235cd0 Improve dtoa coverage 2015-04-14 14:52:42 +08:00