Fargier Sylvain
f18b0b649e
🔧 gcc-4.8.5 support
...
- fix missing initializer for member [-Werror=missing-field-initializers]
- fix ISO C++ forbids casting between pointer-to-function and pointer-to-object [-Werror=pedantic]
- add gcc-4.8 tests
- ubuntu has less patches than CentOS7 on gcc, some old bugs are not
- https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55971
- https://sourceware.org/bugzilla/show_bug.cgi?id=25399
- compat.cmake
- disable some features with old compilers
2022-02-23 09:45:52 +01:00
Joao Paulo Magalhaes
fed929eddc
[fix] re #208 : ensure there is a trailing newline on block literals with spaces only
2022-02-04 19:42:11 +00:00
Joao Paulo Magalhaes
6d4f68aad3
[wip] emit styles
2022-01-29 03:28:22 +00:00
Joao Paulo Magalhaes
835bbddd9e
[fix] re #205 : add missing escaped characters in dquo scalars
2022-01-28 19:07:21 +00:00
Joao Paulo Magalhaes
95f9fb5290
[fix] location: improve corner cases
2022-01-17 00:43:49 +00:00
Joao Paulo Magalhaes
2a1e39f80a
[fix] parser coverage improvements: quoted scalars.
2022-01-16 13:28:00 +00:00
Joao Paulo Magalhaes
3a194abca5
[wip] do not filter in place to avoid quadratic complexity
2022-01-11 15:21:26 +00:00
Joao Paulo Magalhaes
4acb8043e4
[test] improve tree tests
2022-01-05 17:22:15 +00:00
Joao Paulo Magalhaes
b4a603911b
[breaking] rename parse() to either parse_in_place() or parse_in_arena()
2022-01-04 15:33:09 +00:00
Joao Paulo Magalhaes
1558853a63
[impl] add amalgamation into single header file
2021-12-28 11:46:27 +00:00
Joao Paulo Magalhaes
04af04e89d
[test] do not link with yaml-cpp or libyaml
2021-12-25 14:51:41 +00:00
Joao Paulo Magalhaes
ff1d63075c
[wip] test suite: add specific tests for folded and quoted scalar failures
...
[ci skip]
2021-11-03 15:42:15 +00:00
Joao Paulo Magalhaes
d9444dab9d
[fix] assertions which catch syntax errors: turn to checks
2021-08-17 16:48:53 +01:00
Joao Paulo Magalhaes
cd7baa14c5
[fix] debug fixes
2021-07-21 16:28:03 +01:00
Joao Paulo Magalhaes
227380c9e1
[fix] fix anchor ambiguity in unknown scopes
2021-07-21 16:25:00 +01:00
Joao Paulo Magalhaes
d58a27f5c5
[fix] re #131 : fixes key references
2021-06-27 23:46:26 +01:00
Adrian Ebeling
a332fd6142
For scalars, store whether they're quoted; don't resolve if quoted
...
Multiple changes:
1. Distinguish between quoted scalars and unquoted scalars such as:
```yaml
- 5
- '5'
- *a # This is actually a reference
- "*a" # This is just a string that starts with *
```
This is done by adding new flags KEYQUO (quoted key) and VALQUO (quoted value)
to nodes.
2. Don't interpret strings starting with * as references if they're quoted.
So when trying to resolve these "references", ignore them instead.
3. When emitting yaml, if the scalar starts with * and was originally quoted,
emit it with quotes again (so that it doesn't get interpreted as reference
on the round-trip)
2021-05-15 17:20:04 +02:00
Joao Paulo Magalhaes
3dca973efe
[impl] add more thorough testing for null values
2021-01-14 08:38:36 +00:00
Joao Paulo Magalhaes
10e2e5e16b
[tidy] move function definition to source file
2020-09-25 20:39:21 +01:00
Joao Paulo Magalhaes
516fce8124
visual studio: warning 4800 exists in vs2019 and vs2015, but not vs2017
2020-09-24 17:51:59 +01:00
Joao Paulo Magalhaes
26b4b3b29f
fixes #80 : extra pedantic warnings
2020-08-26 23:16:37 +01:00
Joao Paulo Magalhaes
23753dc854
fix tests: docs, tags
2020-05-30 14:07:18 +02:00
Joao Paulo Magalhaes
3fba42c15d
test case node: fix ctors with tags and anchors
2020-05-30 12:55:04 +02:00
Joao Paulo Magalhaes
ede91476e9
tests: run all tests for both linux and windows line endings
2020-05-23 14:06:23 +02:00
Joao Paulo Magalhaes
faefba27d5
re #61 : improve patch coverage
2020-05-11 01:44:56 +02:00
Joao Paulo Magalhaes
e22179e091
add tests for expected location of parse errors
2020-05-10 23:44:32 +02:00
Joao Paulo Magalhaes
14b539809d
speedup compilation of tests by using an object library for the testgroup code
2020-05-10 18:40:38 +02:00
Joao Paulo Magalhaes
308cdb8898
testing: move ExpectError to test_case.hpp
2020-02-09 23:58:30 +01:00
Joao Paulo Magalhaes
88f1a12bc8
Fixes #35 : wrong indentation should trigger ryml error callback
2020-02-08 01:19:36 +01:00
Joao Paulo Magalhaes
af0124bbdd
fix pedantic warnings
2020-01-17 20:53:43 +01:00
Joao Paulo Magalhaes
9904f1eb3a
fix pedantic warnings
2019-12-28 20:45:42 +00:00
Joao Paulo Magalhaes
a0e27a669f
tree: make ctors noexcept. fix warnings.
2019-06-10 23:48:34 +02:00
Joao Paulo Magalhaes
06e511c782
fix docs, sets, emitting tagged containers, remove yamlcpp and libyaml tests
2019-03-31 04:31:49 +01:00
Joao Paulo Magalhaes
2a2c0bad58
make sure that the tree constructors and assignments are tested
2019-03-30 22:22:32 +00:00
Joao Paulo Magalhaes
9d04894dfa
substr: revert back to the old implementation of PrintTo()
2019-03-24 21:37:35 +00:00
Joao Paulo Magalhaes
455e034c47
tree: add reorder()
2019-03-24 19:36:02 +00:00
Joao Paulo Magalhaes
cbd933e35d
fix indentation test
2019-03-08 00:06:31 +00:00
Joao Paulo Magalhaes
19a52c0f56
remove spaces from templates
2019-03-02 03:51:43 +00:00
Joao Paulo Magalhaes
9824ca74c7
fix anchors and refs
2019-03-02 02:32:37 +00:00
Joao Paulo Magalhaes
95f681e3ca
per-key references and anchors WIP [ci skip]
2019-02-25 20:15:18 +00:00
Joao Paulo Magalhaes
c762a100e0
add per-key anchors ; cleanup api and tests
2019-02-25 05:17:07 +00:00
Joao Paulo Magalhaes
88886a29b9
send test cases to different files to prevent extreme compilation units
2019-02-24 22:47:25 +00:00
Joao Paulo Magalhaes
c155187a76
transitioning to use of c4core as basic util library WIP
2018-04-16 01:12:31 +01:00
Joao Paulo Magalhaes
78937cbf64
BREAKING: rename span to subs (as in substring).
2018-03-06 20:07:46 +00:00
Joao Paulo Magalhaes
faf272eda3
more vs pedantic warnings
2018-02-26 03:34:03 +00:00
Joao Paulo Magalhaes
2571431b67
span: fixed compiler hiding the array overloads
2018-02-25 21:30:18 +00:00
Joao Paulo Magalhaes
2d360e7b48
tpl: adding nested ifs
2018-02-25 04:22:06 +00:00
Joao Paulo Magalhaes
c06da5c31a
fix compilation in VS
2018-02-17 22:51:08 +00:00
Joao Paulo Magalhaes
021b374444
fix GCC pedantic errors with -Werror
2018-02-16 22:24:43 +00:00
Joao Paulo Magalhaes
ca8b3d8263
compile in pedantic error mode; fix errors
2018-02-10 21:06:14 +00:00