458 Commits

Author SHA1 Message Date
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
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
miloyip
3ffac19f25 Fix compilation in schema test 2015-05-21 16:20:49 +08:00
miloyip
6e1d10ec6b Add GenericValue::EraseMember(string types) APIs 2015-05-21 16:12:33 +08:00
miloyip
f688b2b152 Improve coverage of Pointer 2015-05-21 13:25:37 +08:00
miloyip
85c8b657c0 Achieve zero heap allocation for SchemaValidator.TestSuite 2015-05-17 22:22:53 +08:00
miloyip
a4cbd3f81b Refactor SchemaValidator.TestSuite to use MemoryPoolAllocator explicitly 2015-05-17 20:44:11 +08:00
miloyip
a92c3b6995 Make schema working for UTF-16 and other encodings 2015-05-17 10:21:58 +08:00
Milo Yip
4335a62219 Merge remote-tracking branch 'origin/master' into schema 2015-05-16 16:28:29 +08:00
Milo Yip
5b6061c7e6 Fix meta schema validation 2015-05-16 15:51:36 +08:00
Milo Yip
424abf1edc Merge pull request #335 from miloyip/member_stdstring
Add Value::XXXMember(...) overloads for std::string
2015-05-14 14:56:35 +08:00
Milo Yip
add5a50581 Fix some numbers parsed incorrectly
Fix #340
2015-05-14 12:03:21 +08:00
miloyip
e0a8a327ea Add meta schema test (failing now) 2015-05-13 20:14:41 +08:00
miloyip
979088de60 Add 64-bit integer schema validations 2015-05-13 09:44:25 +08:00