summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2018-05-30 10:40:11 +0000
committerIlya Biryukov <ibiryukov@google.com>2018-05-30 10:40:11 +0000
commit5413510e3235394df0cbb596bc6987d1b3e2d950 (patch)
tree07805d1e5f518eff24d338a6635fd4fbf02651ef /clang
parent7a350207aea6106c376f71b1c7d1dc8e4aba3e5b (diff)
downloadbcm5719-llvm-5413510e3235394df0cbb596bc6987d1b3e2d950.tar.gz
bcm5719-llvm-5413510e3235394df0cbb596bc6987d1b3e2d950.zip
[YAML] Quote multiline string scalars
Summary: Otherwise, the YAML parser breaks when trying to read them back in 'key: multiline_string_value' cases. This patch fixes a problem when serializing structs which contain multi-line strings. E.g., if we try to serialize the following struct ``` { "key1": "first line\nsecond line", "key2": "another string" }` ``` Before this patch, we got the YAML output that failed to parse: ``` key1: first line second line key2: another string ``` After the patch, we get: ``` key1: 'first line second line' key2: another string ``` Reviewers: sammccall Reviewed By: sammccall Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D47468 llvm-svn: 333527
Diffstat (limited to 'clang')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud