[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / ClangScanDeps / relative_directory.cpp
blobbf5cf91a2f7b6be09670aa5ec0e0ce4d376ae62c
1 // RUN: rm -rf %t.dir
2 // RUN: rm -rf %t.cdb
3 // RUN: mkdir -p %t.dir
4 // RUN: mkdir %t.dir/Inputs
5 // RUN: cp %s %t.dir/Inputs/relative_directory_input1.cpp
6 // RUN: cp %s %t.dir/Inputs/relative_directory_input2.cpp
7 // RUN: touch %t.dir/Inputs/header.h
8 // RUN: sed -e "s|DIR|%/t.dir|g" %S/Inputs/relative_directory.json > %t.cdb
9 //
10 // RUN: clang-scan-deps -compilation-database %t.cdb -j 1 | FileCheck --check-prefixes=CHECK1,CHECK2 %s
12 // The output order is non-deterministic when using more than one thread,
13 // so check the output using two runs.
14 // RUN: clang-scan-deps -compilation-database %t.cdb -j 2 | FileCheck --check-prefix=CHECK1 %s
15 // RUN: clang-scan-deps -compilation-database %t.cdb -j 2 | FileCheck --check-prefix=CHECK2 %s
17 #include <header.h>
19 // CHECK1: relative_directory_input1.o:
20 // CHECK1-NEXT: relative_directory_input1.cpp
21 // CHECK1-NEXT: header.h
23 // CHECK2: relative_directory_input2.o:
24 // CHECK2-NEXT: relative_directory_input2.cpp
25 // CHECK2-NEXT: header.h