[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / ClangScanDeps / modules-cc1.cpp
blob04a365249f3790e012c5e32ed22f27b2f3989e1d
1 // Check that clang-scan-deps works with cc1 command lines
3 // RUN: rm -rf %t
4 // RUN: split-file %s %t
7 //--- modules_cc1.cpp
8 #include "header.h"
10 //--- header.h
12 //--- module.modulemap
13 module header1 { header "header.h" }
15 //--- cdb.json.template
17 "file": "DIR/modules_cc1.cpp",
18 "directory": "DIR",
19 "command": "clang -cc1 DIR/modules_cc1.cpp -fimplicit-module-maps -o modules_cc1.o"
22 // RUN: sed "s|DIR|%/t|g" %t/cdb.json.template > %t/cdb.json
23 // RUN: clang-scan-deps -compilation-database %t/cdb.json -j 1 -mode preprocess-dependency-directives > %t/result
24 // RUN: cat %t/result | sed 's:\\\\\?:/:g' | FileCheck %s -DPREFIX=%/t
26 // CHECK: modules_cc1.o:
27 // CHECK-NEXT: [[PREFIX]]/modules_cc1.cpp
28 // CHECK-NEXT: [[PREFIX]]/module.modulemap
29 // CHECK-NEXT: [[PREFIX]]/header.h