554 Commits

Author SHA1 Message Date
Milo Yip
ae5cf58878 Fix ScanCopyUnescapedString performance issue 2016-01-22 15:33:08 +08:00
Milo Yip
69d0f41c4b Implemented ScanCopyUnescapeString optimization
Some performance issues to be fixed
2016-01-22 12:18:05 +08:00
Milo Yip
8fbe442925 Merge pull request #510 from miloyip/issue509_writingnaninf
Fix #509 by checking Nan/Inf when writing a double
2016-01-20 22:30:15 +08:00
Milo Yip
78c7d54aba Fix #498 VC2015 warnings 2016-01-20 22:29:50 +08:00
Milo Yip
bab80e7cca Fix clang warning 2016-01-20 02:01:14 +08:00
Milo Yip
ad1d22eba5 Fix #509 by checking Nan/Inf when writing a double 2016-01-20 01:53:40 +08:00
Milo Yip
9515b9cc94 Merge pull request #501 from thedrow/fix-cmake-min-version-warning
CMake will no longer complain that the minimum CMake version is not specified
2016-01-04 09:28:30 +08:00
Milo Yip
d0045f15bd Merge pull request #504 from thedrow/containerized-travis
Move Travis to container based infrastructure
2016-01-04 09:27:53 +08:00
Omer Katz
163c4b7583 Fixed cmake syntax errors. 2015-12-31 12:07:28 +02:00
Omer Katz
96fbaef1ec Workaround clang and ccache bugs described in http://petereisentraut.blogspot.co.il/2011/05/ccache-and-clang.html 2015-12-31 12:04:47 +02:00
Omer Katz
84c56130d2 Adjust CMakeLists.txt files to use ccache when it's available. 2015-12-31 11:56:39 +02:00
Milo Yip
ef6957c177 PutReserve() and PutUnsafe() optimisation for Writer 2015-12-31 15:30:28 +08:00
Milo Yip
1a21379e3c Merge branch 'master' into optimization 2015-12-31 09:23:38 +08:00
Omer Katz
5121034bb8 CMake will no longer complain that the minimum CMake version is not specified for test/CMakeLists.txt. 2015-12-29 16:57:42 +02:00
Milo Yip
c6384da755 Try to fix clang and gcc warnings problems again x11 2015-12-18 20:53:07 +08:00
Milo Yip
5c003f3ecb Try to fix clang and gcc warnings problems again x9
Abandon RAPIDJSON_NORETURN_SUFFIX
2015-12-18 20:34:46 +08:00
Milo Yip
6d6381f596 Try to fix clang and gcc warnings problems again x7 2015-12-18 20:15:11 +08:00
Milo Yip
d72039f3ef Try to fix clang and gcc warnings problems again x6 2015-12-18 20:06:58 +08:00
Milo Yip
d6478991d0 Try to fix clang and gcc warnings problems again x4 2015-12-18 19:54:10 +08:00
Milo Yip
4cb7c88ca9 Try to fix clang and gcc warnings problems again x3 2015-12-18 19:47:11 +08:00
Milo Yip
17f2ca6913 Try to fix clang and gcc warnings problems 2015-12-18 19:04:09 +08:00
Milo Yip
74c8dcfd57 Fix clang -Weverything 2015-12-18 18:34:04 +08:00
miloyip
8b265fe4b6 Fixes #489 2015-12-06 11:38:53 +08:00
Milo Yip
28f2ed00d9 Merge pull request #484 from miloyip/Issue483_PointerValue
Fix #483 by using the correct value type
2015-11-30 17:37:58 +08:00
Milo Yip
db0a03a43c Fix #483 by using the correct value type 2015-11-30 17:22:06 +08:00
Philipp A. Hartmann
9378001e35 documenttest.cpp: check/use conversion from Document to ParseResult 2015-11-26 22:33:14 +01:00
Philipp A. Hartmann
c8d298bc9e documenttest.cpp: EXPECT_THROW when checking empty allocator (closes #469)
In the MoveConstructor/MoveAssignment tests, a check for a `NULL` allocator
return has been used to check for the correct moved-from state of a Document.
After the merge of #426, the GetAllocator call fails with an assertion,
if the allocator of a GenericDocument is NULL.

Check for the throw, instead of NULL in the move-related tests.
Tested with GCC 4.9 on Linux with C++11 enabled.

Reported-by: @woldendans
2015-11-16 21:32:09 +01:00
Andrey
f7960ac0e8 Comments parsing fixes.
* Comments parsing function correctly handles EOF.
* Since SkipWhitespaceAndComments can generate errors, its calls should be followed by RAPIDJSON_PARSE_ERROR_EARLY_RETURN macro.
* Some tests to make the bug never appear again.
2015-10-14 00:04:29 +03:00
Andrey
5ce78b135d Introduce support of comments. 2015-10-11 15:09:58 +03:00
Philipp A. Hartmann
41dd68f092 add simple test for unchanged DOM after parse error 2015-10-07 21:50:14 +02:00
Milo Yip
311b48224f Try to fix incorrect 64-bit alignment
Added unit tests for alignment macros.
Fixes #418
2015-09-01 10:05:33 +08:00
Milo Yip
74f0673dad Merge branch 'master' into schema 2015-09-01 09:32:29 +08:00
Philipp A. Hartmann
46e1696316 add free inline swap functions 2015-07-13 09:35:15 +02:00
Philipp A. Hartmann
dd901f498b add GenericDocument<>::Swap
See #368.
2015-07-04 01:57:24 +02:00
miloyip
ce0184e73b Add and fix -Wimplicit-fallthrough for clang, revert #350 2015-06-03 23:53:14 +08:00
miloyip
c5de8b2cb0 For diagnosis valgrind issue in travis 2015-06-03 23:27:46 +08:00
Milo Yip
b8d2f7e660 Merge regex into schema 2015-05-29 18:39:16 +08:00
Milo Yip
a8feeb4c3e Add invalid regex tests and fix a bug 2015-05-29 17:42:08 +08:00
Milo Yip
3eb19ceaf9 Add Search(), ^ and $ assertions to regex 2015-05-29 15:23:28 +08:00
miloyip
fa7dc1c439 Add numbered quantifier 2015-05-27 23:39:22 +08:00
miloyip
0dffe87551 Add character class escapes 2015-05-27 09:56:06 +08:00
miloyip
92285bed44 Add escape characters and control characters 2015-05-27 09:37:55 +08:00
miloyip
1784afe5f7 Add character class to regex 2015-05-26 00:40:23 +08:00
miloyip
06853b89b0 Add any character (.) to regex 2015-05-25 22:51:03 +08:00
miloyip
0934803ae1 Add Unicode regex test 2015-05-25 21:57:46 +08:00
miloyip
a386934288 Add ?*+ to regex 2015-05-25 19:34:47 +08:00
miloyip
05c79891d1 Add parenthesis support in regex 2015-05-25 09:14:51 +08:00
miloyip
0bef29a5f6 Initial reggae implementation with only concatenation and alternation 2015-05-24 21:23:39 +08:00
miloyip
c8c8ad47c3 Further improve coverage of GenericPointer::Erase() 2015-05-21 17:02:27 +08:00
miloyip
7ddaa80e46 Improve coverage of GenericPointer::Erase() 2015-05-21 16:45:39 +08:00