dand-oss
774f25800e
fix up static, so works as DLL ( #559 )
...
* fix up static, so works as DLL
2018-09-25 10:12:12 -04:00
Florian Eich
ca77ef716e
Fix -Wmaybe-uninitialized warning ( #600 )
2018-09-23 19:40:53 -04:00
Stefan Reinhold
d0da14404e
Fix include for std::isspace, fixes #621 ( #622 )
2018-09-04 08:34:18 -05:00
Stefan Reinhold
45d9035a33
Skip newlines in binary decoding ( Fix #387 ) ( #616 )
...
* Skip newlines in binary decoding
This fixes #387
* Skip all whitespace characters
This also removes spaces and tabs in addition to newlines.
2018-09-03 15:55:45 -05:00
Antony Polukhin
b71e672caf
Suppress unused variable warning in release builds ( #611 )
2018-09-03 10:37:47 -05:00
Alexander
1698b47b65
Use nullptr instead of 0 or NULL (clang-tidy warns) ( #603 )
2018-07-02 23:59:04 -05:00
Alexander Karatarakis
0f9a586ca1
Fix _NOEXCEPT not available in VS2017 15.8. Use noexcept for VS2015+ ( #597 )
2018-06-30 16:23:28 -05:00
Jiao
4fb1c4b92b
Enable items to be removed from a sequence ( #582 )
2018-05-14 08:50:28 -05:00
maek
f996468a6a
Fix UTF-8 code points emitting ( #571 )
2018-03-24 10:48:39 -05:00
Denis Gladkikh
cfb7606a84
Fix tag parsing with () ( #532 )
2018-01-28 10:18:55 -06:00
Petr Bena
e2818c423e
Replace noexcept with macro compatible with VS ( #517 )
...
This way it's possible to build using older MSVC (<13) that don't
support this yet. Macro is undefined in each file where it is used so it
should stack well with other libs and sources.
2017-07-25 07:11:10 -05:00
Raul Tambre
3757b2023b
Fix compiler warnings in MSVC, #448 ( #453 )
2016-12-13 16:37:29 -05:00
Jens Breitbart
e3492bb3fa
Fix warnings generated by #438 (comparing unsigned value with <0).
2016-12-03 17:55:50 -06:00
Raul Tambre
8ff7d76e19
Fix compiler warnings about truncations.
2016-12-03 10:09:22 -06:00
Jens Breitbart
0f20ddcdcb
Fix -Wweak-vtables warnings in exception classes.
2016-12-03 09:58:44 -06:00
butataatawa
d025040049
Fix input strings with quotes giving "!" tagging artifacts.
2016-12-02 08:58:48 -06:00
Jesse Beder
b5b03bb9ad
Run clang-format.
2016-10-12 00:00:39 -05:00
Jesse Beder
086fec5c35
Fix formatting when writing \ as a character.
2016-10-11 23:58:03 -05:00
Joseph Langley
519d33fea3
Add YAML_CPP_API decorator to RegEx class and friend operators. ( #407 )
2016-08-18 08:47:09 -05:00
c0nk
f0b15cd6a0
Change node_map type from map<ptr,ptr> to vector<pair<ptr,ptr>> ( #386 )
...
* Change node_map type from map<ptr,ptr> to vector<pair<ptr,ptr>>
Map nodes are now iterated over in document order.
* Change insert_map_pair to always append
Always append in insert_map_pair even if the key is already present.
This breaks the behavior of force_insert which now always inserts KVs
even if the key is already present. The first insert for duplicated keys
now takes precedence for lookups.
2016-07-18 08:54:10 -05:00
Jesse Beder
728e26e426
Update doc, formatting for emit.h.
2016-05-12 23:23:05 -05:00
Jesse Beder
3392ab980e
Update doc, formatting for parse.h.
2016-05-12 23:20:03 -05:00
Jesse Beder
6c569e58b0
Update docs, formatting for Parser.
2016-05-12 23:13:55 -05:00
Jesse Beder
148da47114
Update documentation for Scanner and AnchorDict, and fix formatting.
2016-05-12 23:05:28 -05: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
7d2873ce9f
Fix scalar parsing when a line starts with a comment.
2016-04-02 16:02:26 -05:00
TripleWhy
52bcefa1f1
Make null handling YAML 1.2 compliant.
2016-04-01 17:14:59 -05:00
Scott Wolchok
005a6a19ee
Avoid copying cached RegExes for scalars
...
This improves performance on the test.yaml attached to #158 by about
25% on my machine as compared to the previous commit (0.25s -> 0.20s),
as measured by `time build/util/parse < test.yaml > /dev/null`.
2016-01-30 18:32:00 -06:00
Scott Wolchok
8c35a8ffab
Cache scalar regexes
...
This improves performance on the test.yaml attached to #158 by about
35% on my machine (0.39s -> 0.25s), as measured by
`time build/util/parse < test.yaml > /dev/null`.
2016-01-30 18:31:55 -06:00
Matt Blair
24fa1b3380
Replace Boost usage with C++11 features
...
- Adds 'std=c++11' compiler flags
- Replaces boost::type_traits with std::type_traits
- Replaces boost::shared_ptr with std::shared_ptr
- Replaces std::auto_ptr with std::unique_ptr
- Replaces raw pointers with std::unique_ptr in ptr_vector, ptr_stack, and SettingChanges
- Replaces boost::noncopyable with deleted copy and assignment operators
- Replaces boost::next with std::next
- Replaces boost::enable_if with std::enable_if
- Replaces boost::is_convertible with std::is_convertible
- Replaces ptrdiff_t with std::ptrdiff_t
- Replaces boost::iterator_facade and boost::iterator_adaptor with std::iterator, borrowing the 'proxy reference' technique from boost
- Removes Boost dependency from CMakeLists
- Formats changed files using clang-format
2016-01-10 22:44:15 -05:00
Jesse Beder
36fd93a8d5
Fix formatting when writing " as a character.
2016-01-10 12:08:42 -06:00
Oliver Hamlet
ec8aa4fa62
More useful error messages.
...
Applied the patch given in jbeder/yaml-cpp#200 with the correct code
style.
2015-04-02 20:50:11 +01:00
Jesse Beder
25c466a152
Run clang-format
2015-03-29 21:27:20 -05:00
Jesse Beder
1025f76df1
Fix memory leak when accessing a const Node with a key that doesn't exist.
2015-01-24 17:22:45 -06:00
Jesse Beder
a5e86cde59
Merge core
2015-01-24 16:30:27 -06:00
Jesse Beder
77c90a08e8
Refactor plain scalar validation in the emitter to precompute the invalid regexes
2015-01-24 16:29:57 -06:00
Jesse Beder
899b6614c1
Merge from core
2015-01-24 16:07:36 -06:00
Jesse Beder
bc86fd4aec
Force null to be quoted if written as a string
2015-01-24 16:07:10 -06:00
Jesse Beder
7d932f0a10
Merge from core
2015-01-24 15:59:24 -06: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
f1a889a0b9
Fix initialize ordering warning
2015-01-24 15:32:04 -06:00
Jesse Beder
391111c055
Merge core
2015-01-24 14:40:55 -06:00
Jesse Beder
570ab9d3fb
Fix unused arg warnings for EmitterStyle
2015-01-24 14:39:17 -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
0c280724e9
Add flow/block style setting on Nodes
2015-01-24 13:11:43 -06:00
Jesse Beder
9880b608b9
Merge from core
2015-01-24 12:26:16 -06:00
Jesse Beder
ad712c4f2d
Add EmitterStyle, which will allow sequence or map style (i.e., flow or block) to be preserved between parsing and emitting
2015-01-24 12:19:20 -06:00
Jesse Beder
541fef1545
Merge from core
2014-03-25 22:07:21 -05:00
Jesse Beder
a499d2edad
Add missing include to scanscalar.cpp
2014-03-25 22:04:53 -05:00
Jesse Beder
13130ec20d
clang-format
2014-03-25 00:11:17 -05:00