[YAMLIO] Make line-wrapping configurable and test it.
authorFrederic Riss <friss@apple.com>
Fri, 29 May 2015 17:56:28 +0000 (17:56 +0000)
committerFrederic Riss <friss@apple.com>
Fri, 29 May 2015 17:56:28 +0000 (17:56 +0000)
commit9282af9d6c5152fc0d711fbd8a566374a00d4ef4
tree3e6c9ef655f89017c49db6f0128094633f6f43a1
parent82fdcc0e7f6f329404bc4195f98ed0ca92988194
[YAMLIO] Make line-wrapping configurable and test it.

Summary:
We would wrap flow mappings and sequences when they go over a hardcoded 70
characters limit. Make the wrapping column configurable (and default to 70
co the change should be NFC for current users). Passing 0 allows to completely
suppress the wrapping which makes it easier to handle in tools like FileCheck.

Reviewers: bogner

Subscribers: llvm-commits

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

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