2 // RUN: split-file %s %t
3 // RUN: sed -e "s|DIR|%/t|g" %t/build/compile-commands.json.in > %t/build/compile-commands.json
4 // RUN: sed -e "s|DIR|%/t|g" %t/build/vfsoverlay.yaml.in > %t/build/vfsoverlay.yaml
5 // RUN: sed -e "s|DIR|%/t|g" %t/build/vfs.notyaml.in > %t/build/vfs.notyaml
6 // RUN: clang-scan-deps -compilation-database %t/build/compile-commands.json \
7 // RUN: -j 1 -format experimental-full --optimize-args=vfs,header-search > %t/deps.db
9 // RUN: %deps-to-rsp %t/deps.db --module-name=A > %t/A.rsp
10 // RUN: cd %t && %clang @%t/A.rsp
12 // Check that the following edge cases are handled by ivfsoverlay tracking
13 // * `-ivfsoverlay` args that depend on earlier `-ivfsoverlay` args.
15 //--- build/compile-commands.json.in
20 "command": "clang -c DIR/0.m -Imodules/A -fmodules -fmodules-cache-path=DIR/module-cache -fimplicit-module-maps -ivfsoverlay build/vfsoverlay.yaml -ivfsoverlay build/vfs.yaml",
25 //--- build/vfsoverlay.yaml.in
29 "case-sensitive":"false",
34 "external-contents":"DIR/build/vfs.notyaml",
45 //--- build/vfs.notyaml.in
49 "case-sensitive":"false",
54 "external-contents":"DIR/build/module.modulemap",
55 "name":"module.modulemap",
59 "external-contents":"DIR/build/A.h",
64 "name":"DIR/modules/A",
70 //--- build/module.modulemap