Andy Maloney
b650bc8287
Modernize: Use range-based for loops for readability ( #762 )
...
Also run clang-format on these files as requested
2019-10-05 14:20:17 -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
Jesse Beder
25c466a152
Run clang-format
2015-03-29 21:27:20 -05: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
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
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
51c84f1c02
Merged the other-tags branch into the trunk (this wasn't an rX:Y merge, since the branch wasn't branched directly from the head of the trunk)
2010-10-19 06:46:55 +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
0a02403fb0
Fixed missing header
2010-05-01 20:05:15 +00:00
Jesse Beder
8c9c9d90da
Added ability to read compact maps in a flow sequence
2009-10-29 19:41:46 +00:00
Jesse Beder
a372bfdc60
Merged r295:305 from the tags branch to the trunk
2009-10-29 15:48:06 +00:00
Jesse Beder
19673ff01a
Moved token enums into Token scope
2009-09-05 02:28:11 +00:00
Jesse Beder
a1460169e6
Fixed bug in anchors with no content. This involved refactoring the 'implicit sequence' concept (where a map and a sequence start on the same indent, but we read the sequence as more indented since the '-' is visually an indent).
2009-08-24 22:56:54 +00:00
Jesse Beder
81c2e6b6ca
Converted indexing to std::size_t, and fixed the Node templated overloads to properly index any index type (determining what is an index type is a bit of a hack - it should be is_convertible<T, std::size_t> (I think), but I just explicitly wrote down a list)
2009-08-19 20:58:07 +00:00
Jesse Beder
7a89920441
Fixed null key/value bug, added tests
2009-07-30 06:49:09 +00:00
Jesse Beder
382f1ba3c7
Fixed empty scalar in sequence bug
2009-07-30 05:54:40 +00:00
Jesse Beder
72919adf55
Added header file inclusion guards
2009-07-29 22:27:20 +00:00
Jesse Beder
b1ce042535
Collected pos, line, and column into a Mark struct
2009-07-27 02:56:18 +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
45322566c7
Set the eol style to native for all files.
2008-09-03 22:20:39 +00:00
Jesse Beder
ec2ecad197
Added CMake scripts for other platforms\nFixed some bugs that gcc complained about\nFixed CR/LF vs LF bug
2008-08-07 03:30:56 +00:00
Jesse Beder
cadc04ce47
Moved all code to src/ and include/ directories.
2008-07-14 04:33:30 +00:00