clang-tools-extra/test/clang-modernize/HeaderReplacements/main.cpp: Dequote safe chars rather than hairy quoting.

Thanks to Lang, to let me noticed.

llvm-svn: 196559
This commit is contained in:
NAKAMURA Takumi 2013-12-06 02:00:41 +00:00
parent c275da6a14
commit 0d62c78c20
3 changed files with 10 additions and 10 deletions
clang-tools-extra/test/clang-modernize/HeaderReplacements

@ -1,19 +1,19 @@
---
MainSourceFile: $(path)/common.cpp
MainSourceFile: '$(path)/common.cpp'
Replacements:
- FilePath: $(path)/common.h
- FilePath: '$(path)/common.h'
Offset: 506
Length: 2
ReplacementText: elem
- FilePath: $(path)/common.h
- FilePath: '$(path)/common.h'
Offset: 432
Length: 61
ReplacementText: '(auto & elem : C)'
- FilePath: $(path)/common.cpp
- FilePath: '$(path)/common.cpp'
Offset: 289
Length: 2
ReplacementText: elem
- FilePath: $(path)/common.cpp
- FilePath: '$(path)/common.cpp'
Offset: 206
Length: 63
ReplacementText: '(auto & elem : C1)'

@ -12,10 +12,10 @@
// RUN: ls -1 %T/SerializeTest | FileCheck %s --check-prefix=MAIN_CPP
// RUN: ls -1 %T/SerializeTest | FileCheck %s --check-prefix=COMMON_CPP
// We need to put the build path to the expected YAML file to diff against the generated one.
// RUN: sed -e 's#$(path)#%/T/SerializeTest#g' -e "s#\([A-Z]:/.*\.[chp]*\)#'\1'#g" %S/main_expected.yaml > %T/SerializeTest/main_expected.yaml
// RUN: sed -e 's#$(path)#%/T/SerializeTest#g' -e "s#[^[:space:]]'[^[:space:]]#''#g" -e "s#'\([-a-zA-Z0-9_/^., \t]*\)'#\1#g" %S/main_expected.yaml > %T/SerializeTest/main_expected.yaml
// RUN: sed -i -e 's#\\#/#g' %T/SerializeTest/main.cpp_*.yaml
// RUN: diff -b %T/SerializeTest/main_expected.yaml %T/SerializeTest/main.cpp_*.yaml
// RUN: sed -e 's#$(path)#%/T/SerializeTest#g' -e "s#\([A-Z]:/.*\.[chp]*\)#'\1'#g" %S/common_expected.yaml > %T/SerializeTest/common_expected.yaml
// RUN: sed -e 's#$(path)#%/T/SerializeTest#g' -e "s#[^[:space:]]'[^[:space:]]#''#g" -e "s#'\([-a-zA-Z0-9_/^., \t]*\)'#\1#g" %S/common_expected.yaml > %T/SerializeTest/common_expected.yaml
// RUN: sed -i -e 's#\\#/#g' %T/SerializeTest/common.cpp_*.yaml
// RUN: diff -b %T/SerializeTest/common_expected.yaml %T/SerializeTest/common.cpp_*.yaml
//

@ -1,11 +1,11 @@
---
MainSourceFile: $(path)/main.cpp
MainSourceFile: '$(path)/main.cpp'
Replacements:
- FilePath: $(path)/common.h
- FilePath: '$(path)/common.h'
Offset: 506
Length: 2
ReplacementText: elem
- FilePath: $(path)/common.h
- FilePath: '$(path)/common.h'
Offset: 432
Length: 61
ReplacementText: '(auto & elem : C)'