1965 Commits

Author SHA1 Message Date
KaitoHH
143641c75a suppress C4512, C4702 warning 2017-09-29 15:26:18 +08:00
KaitoHH
79d9c71f98 fix stream wrapper initializer
fix initialization warning

add special wrapper for AutoUTFInputStream
2017-09-29 15:24:27 +08:00
KaitoHH
b16ff281f8 Add feature of locating line and column number of error 2017-09-29 15:24:27 +08:00
Milo Yip
2a0bc6062b Update gitbook zh-cn link 2017-09-29 09:53:00 +08:00
Milo Yip
0b8adabab7 Fix #1071 gitbook link 2017-09-29 09:44:05 +08:00
Milo Yip
4c0f0036b5 Update appveyor badge and link 2017-09-14 11:55:31 +08:00
Milo Yip
4a2f2729f1 Change from miloyip/rapidjson to Tencent/rapidjson 2017-09-13 17:03:23 +08:00
Milo Yip
2a53253e72 Merge pull request #1056 from chwarr/assert-enum-lower
Assert Type enum lower bound as well
2017-09-07 10:07:19 +08:00
Christopher Warrington
a683902b2c Assert Type enum lower bound as well 2017-09-06 15:13:20 -07:00
Milo Yip
5db5dd552a Merge pull request #1057 from chwarr/paren-minmax
Guard against min/max being macros in a cross-compiler way
2017-09-06 13:03:52 +08:00
Milo Yip
4bb4926c9b Merge pull request #1055 from chwarr/fix-doc-build-windows
Fix Windows doc build MSBuild error MSB6001
2017-09-06 11:33:45 +08:00
Christopher Warrington
e4c0ecf86b Guard against min/max macros in tests too 2017-09-05 18:27:02 -07:00
Christopher Warrington
6e38649ec6 Guard against min/max being macros in document.h
Sometimes, particularly when Microsoft's windows.h is included, min/max
are defined as macros, interfering with use of
std::numeric_limits::min() and the like.

To guard against this, the function name is wrapped in an extra set of
parenthesis, which inhibits function-style macro expansion.
2017-09-05 18:26:47 -07:00
Christopher Warrington
bbdf5d1d4b Fix Windows doc build MSBuild error MSB6001
When using a MSBuild-based CMake generator like 'Visual Studio 15 2017
Win64', the doc build was failing with the error 'MSB6001: Invalid
command line switch for "cmd.exe". Illegal characters in path.'

This was due to the dependency on Doxyfile*, which wasn't expanded by
CMake.

The fix is to expand this glob in CMake before specifying the custom
command's dependencies.

Partial fix for https://github.com/miloyip/rapidjson/issues/622
2017-09-05 16:58:09 -07:00
Milo Yip
1e46091009 Merge pull request #1051 from gongminmin/master
Specifies the endian of msvc ARM64 configuration.
2017-09-04 10:50:04 +08:00
Milo Yip
e9373fc130 Merge pull request #1052 from Crunkle/master
Fix cross-compilation on certain toolchains
2017-09-04 10:32:55 +08:00
Crunkle
9ce6a7ebb8 Fix processor check when empty 2017-09-02 21:05:00 +01:00
Minmin Gong
f91405801f Specifies the endian of msvc ARM64 configuration. 2017-08-31 23:16:59 -07:00
Milo Yip
f05edc9296 Merge pull request #1034 from bluehero/master
Allow Swap with ValueType
2017-08-07 16:46:52 +08:00
bluehero
f9004b90c5 modify 2017-08-07 13:09:22 +08:00
bluehero
c831675026 modify 2017-08-07 11:58:37 +08:00
bluehero
5fb06596a9 modify 2017-08-07 11:44:27 +08:00
bluehero
8ba1f84f47 modify unittest 2017-08-05 20:39:31 +08:00
bluehero
9eb7bf895c add unittest 2017-08-05 18:12:44 +08:00
bluehero
7c1f208253 modify 2017-08-05 16:53:45 +08:00
bluehero
f7dd496cdd Merge pull request #1 from miloyip/master
Update
2017-08-05 14:06:44 +08:00
Milo Yip
d6305514ff Merge pull request #1030 from bmuzzin/issue1028_natvis
Issue #1028: Visual Studio natvis file.
2017-07-28 10:32:40 +08:00
Bart Muzzin
707fd36afa Issue #1028: Visual Studio natvis file. 2017-07-27 22:17:31 -04:00
Milo Yip
c34e3dfc72 Merge pull request #1018 from miloyip/issue1017_allOfHandler
Fix #1017 allOf keyword fail with Writer handler
2017-07-13 16:57:56 +08:00
Milo Yip
fcd2e1f60c Fix #1017 allOf keyword fail with Writer handler
Gave up using static binding for null handler, because it cannot be
used with arbitrary handler type. Change `OutputHandler handler_` to
pointer type.
2017-07-13 16:07:36 +08:00
Milo Yip
1a77513e6d Merge pull request #1013 from pah/fixes/1010-assert-stringref
GenericStringRef: move assert out of expression
2017-07-11 10:25:47 +08:00
Milo Yip
2d27ce46bc Merge pull request #1012 from pah/fixes/993-doxygen-internals
travis-doxygen.sh: upgrade to Doxygen 1.8.13
2017-07-11 10:24:55 +08:00
Philipp A. Hartmann
70171f9790 GenericStringRef: move assert out of expression 2017-07-10 22:32:18 +02:00
Philipp A. Hartmann
7161894f40 travis-doxygen.sh: upgrade to Doxygen 1.8.13
* Upgrade to the latest Doxygen version 1.8.13
 * Drop unused variable DOXYGEN_BIN
 * Reenable --single-branch (travis-ci/travis-ci#5225 is closed)
2017-07-10 21:32:16 +02:00
Milo Yip
37ea16df9d Merge pull request #1009 from pah/setup/travis-trusty
Travis: Switch to Ubuntu 14.04 (Trusty)
2017-07-10 10:08:51 +08:00
Milo Yip
f624a3037c Merge pull request #1010 from pah/fixes/817-stringref-null
Improve handling of NULL strings
2017-07-10 10:08:21 +08:00
Milo Yip
73df6c9325 Merge pull request #1008 from pah/fixes/989-parseresult
ParseResult: improve bool conversion and add operator!=
2017-07-10 10:07:50 +08:00
Milo Yip
4da20e21c6 Merge pull request #1002 from FluxLemur/patch-1
Tutorial: fix typos in examples and broken links
2017-07-10 10:07:02 +08:00
Philipp A. Hartmann
47c3c1ec9f Improved handling of NULL strings
* Safely assert upon passing NULL string without length
   (requires usage of RAPIDJSON_ASSERT within an expression)
 * Allow using a NULL string together with an explicit length 0
   (GenericStringRef, GenericValue::SetString, ...), see #817
 * Add GenericValue::SetString(StringRefType, Allocator&) overload
 * Add tests for the various cases
2017-07-09 14:46:59 +02:00
Philipp A. Hartmann
f1ba61c7ba unittest.h: change RAPIDJSON_ASSERT to allow usage in expressions 2017-07-09 14:31:29 +02:00
Philipp A. Hartmann
eefb618ec9 Travis: Switch to Ubuntu 14.04 (Trusty) 2017-07-09 11:40:56 +02:00
Philipp A. Hartmann
14218aeb0a ParseResult: improve bool conversion and add operator!=
* Use safe-bool idiom for boolean conversion to avoid accidental
   misuse of ParseResult values (closes #989)
 * Add operator!= to support more comparison expressions
   (previously silently/erroneously used operator bool)
2017-07-09 11:13:31 +02:00
Leo Mehr
3aafe12c91 undo changes to links and some minor changes to make the readme more easily readable 2017-06-30 12:42:06 -04:00
Leo Mehr
0d62f5cd35 Tutorial: fix typos in examples and broken links
In the move example, the code uses `contacts` when the diagrams use
`contact` (no 's')

The code in the example:
```    Value contacts(kArrayType);
    // adding elements to contacts array.
    // ...
    o.AddMember("contacts", contacts, d.GetAllocator());  // deep clone contacts (may be with lots of allocations)
    // destruct contacts.
```
2017-06-29 20:27:23 -04:00
Milo Yip
2f45319b4e Merge pull request #968 from TomaszNo/icc-preprocessor-guard
Intel C++ Compiler preprocessor guard for #pragma intrinsic - diyfp.h
2017-06-28 11:36:55 +08:00
Milo Yip
77ae0b9795 Merge pull request #987 from sledgeh/master
Fixed #985 : Unittest failed with MinGWx64. And few small improvement…
2017-06-28 11:36:06 +08:00
Milo Yip
6a8f672ca1 Merge pull request #994 from Chocobo1/svg
Improve readme.md
2017-06-21 17:01:54 +08:00
Chocobo1
a31a380cb8 Improve readme.md
Add alt text for images
Use https whenever possible
Update URLs
Use tools.ietf.org for RFC7159
Correct indent for sublists
Trim trailing whitespaces
2017-06-21 14:40:46 +08:00
kyb
6e81d49b33 Fixed #985 : Unittest failed with MinGWx64. And few small improvement were done while looking for mistakes.
Problem was because of Windows uses backslashes '\', not Unix '/'
2017-06-15 13:24:01 +03:00
Milo Yip
b596f4e990 Merge pull request #977 from miloyip/issue825_patternProperties
Fix patternProperties & additionalProperties lead to ASSERT
2017-06-09 15:06:11 +08:00