YAML: Fix the output of sequences that contain flow sequences.
authorAlex Lorenz <arphaman@gmail.com>
Fri, 1 May 2015 18:34:25 +0000 (18:34 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Fri, 1 May 2015 18:34:25 +0000 (18:34 +0000)
commit9791e1ad9cd9756b3d8a1e61a19d88b5b63559b8
tree62d9ebabad09894164913909b6bc9712d7083707
parent0b74b0823fced2ad1b7bab30c1547842dfa692fb
YAML: Fix the output of sequences that contain flow sequences.

This patch fixes a bug where the YAML Output class emitted
a sequence of flow sequences without the '-' characters.
Before:

  seq:
    [ a, b ]
    [ c, d ]

After:

  seq:
    - [ a, b ]
    - [ c, d ]

Reviewers: Justin Bogner

Differential Revision: http://reviews.llvm.org/D9206

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236329 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/YAMLTraits.cpp
unittests/Support/YAMLIOTest.cpp