Skip to content

Commit 62e785b

Browse files
committed
Merge branch 'master' into travis
2 parents facb432 + 0d95d58 commit 62e785b

File tree

123 files changed

+6401
-2021
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+6401
-2021
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,9 @@ Testing
2020
/googletest
2121
install_manifest.txt
2222
Doxyfile
23+
Doxyfile.zh-cn
2324
DartConfiguration.tcl
2425
*.nupkg
26+
27+
# Files created by OS
28+
*.DS_Store

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "thirdparty/gtest"]
22
path = thirdparty/gtest
3-
url = https://chromium.googlesource.com/external/googletest.git
3+
url = https://github.com/google/googletest.git

.travis.yml

Lines changed: 12 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,127 +1,57 @@
1+
sudo: required
2+
dist: trusty
3+
group: edge
4+
15
language: cpp
2-
sudo: false
36
cache:
47
- ccache
58

6-
addons:
7-
apt:
8-
packages: &default_packages
9-
- cmake
10-
- valgrind
11-
129
env:
13-
global:
10+
global:
1411
- USE_CCACHE=1
1512
- CCACHE_SLOPPINESS=pch_defines,time_macros
1613
- CCACHE_COMPRESS=1
1714
- CCACHE_MAXSIZE=100M
1815
- ARCH_FLAGS_x86='-m32' # #266: don't use SSE on 32-bit
1916
- ARCH_FLAGS_x86_64='-msse4.2' # use SSE4.2 on 64-bit
20-
- GITHUB_REPO='miloyip/rapidjson'
17+
- GITHUB_REPO='Tencent/rapidjson'
2118
- secure: "HrsaCb+N66EG1HR+LWH1u51SjaJyRwJEDzqJGYMB7LJ/bfqb9mWKF1fLvZGk46W5t7TVaXRDD5KHFx9DPWvKn4gRUVkwTHEy262ah5ORh8M6n/6VVVajeV/AYt2C0sswdkDBDO4Xq+xy5gdw3G8s1A4Inbm73pUh+6vx+7ltBbk="
2219

20+
before_install:
21+
- sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
22+
- sudo apt-get update -qq
23+
- sudo apt-get install -y cmake valgrind g++-multilib libc6-dbg:i386
24+
2325
matrix:
2426
include:
2527
# gcc
2628
- env: CONF=release ARCH=x86 CXX11=ON
2729
compiler: gcc
28-
addons:
29-
apt:
30-
packages:
31-
- *default_packages
32-
- g++-multilib
33-
- libc6-dbg:i386
3430
- env: CONF=release ARCH=x86_64 CXX11=ON
3531
compiler: gcc
3632
- env: CONF=debug ARCH=x86 CXX11=OFF
3733
compiler: gcc
38-
addons:
39-
apt:
40-
packages:
41-
- *default_packages
42-
- g++-multilib
43-
- libc6-dbg:i386
4434
- env: CONF=debug ARCH=x86_64 CXX11=OFF
4535
compiler: gcc
4636
# clang
4737
- env: CONF=debug ARCH=x86 CXX11=ON CCACHE_CPP2=yes
4838
compiler: clang
49-
addons:
50-
apt:
51-
sources:
52-
- llvm-toolchain-precise-3.7
53-
- ubuntu-toolchain-r-test
54-
packages:
55-
- *default_packages
56-
- g++-multilib
57-
- libc6-dbg:i386
58-
- clang-3.7
5939
- env: CONF=debug ARCH=x86_64 CXX11=ON CCACHE_CPP2=yes
6040
compiler: clang
61-
addons:
62-
apt:
63-
sources:
64-
- llvm-toolchain-precise-3.7
65-
- ubuntu-toolchain-r-test
66-
packages:
67-
- *default_packages
68-
- clang-3.7
6941
- env: CONF=debug ARCH=x86 CXX11=OFF CCACHE_CPP2=yes
7042
compiler: clang
71-
addons:
72-
apt:
73-
sources:
74-
- llvm-toolchain-precise-3.7
75-
- ubuntu-toolchain-r-test
76-
packages:
77-
- *default_packages
78-
- g++-multilib
79-
- libc6-dbg:i386
80-
- clang-3.7
8143
- env: CONF=debug ARCH=x86_64 CXX11=OFF CCACHE_CPP2=yes
8244
compiler: clang
83-
addons:
84-
apt:
85-
sources:
86-
- llvm-toolchain-precise-3.7
87-
- ubuntu-toolchain-r-test
88-
packages:
89-
- *default_packages
90-
- clang-3.7
9145
- env: CONF=release ARCH=x86 CXX11=ON CCACHE_CPP2=yes
9246
compiler: clang
93-
addons:
94-
apt:
95-
sources:
96-
- llvm-toolchain-precise-3.7
97-
- ubuntu-toolchain-r-test
98-
packages:
99-
- *default_packages
100-
- g++-multilib
101-
- libc6-dbg:i386
102-
- clang-3.7
10347
- env: CONF=release ARCH=x86_64 CXX11=ON CCACHE_CPP2=yes
10448
compiler: clang
105-
addons:
106-
apt:
107-
sources:
108-
- llvm-toolchain-precise-3.7
109-
- ubuntu-toolchain-r-test
110-
packages:
111-
- *default_packages
112-
- clang-3.7
11349
# coverage report
11450
- env: CONF=debug ARCH=x86 CXX11=ON GCOV_FLAGS='--coverage'
11551
compiler: gcc
11652
cache:
11753
- ccache
11854
- pip
119-
addons:
120-
apt:
121-
packages:
122-
- *default_packages
123-
- g++-multilib
124-
- libc6-dbg:i386
12555
after_success:
12656
- pip install --user cpp-coveralls
12757
- coveralls -r .. --gcov-options '\-lp' -e thirdparty -e example -e test -e build/CMakeFiles -e include/rapidjson/msinttypes -e include/rapidjson/internal/meta.h -e include/rapidjson/error/en.h
@@ -130,12 +60,6 @@ matrix:
13060
cache:
13161
- ccache
13262
- pip
133-
addons:
134-
apt:
135-
packages:
136-
- *default_packages
137-
- g++-multilib
138-
- libc6-dbg:i386
13963
after_success:
14064
- pip install --user cpp-coveralls
14165
- coveralls -r .. --gcov-options '\-lp' -e thirdparty -e example -e test -e build/CMakeFiles -e include/rapidjson/msinttypes -e include/rapidjson/internal/meta.h -e include/rapidjson/error/en.h
@@ -158,7 +82,7 @@ before_script:
15882
- mkdir build
15983

16084
script:
161-
- if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.7" CC="clang-3.7"; fi
85+
- if [ "$CXX" = "clang++" ]; then export CXXFLAGS="-stdlib=libc++ ${CXXFLAGS}"; fi
16286
- >
16387
eval "ARCH_FLAGS=\${ARCH_FLAGS_${ARCH}}" ;
16488
(cd build && cmake

CHANGELOG.md

Lines changed: 85 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,83 @@ This project adheres to [Semantic Versioning](http://semver.org/).
44

55
## [Unreleased]
66

7+
## 1.1.0 - 2016-08-25
8+
9+
### Added
10+
* Add GenericDocument ctor overload to specify JSON type (#369)
11+
* Add FAQ (#372, #373, #374, #376)
12+
* Add forward declaration header `fwd.h`
13+
* Add @PlatformIO Library Registry manifest file (#400)
14+
* Implement assignment operator for BigInteger (#404)
15+
* Add comments support (#443)
16+
* Adding coapp definition (#460)
17+
* documenttest.cpp: EXPECT_THROW when checking empty allocator (470)
18+
* GenericDocument: add implicit conversion to ParseResult (#480)
19+
* Use <wchar.h> with C++ linkage on Windows ARM (#485)
20+
* Detect little endian for Microsoft ARM targets
21+
* Check Nan/Inf when writing a double (#510)
22+
* Add JSON Schema Implementation (#522)
23+
* Add iostream wrapper (#530)
24+
* Add Jsonx example for converting JSON into JSONx (a XML format) (#531)
25+
* Add optional unresolvedTokenIndex parameter to Pointer::Get() (#532)
26+
* Add encoding validation option for Writer/PrettyWriter (#534)
27+
* Add Writer::SetMaxDecimalPlaces() (#536)
28+
* Support {0, } and {0, m} in Regex (#539)
29+
* Add Value::Get/SetFloat(), Value::IsLossLessFloat/Double() (#540)
30+
* Add stream position check to reader unit tests (#541)
31+
* Add Templated accessors and range-based for (#542)
32+
* Add (Pretty)Writer::RawValue() (#543)
33+
* Add Document::Parse(std::string), Document::Parse(const char*, size_t length) and related APIs. (#553)
34+
* Add move constructor for GenericSchemaDocument (#554)
35+
* Add VS2010 and VS2015 to AppVeyor CI (#555)
36+
* Add parse-by-parts example (#556, #562)
37+
* Support parse number as string (#564, #589)
38+
* Add kFormatSingleLineArray for PrettyWriter (#577)
39+
* Added optional support for trailing commas (#584)
40+
* Added filterkey and filterkeydom examples (#615)
41+
* Added npm docs (#639)
42+
* Allow options for writing and parsing NaN/Infinity (#641)
43+
* Add std::string overload to PrettyWriter::Key() when RAPIDJSON_HAS_STDSTRING is defined (#698)
44+
45+
### Fixed
46+
* Fix gcc/clang/vc warnings (#350, #394, #397, #444, #447, #473, #515, #582, #589, #595, #667)
47+
* Fix documentation (#482, #511, #550, #557, #614, #635, #660)
48+
* Fix emscripten alignment issue (#535)
49+
* Fix missing allocator to uses of AddMember in document (#365)
50+
* CMake will no longer complain that the minimum CMake version is not specified (#501)
51+
* Make it usable with old VC8 (VS2005) (#383)
52+
* Prohibit C++11 move from Document to Value (#391)
53+
* Try to fix incorrect 64-bit alignment (#419)
54+
* Check return of fwrite to avoid warn_unused_result build failures (#421)
55+
* Fix UB in GenericDocument::ParseStream (#426)
56+
* Keep Document value unchanged on parse error (#439)
57+
* Add missing return statement (#450)
58+
* Fix Document::Parse(const Ch*) for transcoding (#478)
59+
* encodings.h: fix typo in preprocessor condition (#495)
60+
* Custom Microsoft headers are necessary only for Visual Studio 2012 and lower (#559)
61+
* Fix memory leak for invalid regex (26e69ffde95ba4773ab06db6457b78f308716f4b)
62+
* Fix a bug in schema minimum/maximum keywords for 64-bit integer (e7149d665941068ccf8c565e77495521331cf390)
63+
* Fix a crash bug in regex (#605)
64+
* Fix schema "required" keyword cannot handle duplicated keys (#609)
65+
* Fix cmake CMP0054 warning (#612)
66+
* Added missing include guards in istreamwrapper.h and ostreamwrapper.h (#634)
67+
* Fix undefined behaviour (#646)
68+
* Fix buffer overrun using PutN (#673)
69+
* Fix rapidjson::value::Get<std::string>() may returns wrong data (#681)
70+
* Add Flush() for all value types (#689)
71+
* Handle malloc() fail in PoolAllocator (#691)
72+
* Fix builds on x32 platform. #703
73+
74+
### Changed
75+
* Clarify problematic JSON license (#392)
76+
* Move Travis to container based infrastructure (#504, #558)
77+
* Make whitespace array more compact (#513)
78+
* Optimize Writer::WriteString() with SIMD (#544)
79+
* x86-64 48-bit pointer optimization for GenericValue (#546)
80+
* Define RAPIDJSON_HAS_CXX11_RVALUE_REFS directly in clang (#617)
81+
* Make GenericSchemaDocument constructor explicit (#674)
82+
* Optimize FindMember when use std::string (#690)
83+
784
## [1.0.2] - 2015-05-14
885

986
### Added
@@ -12,6 +89,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1289
### Fixed
1390
* Include rapidjson.h for all internal/error headers.
1491
* Parsing some numbers incorrectly in full-precision mode (`kFullPrecisionParseFlag`) (#342)
92+
* Fix some numbers parsed incorrectly (#336)
1593
* Fix alignment of 64bit platforms (#328)
1694
* Fix MemoryPoolAllocator::Clear() to clear user-buffer (0691502573f1afd3341073dd24b12c3db20fbde4)
1795

@@ -31,7 +109,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
31109
## [1.0.0] - 2015-04-22
32110

33111
### Added
34-
* 100% [Coverall](https://coveralls.io/r/miloyip/rapidjson?branch=master) coverage.
112+
* 100% [Coverall](https://coveralls.io/r/Tencent/rapidjson?branch=master) coverage.
35113
* Version macros (#311)
36114

37115
### Fixed
@@ -62,7 +140,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
62140
* Redo all documentation (English, Simplified Chinese)
63141

64142
### Changed
65-
* Copyright ownership transfered to THL A29 Limited (a Tencent company).
143+
* Copyright ownership transferred to THL A29 Limited (a Tencent company).
66144
* Migrating from Premake to CMAKE (#192)
67145
* Resolve all warning reports
68146

@@ -73,7 +151,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
73151

74152
## 0.1 - 2011-11-18
75153

76-
[Unreleased]: https://github.com/miloyip/rapidjson/compare/v1.0.2...HEAD
77-
[1.0.2]: https://github.com/miloyip/rapidjson/compare/v1.0.1...v1.0.2
78-
[1.0.1]: https://github.com/miloyip/rapidjson/compare/v1.0.0...v1.0.1
79-
[1.0.0]: https://github.com/miloyip/rapidjson/compare/v1.0-beta...v1.0.0
154+
[Unreleased]: https://github.com/Tencent/rapidjson/compare/v1.1.0...HEAD
155+
[1.1.0]: https://github.com/Tencent/rapidjson/compare/v1.0.2...v1.1.0
156+
[1.0.2]: https://github.com/Tencent/rapidjson/compare/v1.0.1...v1.0.2
157+
[1.0.1]: https://github.com/Tencent/rapidjson/compare/v1.0.0...v1.0.1
158+
[1.0.0]: https://github.com/Tencent/rapidjson/compare/v1.0-beta...v1.0.0

0 commit comments

Comments
 (0)