2 // RUN: split-file %s %t.dir
3 // RUN: sed -e "s|DIR|%/t.dir|g" %t.dir/build/compile-commands.json.in > %t.dir/build/compile-commands.json
4 // RUN: sed -e "s|DIR|%/t.dir|g" %t.dir/build/vfs.yaml.in > %t.dir/build/vfs.yaml
5 // RUN: clang-scan-deps -compilation-database %t.dir/build/compile-commands.json \
6 // RUN: -j 1 -format experimental-full -mode preprocess-dependency-directives > %t.db
7 // RUN: %deps-to-rsp %t.db --module-name=A > %t.A.cc1.rsp
8 // RUN: cat %t.A.cc1.rsp | sed 's:\\\\\?:/:g' | FileCheck %s
10 // CHECK-NOT: build/module.modulemap
11 // CHECK: A/module.modulemap
12 // CHECK-NOT: build/module.modulemap
14 //--- build/compile-commands.json.in
19 "command": "clang DIR/main.m -Imodules/A -fmodules -fmodules-cache-path=DIR/module-cache -fimplicit-modules -fimplicit-module-maps -ivfsoverlay build/vfs.yaml",
24 "command": "clang DIR/main.m -Imodules/A -fmodules -Xclang -fno-modules-share-filemanager -fmodules-cache-path=DIR/module-cache-unshared -fimplicit-modules -fimplicit-module-maps -ivfsoverlay build/vfs.yaml",
29 //--- build/module.modulemap
39 //--- build/vfs.yaml.in
43 "case-sensitive": "false",
44 "use-external-names": true,
49 "external-contents": "DIR/build/module.modulemap",
50 "name": "module.modulemap",
53 "name": "DIR/modules/A",