File tree Expand file tree Collapse file tree 15 files changed +34
-34
lines changed Expand file tree Collapse file tree 15 files changed +34
-34
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: rm -rf %t
2
2
// RUN: split-file %s %t
3
- // RUN: sed -e "s@INPUT_DIR@%/t @g" %t/reference.output.json.in >> \
4
- // RUN: %t/reference.output.json
3
+ // RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement} @g" \
4
+ // RUN: %t/reference.output.json.in >> %t/reference.output.json
5
5
// RUN: %clang -extract-api -target arm64-apple-macosx \
6
6
// RUN: %t/input.h -o %t/output.json | FileCheck -allow-empty %s
7
7
Original file line number Diff line number Diff line change 1
1
// RUN: rm -rf %t
2
2
// RUN: split-file %s %t
3
- // RUN: sed -e "s@INPUT_DIR@%/t @g" %t/reference.output.json.in >> \
4
- // RUN: %t/reference.output.json
3
+ // RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement} @g" \
4
+ // RUN: %t/reference.output.json.in >> %t/reference.output.json
5
5
// RUN: %clang -extract-api --product-name=GlobalRecord -target arm64-apple-macosx \
6
6
// RUN: %t/input.h -o %t/output.json | FileCheck -allow-empty %s
7
7
Original file line number Diff line number Diff line change 1
1
// RUN: rm -rf %t
2
2
// RUN: split-file %s %t
3
- // RUN: sed -e "s@INPUT_DIR@%/t @g" %t/reference.output.json.in >> \
4
- // RUN: %t/reference.output.json
3
+ // RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement} @g" \
4
+ // RUN: %t/reference.output.json.in >> %t/reference.output.json
5
5
// RUN: %clang -extract-api --product-name=GlobalRecord -target arm64-apple-macosx \
6
6
// RUN: %t/input1.h %t/input2.h %t/input3.h -o %t/output.json | FileCheck -allow-empty %s
7
7
Original file line number Diff line number Diff line change 1
1
// RUN: rm -rf %t
2
2
// RUN: split-file %s %t
3
- // RUN: sed -e "s@INPUT_DIR@%/t @g" %t/reference.output.json.in >> \
4
- // RUN: %t/reference.output.json
3
+ // RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement} @g" \
4
+ // RUN: %t/reference.output.json.in >> %t/reference.output.json
5
5
// RUN: %clang -extract-api --product-name=GlobalRecord -target arm64-apple-macosx \
6
6
// RUN: %t/input1.h -o %t/output.json | FileCheck -allow-empty %s
7
7
Original file line number Diff line number Diff line change 1
1
// RUN: rm -rf %t
2
2
// RUN: split-file %s %t
3
- // RUN: sed -e "s@INPUT_DIR@%/t @g" %t/reference.output.json.in >> \
4
- // RUN: %t/reference.output.json
5
- // RUN: sed -e "s@INPUT_DIR@%/t @g" %t/known_files_only.hmap.json.in >> \
6
- // RUN: %t/known_files_only.hmap.json
3
+ // RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement} @g" \
4
+ // RUN: %t/reference.output.json.in >> %t/reference.output.json
5
+ // RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement} @g" \
6
+ // RUN: %t/known_files_only.hmap.json.in >> %t/known_files_only.hmap.json
7
7
// RUN: %hmaptool write %t/known_files_only.hmap.json %t/known_files_only.hmap
8
8
// RUN: %clang -extract-api --product-name=KnownFilesOnlyHmap -target arm64-apple-macosx \
9
9
// RUN: -I%t/known_files_only.hmap -I%t/subdir %t/subdir/subdir1/input.h \
Original file line number Diff line number Diff line change 1
1
// RUN: rm -rf %t
2
2
// RUN: split-file %s %t
3
- // RUN: sed -e "s@INPUT_DIR@%/t @g" %t/c.reference.output.json.in >> \
4
- // RUN: %t/c.reference.output.json
5
- // RUN: sed -e "s@INPUT_DIR@%/t @g" %t/objc.reference.output.json.in >> \
6
- // RUN: %t/objc.reference.output.json
3
+ // RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement} @g" \
4
+ // RUN: %t/c.reference.output.json.in >> %t/c.reference.output.json
5
+ // RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement} @g" \
6
+ // RUN: %t/objc.reference.output.json.in >> %t/objc.reference.output.json
7
7
8
8
// RUN: %clang -extract-api -x c-header -target arm64-apple-macosx \
9
9
// RUN: %t/c.h -o %t/c.output.json | FileCheck -allow-empty %s
Original file line number Diff line number Diff line change 1
1
// RUN: rm -rf %t
2
2
// RUN: split-file %s %t
3
- // RUN: sed -e "s@INPUT_DIR@%/t @g" %t/reference.output.json.in >> \
4
- // RUN: %t/reference.output.json
3
+ // RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement} @g" \
4
+ // RUN: %t/reference.output.json.in >> %t/reference.output.json
5
5
// RUN: %clang -extract-api --product-name=Macros -target arm64-apple-macosx \
6
6
// RUN: -x objective-c-header %t/input.h -o %t/output.json | FileCheck -allow-empty %s
7
7
Original file line number Diff line number Diff line change 1
1
// RUN: rm -rf %t
2
2
// RUN: split-file %s %t
3
- // RUN: sed -e "s@INPUT_DIR@%/t @g" %t/reference.output.json.in >> \
4
- // RUN: %t/reference.output.json
3
+ // RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement} @g" \
4
+ // RUN: %t/reference.output.json.in >> %t/reference.output.json
5
5
// RUN: %clang -extract-api --product-name=Macros -target arm64-apple-macosx \
6
6
// RUN: -x objective-c-header %t/input.h -o %t/output.json | FileCheck -allow-empty %s
7
7
Original file line number Diff line number Diff line change 1
1
// RUN: rm -rf %t
2
2
// RUN: split-file %s %t
3
- // RUN: sed -e "s@INPUT_DIR@%/t @g" %t/reference.output.json.in >> \
4
- // RUN: %t/reference.output.json
3
+ // RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement} @g" \
4
+ // RUN: %t/reference.output.json.in >> %t/reference.output.json
5
5
// RUN: %clang -extract-api -x objective-c-header -target arm64-apple-macosx \
6
6
// RUN: %t/input.h -o %t/output.json | FileCheck -allow-empty %s
7
7
Original file line number Diff line number Diff line change 1
1
// RUN: rm -rf %t
2
2
// RUN: split-file %s %t
3
- // RUN: sed -e "s@INPUT_DIR@%/t @g" %t/reference.output.json.in >> \
4
- // RUN: %t/reference.output.json
3
+ // RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement} @g" \
4
+ // RUN: %t/reference.output.json.in >> %t/reference.output.json
5
5
// RUN: %clang -extract-api -x objective-c-header -target arm64-apple-macosx \
6
6
// RUN: %t/input.h -o %t/output.json | FileCheck -allow-empty %s
7
7
Original file line number Diff line number Diff line change 1
1
// RUN: rm -rf %t
2
2
// RUN: split-file %s %t
3
- // RUN: sed -e "s@INPUT_DIR@%/t @g" %t/reference.output.json.in >> \
4
- // RUN: %t/reference.output.json
3
+ // RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement} @g" \
4
+ // RUN: %t/reference.output.json.in >> %t/reference.output.json
5
5
// RUN: %clang -extract-api -x objective-c-header -target arm64-apple-macosx \
6
6
// RUN: %t/input.h -o %t/output.json | FileCheck -allow-empty %s
7
7
Original file line number Diff line number Diff line change 1
1
// RUN: rm -rf %t
2
2
// RUN: split-file %s %t
3
- // RUN: sed -e "s@INPUT_DIR@%/t @g" %t/reference.output.json.in >> \
4
- // RUN: %t/reference.output.json
3
+ // RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement} @g" \
4
+ // RUN: %t/reference.output.json.in >> %t/reference.output.json
5
5
// RUN: %clang -extract-api -target arm64-apple-macosx \
6
6
// RUN: %t/input.h -o %t/output.json | FileCheck -allow-empty %s
7
7
Original file line number Diff line number Diff line change 1
1
// RUN: rm -rf %t
2
2
// RUN: split-file %s %t
3
- // RUN: sed -e "s@INPUT_DIR@%/t @g" %t/reference.output.json.in >> \
4
- // RUN: %t/reference.output.json
3
+ // RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement} @g" \
4
+ // RUN: %t/reference.output.json.in >> %t/reference.output.json
5
5
// RUN: %clang -extract-api --product-name=Typedef -target arm64-apple-macosx \
6
6
// RUN: -x objective-c-header %t/input.h -o %t/output.json | FileCheck -allow-empty %s
7
7
Original file line number Diff line number Diff line change 1
1
// RUN: rm -rf %t
2
2
// RUN: split-file %s %t
3
- // RUN: sed -e "s@INPUT_DIR@%/t @g" %t/reference.output.json.in >> \
4
- // RUN: %t/reference.output.json
3
+ // RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement} @g" \
4
+ // RUN: %t/reference.output.json.in >> %t/reference.output.json
5
5
// RUN: %clang -extract-api --product-name=TypedefChain -target arm64-apple-macosx \
6
6
// RUN: -x objective-c-header %t/input.h -o %t/output.json | FileCheck -allow-empty %s
7
7
Original file line number Diff line number Diff line change 1
1
// RUN: rm -rf %t
2
2
// RUN: split-file %s %t
3
- // RUN: sed -e "s@INPUT_DIR@%/t @g" %t/reference.output.json.in >> \
4
- // RUN: %t/reference.output.json
3
+ // RUN: sed -e "s@INPUT_DIR@%{/t:regex_replacement} @g" \
4
+ // RUN: %t/reference.output.json.in >> %t/reference.output.json
5
5
// RUN: %clang -extract-api --product-name=TypedefChain -target arm64-apple-macosx \
6
6
// RUN: -x objective-c-header %t/input.h -o %t/output.json | FileCheck -allow-empty %s
7
7
You can’t perform that action at this time.
0 commit comments