1// RUN: mkdir -p %T/Inputs/identical-in-TU
2
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
8
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.
12

source code of clang-tools-extra/test/clang-apply-replacements/identical-in-TU.cpp