[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang-tools-extra / test / clang-apply-replacements / conflict.cpp
blobc1f23421121969664a869b1a413f4f1e0b78a3e3
1 // RUN: mkdir -p %T/Inputs/conflict
2 // RUN: sed "s#\$(path)#%/S/Inputs/conflict#" %S/Inputs/conflict/file1.yaml > %T/Inputs/conflict/file1.yaml
3 // RUN: sed "s#\$(path)#%/S/Inputs/conflict#" %S/Inputs/conflict/file2.yaml > %T/Inputs/conflict/file2.yaml
4 // RUN: sed "s#\$(path)#%/S/Inputs/conflict#" %S/Inputs/conflict/file3.yaml > %T/Inputs/conflict/file3.yaml
5 // RUN: sed "s#\$(path)#%/S/Inputs/conflict#" %S/Inputs/conflict/expected.txt > %T/Inputs/conflict/expected.txt
6 // RUN: not clang-apply-replacements %T/Inputs/conflict > %T/Inputs/conflict/output.txt 2>&1
7 // RUN: diff -b %T/Inputs/conflict/output.txt %T/Inputs/conflict/expected.txt
8 //
9 // Check that the yaml files are *not* deleted after running clang-apply-replacements without remove-change-desc-files even when there is a failure.
10 // RUN: ls -1 %T/Inputs/conflict | FileCheck %s --check-prefix=YAML
12 // Check that the yaml files *are* deleted after running clang-apply-replacements with remove-change-desc-files even when there is a failure.
13 // RUN: not clang-apply-replacements %T/Inputs/conflict -remove-change-desc-files > %T/Inputs/conflict/output.txt 2>&1
14 // RUN: ls -1 %T/Inputs/conflict | FileCheck %s --check-prefix=NO_YAML
16 // YAML: {{^file.\.yaml$}}
17 // NO_YAML-NOT: {{^file.\.yaml$}}