1// RUN: mkdir -p %T/Inputs/relative-paths
2// RUN: mkdir -p %T/Inputs/relative-paths/subdir
3// RUN: grep -Ev "// *[A-Z-]+:" %S/Inputs/relative-paths/basic.h > %T/Inputs/relative-paths/basic.h
4// RUN: sed "s#\$(path)#%/T/Inputs/relative-paths#" %S/Inputs/relative-paths/file1.yaml > %T/Inputs/relative-paths/file1.yaml
5// RUN: sed "s#\$(path)#%/T/Inputs/relative-paths#" %S/Inputs/relative-paths/file2.yaml > %T/Inputs/relative-paths/file2.yaml
6// RUN: clang-apply-replacements %T/Inputs/relative-paths
7// RUN: FileCheck -input-file=%T/Inputs/relative-paths/basic.h %S/Inputs/relative-paths/basic.h
8

source code of clang-tools-extra/test/clang-apply-replacements/relative-paths.cpp