YAML: Add support for literal block scalar I/O.
authorAlex Lorenz <arphaman@gmail.com>
Thu, 14 May 2015 23:08:22 +0000 (23:08 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Thu, 14 May 2015 23:08:22 +0000 (23:08 +0000)
commit29a3c1d580dad764452c8d448f2e2ae1c90f0674
treeddc6eda6911433c052664a37896dc28eee2f3db6
parenta8adbcb9de5ba60a6b5677c64cd64491806f5881
YAML: Add support for literal block scalar I/O.

This commit gives the users of the YAML Traits I/O library
the ability to serialize scalars using the YAML literal block
scalar notation by allowing them to implement a specialization
of the `BlockScalarTraits` struct for their custom types.

Reviewers: Duncan P. N. Exon Smith

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237404 91177308-0d34-0410-b5e6-96231b3b80d8
docs/YamlIO.rst
include/llvm/Support/YAMLTraits.h
lib/Support/YAMLTraits.cpp
unittests/Support/YAMLIOTest.cpp