1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00
Justin Bogner 9583bcccec Detect malformed YAML sequence in yaml::Input::beginSequence()
When reading a yaml::SequenceTraits object, YAMLIO does not report an
error if the yaml item is not a sequence. Instead, YAMLIO reads an
empty sequence. For example:

---
seq:
    foo: 1
    bar: 2
...

If `seq` is a SequenceTraits object, then reading the above yaml will
yield `seq` as an empty sequence.

Fix this to report an error for the above mapping ("not a sequence")

Patch by William Fisher. Thanks!

llvm-svn: 230976
2015-03-02 17:26:43 +00:00
..
2014-06-08 22:29:17 +00:00
2014-09-15 21:51:49 +00:00
2013-08-01 18:42:28 +00:00
2015-02-12 19:53:49 +00:00
2014-12-04 16:59:36 +00:00
2014-12-04 16:59:36 +00:00
2014-06-08 22:29:17 +00:00