2 // RUN: split-file %s %t
3 // RUN: sed -e "s@INPUT_DIR@%/t@g" %t/reference.output.json.in >> \
4 // RUN: %t/reference.output.json
5 // RUN: %clang -extract-api -target arm64-apple-macosx \
6 // RUN: %t/input.h -o %t/output.json | FileCheck -allow-empty %s
8 // Generator version is not consistent across test runs, normalize it.
9 // RUN: sed -e "s@\"generator\": \".*\"@\"generator\": \"?\"@g" \
10 // RUN: %t/output.json >> %t/output-normalized.json
11 // RUN: diff %t/reference.output.json %t/output-normalized.json
14 // CHECK-NOT: warning:
22 /// Alpha channel for transparency
26 //--- reference.output.json.in
39 "architecture": "arm64",
54 "source": "c:@S@Color@FI@Red",
55 "target": "c:@S@Color"
59 "source": "c:@S@Color@FI@Green",
60 "target": "c:@S@Color"
64 "source": "c:@S@Color@FI@Blue",
65 "target": "c:@S@Color"
69 "source": "c:@S@Color@FI@Alpha",
70 "target": "c:@S@Color"
75 "declarationFragments": [
102 "text": "Color in RGBA"
107 "interfaceLanguage": "c",
108 "precise": "c:@S@Color"
111 "displayName": "Structure",
112 "identifier": "c.struct"
117 "uri": "file://INPUT_DIR/input.h"
122 "kind": "identifier",
130 "declarationFragments": [
132 "kind": "typeIdentifier",
133 "preciseIdentifier": "c:i",
134 "spelling": "unsigned int"
141 "kind": "identifier",
146 "interfaceLanguage": "c",
147 "precise": "c:@S@Color@FI@Red"
150 "displayName": "Instance Property",
151 "identifier": "c.property"
156 "uri": "file://INPUT_DIR/input.h"
161 "kind": "identifier",
169 "declarationFragments": [
171 "kind": "typeIdentifier",
172 "preciseIdentifier": "c:i",
173 "spelling": "unsigned int"
180 "kind": "identifier",
185 "interfaceLanguage": "c",
186 "precise": "c:@S@Color@FI@Green"
189 "displayName": "Instance Property",
190 "identifier": "c.property"
195 "uri": "file://INPUT_DIR/input.h"
200 "kind": "identifier",
208 "declarationFragments": [
210 "kind": "typeIdentifier",
211 "preciseIdentifier": "c:i",
212 "spelling": "unsigned int"
219 "kind": "identifier",
224 "interfaceLanguage": "c",
225 "precise": "c:@S@Color@FI@Blue"
228 "displayName": "Instance Property",
229 "identifier": "c.property"
234 "uri": "file://INPUT_DIR/input.h"
239 "kind": "identifier",
247 "declarationFragments": [
249 "kind": "typeIdentifier",
250 "preciseIdentifier": "c:i",
251 "spelling": "unsigned int"
258 "kind": "identifier",
275 "text": "Alpha channel for transparency"
280 "interfaceLanguage": "c",
281 "precise": "c:@S@Color@FI@Alpha"
284 "displayName": "Instance Property",
285 "identifier": "c.property"
290 "uri": "file://INPUT_DIR/input.h"
295 "kind": "identifier",