[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang-tools-extra / test / clang-apply-replacements / identical-in-TU.cpp
blob024db114b5890cdab423375e967ad51fcd579802
1 // RUN: mkdir -p %T/Inputs/identical-in-TU
3 // RUN: grep -Ev "// *[A-Z-]+:" %S/Inputs/identical-in-TU/identical-in-TU.cpp > %T/Inputs/identical-in-TU/identical-in-TU.cpp
4 // RUN: sed "s#\$(path)#%/T/Inputs/identical-in-TU#" %S/Inputs/identical-in-TU/file1.yaml > %T/Inputs/identical-in-TU/file1.yaml
5 // RUN: sed "s#\$(path)#%/T/Inputs/identical-in-TU#" %S/Inputs/identical-in-TU/file2.yaml > %T/Inputs/identical-in-TU/file2.yaml
6 // RUN: clang-apply-replacements %T/Inputs/identical-in-TU
7 // RUN: FileCheck -input-file=%T/Inputs/identical-in-TU/identical-in-TU.cpp %S/Inputs/identical-in-TU/identical-in-TU.cpp
9 // Similar to identical test but each yaml file contains the same fix twice.
10 // This check ensures that only the duplicated replacements in a single yaml
11 // file are applied twice. Addresses PR45150.