mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-19 01:09:39 +00:00
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:
parent
c275da6a14
commit
0d62c78c20
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)'
|
||||
|
Loading…
x
Reference in New Issue
Block a user