summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/ReplacementsYamlTest.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-10-12 16:24:09 +0000
committerZachary Turner <zturner@google.com>2018-10-12 16:24:09 +0000
commitec234052a648d69c4a253dd0b95a9686855e3757 (patch)
tree229ee75795d586e7e7d8f49238a6ce903a1f273b /clang/unittests/Tooling/ReplacementsYamlTest.cpp
parent9bfe91da3d2c2eb3f0cba9dc587a51ddbbf4d8ac (diff)
downloadbcm5719-llvm-ec234052a648d69c4a253dd0b95a9686855e3757.tar.gz
bcm5719-llvm-ec234052a648d69c4a253dd0b95a9686855e3757.zip
Make YAML quote forward slashes.
llvm-svn: 344357
Diffstat (limited to 'clang/unittests/Tooling/ReplacementsYamlTest.cpp')
-rw-r--r--clang/unittests/Tooling/ReplacementsYamlTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/unittests/Tooling/ReplacementsYamlTest.cpp b/clang/unittests/Tooling/ReplacementsYamlTest.cpp
index 3e4193d2adf..2e5a87a931d 100644
--- a/clang/unittests/Tooling/ReplacementsYamlTest.cpp
+++ b/clang/unittests/Tooling/ReplacementsYamlTest.cpp
@@ -33,13 +33,13 @@ TEST(ReplacementsYamlTest, serializesReplacements) {
// NOTE: If this test starts to fail for no obvious reason, check whitespace.
ASSERT_STREQ("---\n"
- "MainSourceFile: /path/to/source.cpp\n"
+ "MainSourceFile: '/path/to/source.cpp'\n"
"Replacements: \n" // Extra whitespace here!
- " - FilePath: /path/to/file1.h\n"
+ " - FilePath: '/path/to/file1.h'\n"
" Offset: 232\n"
" Length: 56\n"
" ReplacementText: 'replacement #1'\n"
- " - FilePath: /path/to/file2.h\n"
+ " - FilePath: '/path/to/file2.h'\n"
" Offset: 301\n"
" Length: 2\n"
" ReplacementText: 'replacement #2'\n"
OpenPOWER on IntegriCloud