Tomasz Noczynski (Linux)
294ad93e30
To avoid Intel C++ Compiler #1879 warnings:
...
warning #1879 : unimplemented pragma ignored: #pragma intrinsic(_BitScanReverse64)
warning #1879 : unimplemented pragma ignored: #pragma intrinsic(_umul128)
2017-05-25 14:14:16 +02:00
Harry Wong
cba45fe9de
Onley apply to GCC 7
2017-05-04 10:32:45 +08:00
Harry Wong
fe19b7b601
Supress implicit fallthrough in GCC
2017-05-04 10:08:48 +08:00
StilesCrisis
6e2e5c7dbe
Specialize StrLen for char/wchar_t
...
Compilers generally provide a much smarter strlen than ours.
2017-02-28 01:11:30 -08:00
Zhihao Yuan
3cc77d5d63
Treat signed-unsigned conversions as errors.
2017-01-18 18:09:18 -06:00
Milo Yip
03a7391049
Merge pull request #757 from patcheng/feature/fix_clang_warning
...
added assertion to help suppress clang warnings
2016-12-23 10:00:30 +08:00
Andrey Glebov
41ceb8624f
- replaced RAPIDJSON_NEW with C++98 compatible version
2016-12-21 14:03:53 +03:00
Andrey Glebov
9fe93bb984
- replaced RAPIDJSON_NEW macro with variadic varient
2016-12-21 10:17:25 +03:00
Patrick Cheng
91a803d463
Reserve() is sometimes called when stackTop_ is null. The assert is invalid.
2016-09-30 11:12:23 -07:00
Patrick Cheng
9d8df28c1d
added assertion to help suppress clang warnings
2016-09-30 10:47:00 -07:00
Milo Yip
769185d68b
Refactor regex
...
Remove mutable which causes reentrant issue
2016-09-16 12:13:02 +08:00
Milo Yip
3e2172bd52
Add preconditions in writer and string functions
2016-09-03 23:37:00 +08:00
Eli Fidler
9dcf51c3a1
avoid shift out-of-range error
...
UBSAN gave during Reader.ParseNumber_FullPrecisionDouble test:
include/rapidjson/internal/strtod.h:149:11: runtime error: shift exponent 46 is too large for 32-bit type 'int'
2016-06-14 07:01:41 -07:00
Eli Fidler
fe550f3866
avoid array index out-of-bounds
...
UBSAN gave "runtime error: index 13 out of bounds for type 'const uint32_t [10]'"
2016-06-13 07:24:26 -07:00
Milo Yip
7cc76a9d46
Fix #630
2016-05-10 13:20:03 +08:00
Milo Yip
be352d9548
Fix a bug in regex
...
Due to dereferencing a pointer which may be invalidated
2016-04-17 11:59:09 +08:00
Milo Yip
a28e4befed
Improve coverage of Regex by removing default case.
2016-04-17 09:34:04 +08:00
Milo Yip
ecd8fa3437
Improve coverage of regex
2016-04-16 23:04:40 +08:00
Milo Yip
44d114f3ee
Supress VC C4512 warning
2016-04-06 00:47:16 +08:00
Milo Yip
7886965e34
Fix a bug in dtoa
...
This previously affects Writer:: SetMaxDecimalPlaces()
2016-03-08 10:03:31 +08:00
Milo Yip
a62777487d
Normalize line endings but not JSON files
2016-03-04 11:52:18 +08:00
Milo Yip
7fb84d304b
Revert "Normalize all the line endings"
...
This reverts commit 6047e3ce128954ec594e9a893ef2125c9f9b61c7.
2016-03-04 11:51:30 +08:00
Milo Yip
6047e3ce12
Normalize all the line endings
2016-03-04 09:46:11 +08:00
Milo Yip
364545fe57
Prevent gcc wrong warning
2016-03-02 01:39:33 +08:00
Milo Yip
928caf92ed
Fix gcc strict-overflow warning
...
Fix #566 #568
2016-03-02 01:01:17 +08:00
Milo Yip
9ecf073aff
Merge pull request #536 from miloyip/issue362
...
Add Writer::SetMaxDecimalPlaces()
2016-02-15 13:05:05 +08:00
Milo Yip
60116cf11e
Support {0, } and {0, m} in Regex
2016-02-12 14:17:53 +08:00
Milo Yip
1d856b2761
Add Writer::SetMaxDecimalPlaces()
2016-02-11 16:08:17 +08:00
Milo Yip
7e383864c7
Fix #533
2016-02-10 11:36:23 +08:00
Milo Yip
935e2ef7ed
Merge pull request #510 from miloyip/issue509_writingnaninf
...
Fix #509 by checking Nan/Inf when writing a double
2016-02-09 18:12:17 +08:00
Milo Yip
8cb978dc15
Add fwd.h and extract stream.h
2016-02-02 18:20:36 +08:00
Milo Yip
8876d9e6d5
Fix regex doc [ci skip]
2016-02-01 01:38:47 +08:00
Milo Yip
48e0675ec9
Fix gcc warning
2016-01-31 01:47:51 +08:00
Milo Yip
ed12665f16
Fix compilation error for gcc/clang
2016-01-30 22:44:04 +08:00
Milo Yip
a33af83ee4
Optimization for Regex and Schema
2016-01-30 22:41:09 +08:00
Milo Yip
4ce000b9f5
Fix out-of-bound access
2016-01-29 10:53:33 +08:00
Milo Yip
d72f52bbea
Fix clang warning
2016-01-27 14:17:06 +08:00
Milo Yip
05968b7031
Fix schema tests and added SchemaValidatingReader
2016-01-27 13:59:14 +08:00
Milo Yip
6978f878eb
Resolve conflicts
2016-01-26 15:58:22 +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
a6eb15d274
Fix warnings in clang for C++11
2016-01-23 14:37:15 +08:00
Milo Yip
bcc3fb6d9e
Fix stack reserve bug
2015-12-31 16:07:07 +08: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
Milo Yip
74c8dcfd57
Fix clang -Weverything
2015-12-18 18:34:04 +08:00
FrankHB
1640ce613c
Fixed typo
...
<algorith> should be <algorithm>.
2015-10-10 11:33:48 +08:00
Rodion Malinovsky
c7433dfc5e
Add stack::HasAllocator
...
To check is it possible to expose allocator.
2015-09-16 14:53:51 +03:00
Rodion Malinovsky
8604ba0f1c
Add asserts to prevent UB
2015-09-16 14:53:12 +03:00
Milo Yip
74f0673dad
Merge branch 'master' into schema
2015-09-01 09:32:29 +08:00
Philipp A. Hartmann
afbc0406f0
BigInteger: guard against self-assignment
...
Related-to: #404 .
Suggested-by: @cosinekitty
2015-08-13 23:07:30 +02:00