43 Commits

Author SHA1 Message Date
John Stiles
4b822a41af Attempt to suppress valgrind wcslen error 2017-02-28 19:31:21 -08:00
Zhihao Yuan
3cc77d5d63
Treat signed-unsigned conversions as errors. 2017-01-18 18:09:18 -06:00
Eli Fidler
8c4059766e test for no-double-promotion instead of just checking compiler version 2016-06-14 07:01:41 -07:00
Eli Fidler
13e3aa9b00 we do need to avoid the double-promotion warning on clang, since we're compiling with -Werror 2016-06-13 07:24:26 -07:00
Milo Yip
47e21a054c Temp revert cmake for OS X 2016-04-07 00:46:39 +08:00
Milo Yip
c843a2655b Try to fix all /W4 warnings in VC2015 2016-04-04 15:01:34 +08:00
Milo Yip
2418d7cd91 Fix cmake 2016-03-31 15:02:03 +08:00
Milo Yip
d7df1f26ba Add /W4 and /WX for VC 2016-03-31 14:20:24 +08:00
Jarred Nicholls
926d7ffcc8 Later clang compilers will warn on float -> double promotion because it can add precision. In the context of RapidJSON – especially with its float methods on GenericValue – I think this warning holds no water and should be ignored.
Trim whitespace off the end of various lines.

Added an additional NumberStream specialization that will always perform a TakePush() even when just Take() is called. This supports RawNumber parsing by pushing onto our StackStream particular parts of the number that currently aren't captured because of full precision double parsing, such as the negative sign, scientific number exponents, etc.

RawNumber parsing fails with input streams that don't have copy optimization, such as the BasicIStreamWrapper stream. To work around this, instead do the Transcode copy operation by reading from a UTF8 StringStream instead of the original InputStream. Since the NumberStream downcasts all input Ch into chars, we know we're dealing with UTF8/ASCII compatible stack characters during the Transcoding.
2016-03-29 15:44:30 -04:00
Milo Yip
ae840f66c5 Remerge #504 2016-02-23 14:21:03 +08:00
Milo Yip
1d856b2761 Add Writer::SetMaxDecimalPlaces() 2016-02-11 16:08:17 +08:00
Milo Yip
b9bca8e5c3 Add OStreamWrapper 2016-02-07 23:30:51 +08:00
Milo Yip
43b63b1100 Add IStreamWrapper 2016-02-07 22:15:17 +08:00
Milo Yip
8cb978dc15 Add fwd.h and extract stream.h 2016-02-02 18:20:36 +08:00
Milo Yip
7f9921fc60 Merge branch 'master' into schema
# Conflicts:
#	.gitignore
#	include/rapidjson/internal/stack.h
2016-01-26 15:24:04 +08:00
Milo Yip
74c8dcfd57 Fix clang -Weverything 2015-12-18 18:34:04 +08:00
Milo Yip
74f0673dad Merge branch 'master' into schema 2015-09-01 09:32:29 +08:00
miloyip
ce0184e73b Add and fix -Wimplicit-fallthrough for clang, revert #350 2015-06-03 23:53:14 +08:00
Milo Yip
b8d2f7e660 Merge regex into schema 2015-05-29 18:39:16 +08:00
miloyip
0bef29a5f6 Initial reggae implementation with only concatenation and alternation 2015-05-24 21:23:39 +08:00
Milo Yip
761561a28d Fix clang compilation and a memory leak 2015-05-07 17:09:55 +08:00
Milo Yip
efc1932c0d Travis gcc/clang versions cannot support C++11 well 2015-05-05 10:28:26 +08:00
miloyip
8366bb8975 Add string pattern in schema 2015-05-05 00:08:36 +08:00
miloyip
87adfd464a Merge remote-tracking branch 'origin/master' into schema 2015-05-04 18:25:24 +08:00
miloyip
bfd47a70ed Fix merge conflict 2015-05-03 20:30:46 +08:00
miloyip
7fc716006f Merge branch 'master' into json-pointer
Conflicts:
	test/unittest/CMakeLists.txt
2015-05-03 20:27:21 +08:00
miloyip
bb0e828928 Some std::string overloads for Pointer 2015-05-03 18:55:55 +08:00
Milo Yip
c1bcccb16a Very basic JSON schema implementation 2015-05-01 17:59:31 +08:00
miloyip
a32d8b7650 Add SIMD SkipWhitespace() unit test which don't run in Valgrind 2015-04-15 18:18:57 +08:00
miloyip
3f7a3bcc04 Add separate allocators test 2015-04-14 10:19:05 +08:00
miloyip
e9b92256a2 Add itoatest 2015-04-13 15:11:32 +08:00
miloyip
752afa7b79 Add prettywritertest 2015-04-13 10:58:05 +08:00
Milo Yip
f73ec57241 Add -Wfloat-equal to reproduce warnings 2015-04-10 21:30:42 +08:00
Milo Yip
852c25123c Implement parser/generator for JSON Pointer 2015-04-10 14:54:13 +08:00
Andrii Senkovych
122170b362 Fix definitions for VS compiler 2015-02-23 20:21:07 +02:00
Andrii Senkovych
3ae2a29986 Backport compiler options from premake configuration. Refs #240. 2015-02-19 18:25:40 +02:00
Andrii Senkovych
9122a78a46 Add new unittests. Refs #240. 2015-02-19 18:25:40 +02:00
unknown
0cbafabe53 omit valgrind tests for Visual Studio builds 2015-02-17 11:14:47 +01:00
Andriy Senkovych
bff9625e86 Add travis tests to be run from CTest 2014-11-12 01:57:00 +02:00
Andriy Senkovych
40648f164b Add namespacetest to the unit tests 2014-11-11 18:10:55 +02:00
Andriy Senkovych
8f3f0ea167 Add separate targets for examples and tests 2014-11-11 17:50:32 +02:00
Andriy Senkovych
d69991fa11 Set separate directory to place binaries 2014-11-11 17:26:59 +02:00
Andriy Senkovych
8ae1c971ea Add initial CMake support
* Support for both in-source and out-of-source builds
 * Set library version to 0.12 to map Debian package
 * Add separate options to build tests, examples and documentation
 * Add pkgconfig lookup support (if installed with `make install`)
 * Add CMake lookup support (if isntalled with `make install`)
 * Add Google Test Source lookup
 * Add CTest support for running tests (use `make test` or `ctest -V`)
2014-11-11 17:26:59 +02:00