Chen
98acc5a887
Emit the correct Alias on the key ( #908 ) ( #929 )
2020-07-27 13:49:04 -05:00
Chen
6d5cfab5fd
fix bug from issue298:Emitter stylings settings overridden by node settings. ( #915 )
2020-07-06 08:16:38 -05:00
Chen
08aa252611
Support kinds of emitter format-setting for YAML::Null. ( #906 )
...
* Support kinds of emitter format-setting for YAML::Null.
* update the code and test cases
* add the comment //fallthrough
2020-06-28 23:31:53 -05:00
Ted Lyngmo
0d5c57150c
Apply formatting/style tweaks to comply with compile time diagnostics for g++ and clang++ ( #686 )
...
* Add compilation flags: -Wshadow -Weffc++ -pedantic -pedantic-errors
* Delete implicit copy & move constructors & assignment operators
in classes with pointer data members.
* An exception to the above: Add default copy & move constructors &
assignment operators for the Binary class.
* Convert boolean RegEx operators to binary operators.
* Initialize all members in all classes in ctors.
* Let default ctor delegate to the converting ctor in
Binary and RegEx
* Don't change any tests except regex_test (as a result of the change
to binary operators).
Note: https://bugzilla.redhat.com/show_bug.cgi?id=1544675 makes
-Weffc++ report a false positive in "include/yaml-cpp/node/impl.h".
2019-03-13 15:18:34 -07:00
Raul Tambre
8ff7d76e19
Fix compiler warnings about truncations.
2016-12-03 10:09:22 -06:00
Jesse Beder
a45a61742b
Remove ptr_stack<T>, in favor of vector<unique_ptr<T>>.
...
(Not stack<unique_ptr<T>> because it wasn't quite a stack; we needed to get the second-to-last element sometimes.)
2016-05-12 22:44:59 -05:00
Jesse Beder
087e0673f3
Renamed the None enumeration vaules to NoType to avoid a collision with X11's macro
2015-01-24 15:58:14 -06:00
Jesse Beder
0c8a539361
Fix warnings on visual studio, including changing unsigned to std::size_t
2015-01-24 14:38:22 -06:00
Jesse Beder
06bf012d81
clang-format
2014-03-23 20:08:54 -05:00
Jesse Beder
9b4db068bb
Run clang-format
2014-03-22 12:49:16 -05:00
Jesse Beder
2c2b788391
Fixed doc start/end
2012-05-22 16:53:40 -05:00
Jesse Beder
0e3e6791ff
Added flow map, simple key/value
2012-05-22 16:36:07 -05:00
Jesse Beder
b8a87c43bc
Added flow seq
2012-05-22 15:42:45 -05:00
Jesse Beder
41e4cd3308
Split block map simple/long key for both key/value
2012-05-22 14:20:50 -05:00
Jesse Beder
eef692d7b2
Fixed when we emit the doc start (only if there already is a document in the stream, and we're about to emit a new node)
2012-05-22 12:37:00 -05:00
Jesse Beder
0f3f1e26a7
Fixed map/value
2012-05-21 23:47:57 -05:00
Jesse Beder
f72e325c40
Renamed begin/end scalar/group to started/ended scalar/group
2012-05-21 23:39:45 -05:00
Jesse Beder
d3801b7482
Added newlines, fixed map/map
2012-05-21 23:29:59 -05:00
Jesse Beder
3cae26a75e
Added tags and anchors
2012-05-21 23:19:29 -05:00
Jesse Beder
35d827f187
Structured emitter node handling better
2012-05-21 21:57:25 -05:00
Jesse Beder
23fb2dc811
Fixed basic block seq indentation
2012-05-21 21:11:03 -05:00
Jesse Beder
b5d8241dfa
Added block seq indentation
2012-05-21 21:04:10 -05:00
Jesse Beder
923ccc8fed
Implemented begin/end doc
2012-05-21 16:54:45 -05:00
Jesse Beder
5a2183f55b
Removed old emitter state machine
2012-05-21 16:31:07 -05:00
Jesse Beder
41c2ddc03e
Switched the emitter state enums to scoped enums
2012-05-21 15:05:17 -05:00
Jesse Beder
7ace0e93d2
Fixed signed/unsigned mismatch with the new precision code
2012-01-11 16:50:06 -06:00
Jesse Beder
5024caa69c
Added float/double precision setters
2012-01-11 14:34:04 -06:00
Jesse Beder
3e94c0a037
Switched the 'pragma once' to only happen on MSVC, or gcc >= 3.4 (it was causing trouble on the sun compiler)
2011-09-06 00:16:03 -05:00
Jesse Beder
a518d87cfc
Switched the emitter state's stack of groups to a ptr_stack
2011-03-03 08:11:14 +00:00
Jesse Beder
1f9cc2d327
Compressed the sequence-of-maps emitting (got rid of the unnecessary newline) - issue 61
2011-03-03 03:37:54 +00:00
Jesse Beder
f34d60ca65
Flipped the include guard and the pragma, and don't use the pragma for early versions of gcc (< 3.4)
2011-03-02 06:11:41 +00:00
Jesse Beder
5b8ca9ce01
Moved all the includes to a subfolder yaml-cpp so they don't interfere with other libraries' includes
2010-10-18 07:05:53 +00:00
Jesse Beder
fa0af88dfe
Merged r270:HEAD of the emitting-unicode branch
2009-10-19 23:31:11 +00:00
Jesse Beder
72919adf55
Added header file inclusion guards
2009-07-29 22:27:20 +00:00
Jesse Beder
781fb4d093
Fixed warnings to compile on gcc with -Wall -pedantic -Wextra
2009-07-10 03:30:04 +00:00
Jesse Beder
9245f9253a
Merged emitter branch into trunk, changes r105:r151
2009-05-22 21:52:31 +00:00