Lines Matching +full:overlay +full:- +full:relative

4 // RUN: rm -rf %t
5 // RUN: split-file %s %t
7 //--- real/A.modulemap
9 //--- real/A.private.modulemap
12 //--- frameworks/A.framework/Headers/A.h
14 //--- frameworks/A.framework/PrivateHeaders/A_Private.h
17 //--- frameworks/B.framework/Headers/B.h
19 //--- frameworks/B.framework/Modules/module.modulemap
22 //--- overlay.json.template
24 "case-sensitive": "false",
28 "external-contents": "DIR/real/A.modulemap",
33 "external-contents": "DIR/real/A.private.modulemap",
40 //--- cdb.json.template
45 …"command": "clang -fmodules -fmodules-cache-path=DIR/cache -fmodule-name=A -ivfsoverlay DIR/overla…
50 …"command": "clang -fmodules -fmodules-cache-path=DIR/cache -fmodule-name=A -ivfsoverlay DIR/overla…
55 …"command": "clang -fmodules -fmodules-cache-path=DIR/cache -fmodule-name=A -ivfsoverlay DIR/overla…
59 //--- tu1.m
62 //--- tu2.m
65 //--- tu3.m
68 // resolved relative to the module base directory, which is affected by the
70 struct A { float x; }; // expected-error {{incompatible definitions}} expected-note {{type 'float' …
71 // expected-note@frameworks/A.framework/Headers/A.h:1 {{type 'int' here}}
73 // RUN: sed -e "s|DIR|%/t|g" %t/cdb.json.template > %t/cdb.json
74 // RUN: sed -e "s|DIR|%/t|g" %t/overlay.json.template > %t/overlay.json
76 // RUN: clang-scan-deps -compilation-database %t/cdb.json -format experimental-full -j 1 > %t/resul…
77 // RUN: cat %t/result.json | sed 's:\\\\\?:/:g' | FileCheck %s -DPREFIX=%/t
81 // CHECK: "clang-module-deps": []
82 // CHECK: "command-line": [
83 // CHECK: "-x"
84 // CHECK-NEXT: "objective-c"
85 // CHECK-NEXT: "[[PREFIX]]/frameworks/A.framework/Modules/module.modulemap"
90 // CHECK: "clang-module-deps": [
92 // CHECK: "module-name": "A"
95 // CHECK: "command-line": [
96 // CHECK: "-fmodule-map-file=[[PREFIX]]/frameworks/A.framework/Modules/module.modulema…
97 // CHECK: "-x"
98 // CHECK-NEXT: "objective-c"
99 // CHECK-NEXT: "[[PREFIX]]/frameworks/B.framework/Modules/module.modulemap"
104 // CHECK: "translation-units": [
105 // CHECK-NEXT: {
106 // CHECK-NEXT: "commands": [
108 // CHECK: "command-line": [
109 // CHECK: "-fmodule-map-file=[[PREFIX]]/frameworks/A.framework/Modules/module.modu…
110 // CHECK: "-fmodule-name=A"
112 // CHECK: "input-file": "[[PREFIX]]/tu1.m"
113 // CHECK-NEXT: }
116 // CHECK-NEXT: {
117 // CHECK-NEXT: "commands": [
119 // CHECK: "command-line": [
120 // CHECK: "-fmodule-map-file=[[PREFIX]]/frameworks/A.framework/Modules/module.modu…
121 // CHECK: "-fmodule-name=A"
123 // CHECK: "input-file": "[[PREFIX]]/tu2.m"
124 // CHECK-NEXT: }
127 // CHECK-NEXT: {
128 // CHECK-NEXT: "commands": [
130 // CHECK: "clang-module-deps": [
132 // CHECK: "module-name": "B"
135 // CHECK: "command-line": [
136 // CHECK: "-fmodule-map-file=[[PREFIX]]/frameworks/A.framework/Modules/module.modu…
137 // CHECK: "-fmodule-map-file=[[PREFIX]]/frameworks/B.framework/Modules/module.modu…
138 // CHECK: "-fmodule-name=A"
140 // CHECK: "input-file": "[[PREFIX]]/tu3.m"
141 // CHECK-NEXT: }
145 // RUN: %deps-to-rsp %t/result.json --tu-index=0 > %t/tu1.rsp
148 // RUN: %deps-to-rsp %t/result.json --tu-index=1 > %t/tu2.rsp
151 // RUN: %deps-to-rsp %t/result.json --module-name A > %t/A.rsp
152 // RUN: %deps-to-rsp %t/result.json --module-name B > %t/B.rsp
153 // RUN: %deps-to-rsp %t/result.json --tu-index=2 > %t/tu3.rsp
156 // RUN: %clang @%t/tu3.rsp -verify