[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / AST / ast-dump-decl-json.m
blob18450c9f82026f60c7644e391a68507d496a7855
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin -Wno-unused -fblocks -ast-dump=json -ast-dump-filter Test %s | FileCheck %s
3 @protocol P
4 @end
6 @interface A
7 @end
9 @interface TestObjCIvarDecl : A
10 @end
12 @implementation TestObjCIvarDecl {
13   int varDefault;
14   @private int varPrivate;
15   @protected int varProtected;
16   @public int varPublic;
17   @package int varPackage;
19 @end
21 @interface testObjCMethodDecl : A {
23 - (int) TestObjCMethodDecl: (int)i, ...;
24 @end
26 @implementation testObjCMethodDecl
27 - (int) TestObjCMethodDecl: (int)i, ... {
28   return 0;
30 @end
32 @protocol TestObjCProtocolDecl
33 - (void) foo;
34 @end
36 @interface TestObjCClass : A <P>
37 - (void) foo;
38 @end
40 @implementation TestObjCClass : A {
41   int i;
43 - (void) foo {
45 @end
47 @interface TestObjCClass (TestObjCCategoryDecl) <P>
48 - (void) bar;
49 @end
51 @interface TestGenericInterface<T> : A<P> {
53 @end
55 @implementation TestObjCClass (TestObjCCategoryDecl)
56 - (void) bar {
58 @end
60 @compatibility_alias TestObjCCompatibleAliasDecl A;
62 @interface TestObjCProperty: A
63 @property(getter=getterFoo, setter=setterFoo:) int foo;
64 @property int bar;
65 @end
67 @implementation TestObjCProperty {
68   int i;
70 @synthesize foo=i;
71 @synthesize bar;
72 @end
74 void TestBlockDecl(int x) {
75   ^(int y, ...){ x; };
78 @interface B
79 + (int) foo;
80 @end
82 void f(void) {
83   __typeof__(B.foo) Test;
86 // NOTE: CHECK lines have been autogenerated by gen_ast_dump_json_test.py
89 // CHECK-NOT: {{^}}Dumping
90 // CHECK:  "kind": "ObjCInterfaceDecl",
91 // CHECK-NEXT:  "loc": {
92 // CHECK-NEXT:   "offset": {{[0-9]+}},
93 // CHECK-NEXT:   "file": "{{.*}}",
94 // CHECK-NEXT:   "line": 9,
95 // CHECK-NEXT:   "col": 12,
96 // CHECK-NEXT:   "tokLen": 16
97 // CHECK-NEXT:  },
98 // CHECK-NEXT:  "range": {
99 // CHECK-NEXT:   "begin": {
100 // CHECK-NEXT:    "offset": {{[0-9]+}},
101 // CHECK-NEXT:    "col": 1,
102 // CHECK-NEXT:    "tokLen": 1
103 // CHECK-NEXT:   },
104 // CHECK-NEXT:   "end": {
105 // CHECK-NEXT:    "offset": {{[0-9]+}},
106 // CHECK-NEXT:    "line": 10,
107 // CHECK-NEXT:    "col": 2,
108 // CHECK-NEXT:    "tokLen": 3
109 // CHECK-NEXT:   }
110 // CHECK-NEXT:  },
111 // CHECK-NEXT:  "name": "TestObjCIvarDecl",
112 // CHECK-NEXT:  "mangledName": "_OBJC_CLASS_$_TestObjCIvarDecl",
113 // CHECK-NEXT:  "super": {
114 // CHECK-NEXT:   "id": "0x{{.*}}",
115 // CHECK-NEXT:   "kind": "ObjCInterfaceDecl",
116 // CHECK-NEXT:   "name": "A"
117 // CHECK-NEXT:  },
118 // CHECK-NEXT:  "implementation": {
119 // CHECK-NEXT:   "id": "0x{{.*}}",
120 // CHECK-NEXT:   "kind": "ObjCImplementationDecl",
121 // CHECK-NEXT:   "name": "TestObjCIvarDecl"
122 // CHECK-NEXT:  }
123 // CHECK-NEXT: }
126 // CHECK-NOT: {{^}}Dumping
127 // CHECK:  "kind": "ObjCImplementationDecl",
128 // CHECK-NEXT:  "loc": {
129 // CHECK-NEXT:   "offset": {{[0-9]+}},
130 // CHECK-NEXT:   "file": "{{.*}}",
131 // CHECK-NEXT:   "line": 12,
132 // CHECK-NEXT:   "col": 17,
133 // CHECK-NEXT:   "tokLen": 16
134 // CHECK-NEXT:  },
135 // CHECK-NEXT:  "range": {
136 // CHECK-NEXT:   "begin": {
137 // CHECK-NEXT:    "offset": {{[0-9]+}},
138 // CHECK-NEXT:    "col": 1,
139 // CHECK-NEXT:    "tokLen": 1
140 // CHECK-NEXT:   },
141 // CHECK-NEXT:   "end": {
142 // CHECK-NEXT:    "offset": {{[0-9]+}},
143 // CHECK-NEXT:    "line": 19,
144 // CHECK-NEXT:    "col": 1,
145 // CHECK-NEXT:    "tokLen": 1
146 // CHECK-NEXT:   }
147 // CHECK-NEXT:  },
148 // CHECK-NEXT:  "name": "TestObjCIvarDecl",
149 // CHECK-NEXT:  "super": {
150 // CHECK-NEXT:   "id": "0x0"
151 // CHECK-NEXT:  },
152 // CHECK-NEXT:  "interface": {
153 // CHECK-NEXT:   "id": "0x{{.*}}",
154 // CHECK-NEXT:   "kind": "ObjCInterfaceDecl",
155 // CHECK-NEXT:   "name": "TestObjCIvarDecl"
156 // CHECK-NEXT:  },
157 // CHECK-NEXT:  "inner": [
158 // CHECK-NEXT:   {
159 // CHECK-NEXT:    "id": "0x{{.*}}",
160 // CHECK-NEXT:    "kind": "ObjCIvarDecl",
161 // CHECK-NEXT:    "loc": {
162 // CHECK-NEXT:     "offset": {{[0-9]+}},
163 // CHECK-NEXT:     "line": 13,
164 // CHECK-NEXT:     "col": 7,
165 // CHECK-NEXT:     "tokLen": 10
166 // CHECK-NEXT:    },
167 // CHECK-NEXT:    "range": {
168 // CHECK-NEXT:     "begin": {
169 // CHECK-NEXT:      "offset": {{[0-9]+}},
170 // CHECK-NEXT:      "col": 3,
171 // CHECK-NEXT:      "tokLen": 3
172 // CHECK-NEXT:     },
173 // CHECK-NEXT:     "end": {
174 // CHECK-NEXT:      "offset": {{[0-9]+}},
175 // CHECK-NEXT:      "col": 7,
176 // CHECK-NEXT:      "tokLen": 10
177 // CHECK-NEXT:     }
178 // CHECK-NEXT:    },
179 // CHECK-NEXT:    "name": "varDefault",
180 // CHECK-NEXT:    "type": {
181 // CHECK-NEXT:     "qualType": "int"
182 // CHECK-NEXT:    },
183 // CHECK-NEXT:    "access": "private"
184 // CHECK-NEXT:   },
185 // CHECK-NEXT:   {
186 // CHECK-NEXT:    "id": "0x{{.*}}",
187 // CHECK-NEXT:    "kind": "ObjCIvarDecl",
188 // CHECK-NEXT:    "loc": {
189 // CHECK-NEXT:     "offset": {{[0-9]+}},
190 // CHECK-NEXT:     "line": 14,
191 // CHECK-NEXT:     "col": 16,
192 // CHECK-NEXT:     "tokLen": 10
193 // CHECK-NEXT:    },
194 // CHECK-NEXT:    "range": {
195 // CHECK-NEXT:     "begin": {
196 // CHECK-NEXT:      "offset": {{[0-9]+}},
197 // CHECK-NEXT:      "col": 12,
198 // CHECK-NEXT:      "tokLen": 3
199 // CHECK-NEXT:     },
200 // CHECK-NEXT:     "end": {
201 // CHECK-NEXT:      "offset": {{[0-9]+}},
202 // CHECK-NEXT:      "col": 16,
203 // CHECK-NEXT:      "tokLen": 10
204 // CHECK-NEXT:     }
205 // CHECK-NEXT:    },
206 // CHECK-NEXT:    "name": "varPrivate",
207 // CHECK-NEXT:    "type": {
208 // CHECK-NEXT:     "qualType": "int"
209 // CHECK-NEXT:    },
210 // CHECK-NEXT:    "access": "private"
211 // CHECK-NEXT:   },
212 // CHECK-NEXT:   {
213 // CHECK-NEXT:    "id": "0x{{.*}}",
214 // CHECK-NEXT:    "kind": "ObjCIvarDecl",
215 // CHECK-NEXT:    "loc": {
216 // CHECK-NEXT:     "offset": {{[0-9]+}},
217 // CHECK-NEXT:     "line": 15,
218 // CHECK-NEXT:     "col": 18,
219 // CHECK-NEXT:     "tokLen": 12
220 // CHECK-NEXT:    },
221 // CHECK-NEXT:    "range": {
222 // CHECK-NEXT:     "begin": {
223 // CHECK-NEXT:      "offset": {{[0-9]+}},
224 // CHECK-NEXT:      "col": 14,
225 // CHECK-NEXT:      "tokLen": 3
226 // CHECK-NEXT:     },
227 // CHECK-NEXT:     "end": {
228 // CHECK-NEXT:      "offset": {{[0-9]+}},
229 // CHECK-NEXT:      "col": 18,
230 // CHECK-NEXT:      "tokLen": 12
231 // CHECK-NEXT:     }
232 // CHECK-NEXT:    },
233 // CHECK-NEXT:    "name": "varProtected",
234 // CHECK-NEXT:    "type": {
235 // CHECK-NEXT:     "qualType": "int"
236 // CHECK-NEXT:    },
237 // CHECK-NEXT:    "access": "protected"
238 // CHECK-NEXT:   },
239 // CHECK-NEXT:   {
240 // CHECK-NEXT:    "id": "0x{{.*}}",
241 // CHECK-NEXT:    "kind": "ObjCIvarDecl",
242 // CHECK-NEXT:    "loc": {
243 // CHECK-NEXT:     "offset": {{[0-9]+}},
244 // CHECK-NEXT:     "line": 16,
245 // CHECK-NEXT:     "col": 15,
246 // CHECK-NEXT:     "tokLen": 9
247 // CHECK-NEXT:    },
248 // CHECK-NEXT:    "range": {
249 // CHECK-NEXT:     "begin": {
250 // CHECK-NEXT:      "offset": {{[0-9]+}},
251 // CHECK-NEXT:      "col": 11,
252 // CHECK-NEXT:      "tokLen": 3
253 // CHECK-NEXT:     },
254 // CHECK-NEXT:     "end": {
255 // CHECK-NEXT:      "offset": {{[0-9]+}},
256 // CHECK-NEXT:      "col": 15,
257 // CHECK-NEXT:      "tokLen": 9
258 // CHECK-NEXT:     }
259 // CHECK-NEXT:    },
260 // CHECK-NEXT:    "name": "varPublic",
261 // CHECK-NEXT:    "type": {
262 // CHECK-NEXT:     "qualType": "int"
263 // CHECK-NEXT:    },
264 // CHECK-NEXT:    "access": "public"
265 // CHECK-NEXT:   },
266 // CHECK-NEXT:   {
267 // CHECK-NEXT:    "id": "0x{{.*}}",
268 // CHECK-NEXT:    "kind": "ObjCIvarDecl",
269 // CHECK-NEXT:    "loc": {
270 // CHECK-NEXT:     "offset": {{[0-9]+}},
271 // CHECK-NEXT:     "line": 17,
272 // CHECK-NEXT:     "col": 16,
273 // CHECK-NEXT:     "tokLen": 10
274 // CHECK-NEXT:    },
275 // CHECK-NEXT:    "range": {
276 // CHECK-NEXT:     "begin": {
277 // CHECK-NEXT:      "offset": {{[0-9]+}},
278 // CHECK-NEXT:      "col": 12,
279 // CHECK-NEXT:      "tokLen": 3
280 // CHECK-NEXT:     },
281 // CHECK-NEXT:     "end": {
282 // CHECK-NEXT:      "offset": {{[0-9]+}},
283 // CHECK-NEXT:      "col": 16,
284 // CHECK-NEXT:      "tokLen": 10
285 // CHECK-NEXT:     }
286 // CHECK-NEXT:    },
287 // CHECK-NEXT:    "name": "varPackage",
288 // CHECK-NEXT:    "type": {
289 // CHECK-NEXT:     "qualType": "int"
290 // CHECK-NEXT:    },
291 // CHECK-NEXT:    "access": "package"
292 // CHECK-NEXT:   }
293 // CHECK-NEXT:  ]
294 // CHECK-NEXT: }
297 // CHECK-NOT: {{^}}Dumping
298 // CHECK:  "kind": "ObjCMethodDecl",
299 // CHECK-NEXT:  "loc": {
300 // CHECK-NEXT:   "offset": {{[0-9]+}},
301 // CHECK-NEXT:   "file": "{{.*}}",
302 // CHECK-NEXT:   "line": 23,
303 // CHECK-NEXT:   "col": 1,
304 // CHECK-NEXT:   "tokLen": 1
305 // CHECK-NEXT:  },
306 // CHECK-NEXT:  "range": {
307 // CHECK-NEXT:   "begin": {
308 // CHECK-NEXT:    "offset": {{[0-9]+}},
309 // CHECK-NEXT:    "col": 1,
310 // CHECK-NEXT:    "tokLen": 1
311 // CHECK-NEXT:   },
312 // CHECK-NEXT:   "end": {
313 // CHECK-NEXT:    "offset": {{[0-9]+}},
314 // CHECK-NEXT:    "col": 40,
315 // CHECK-NEXT:    "tokLen": 1
316 // CHECK-NEXT:   }
317 // CHECK-NEXT:  },
318 // CHECK-NEXT:  "name": "TestObjCMethodDecl:",
319 // CHECK-NEXT:  "mangledName": "-[testObjCMethodDecl TestObjCMethodDecl:]",
320 // CHECK-NEXT:  "returnType": {
321 // CHECK-NEXT:   "qualType": "int"
322 // CHECK-NEXT:  },
323 // CHECK-NEXT:  "instance": true,
324 // CHECK-NEXT:  "variadic": true,
325 // CHECK-NEXT:  "inner": [
326 // CHECK-NEXT:   {
327 // CHECK-NEXT:    "id": "0x{{.*}}",
328 // CHECK-NEXT:    "kind": "ParmVarDecl",
329 // CHECK-NEXT:    "loc": {
330 // CHECK-NEXT:     "offset": {{[0-9]+}},
331 // CHECK-NEXT:     "col": 34,
332 // CHECK-NEXT:     "tokLen": 1
333 // CHECK-NEXT:    },
334 // CHECK-NEXT:    "range": {
335 // CHECK-NEXT:     "begin": {
336 // CHECK-NEXT:      "offset": {{[0-9]+}},
337 // CHECK-NEXT:      "col": 30,
338 // CHECK-NEXT:      "tokLen": 3
339 // CHECK-NEXT:     },
340 // CHECK-NEXT:     "end": {
341 // CHECK-NEXT:      "offset": {{[0-9]+}},
342 // CHECK-NEXT:      "col": 34,
343 // CHECK-NEXT:      "tokLen": 1
344 // CHECK-NEXT:     }
345 // CHECK-NEXT:    },
346 // CHECK-NEXT:    "name": "i",
347 // CHECK-NEXT:    "type": {
348 // CHECK-NEXT:     "qualType": "int"
349 // CHECK-NEXT:    }
350 // CHECK-NEXT:   }
351 // CHECK-NEXT:  ]
352 // CHECK-NEXT: }
355 // CHECK-NOT: {{^}}Dumping
356 // CHECK:  "kind": "ObjCMethodDecl",
357 // CHECK-NEXT:  "loc": {
358 // CHECK-NEXT:   "offset": {{[0-9]+}},
359 // CHECK-NEXT:   "file": "{{.*}}",
360 // CHECK-NEXT:   "line": 27,
361 // CHECK-NEXT:   "col": 1,
362 // CHECK-NEXT:   "tokLen": 1
363 // CHECK-NEXT:  },
364 // CHECK-NEXT:  "range": {
365 // CHECK-NEXT:   "begin": {
366 // CHECK-NEXT:    "offset": {{[0-9]+}},
367 // CHECK-NEXT:    "col": 1,
368 // CHECK-NEXT:    "tokLen": 1
369 // CHECK-NEXT:   },
370 // CHECK-NEXT:   "end": {
371 // CHECK-NEXT:    "offset": {{[0-9]+}},
372 // CHECK-NEXT:    "line": 29,
373 // CHECK-NEXT:    "col": 1,
374 // CHECK-NEXT:    "tokLen": 1
375 // CHECK-NEXT:   }
376 // CHECK-NEXT:  },
377 // CHECK-NEXT:  "name": "TestObjCMethodDecl:",
378 // CHECK-NEXT:  "mangledName": "-[testObjCMethodDecl TestObjCMethodDecl:]",
379 // CHECK-NEXT:  "returnType": {
380 // CHECK-NEXT:   "qualType": "int"
381 // CHECK-NEXT:  },
382 // CHECK-NEXT:  "instance": true,
383 // CHECK-NEXT:  "variadic": true,
384 // CHECK-NEXT:  "inner": [
385 // CHECK-NEXT:   {
386 // CHECK-NEXT:    "id": "0x{{.*}}",
387 // CHECK-NEXT:    "kind": "ImplicitParamDecl",
388 // CHECK-NEXT:    "loc": {},
389 // CHECK-NEXT:    "range": {
390 // CHECK-NEXT:     "begin": {},
391 // CHECK-NEXT:     "end": {}
392 // CHECK-NEXT:    },
393 // CHECK-NEXT:    "isImplicit": true,
394 // CHECK-NEXT:    "name": "self",
395 // CHECK-NEXT:    "type": {
396 // CHECK-NEXT:     "qualType": "testObjCMethodDecl *"
397 // CHECK-NEXT:    }
398 // CHECK-NEXT:   },
399 // CHECK-NEXT:   {
400 // CHECK-NEXT:    "id": "0x{{.*}}",
401 // CHECK-NEXT:    "kind": "ImplicitParamDecl",
402 // CHECK-NEXT:    "loc": {},
403 // CHECK-NEXT:    "range": {
404 // CHECK-NEXT:     "begin": {},
405 // CHECK-NEXT:     "end": {}
406 // CHECK-NEXT:    },
407 // CHECK-NEXT:    "isImplicit": true,
408 // CHECK-NEXT:    "name": "_cmd",
409 // CHECK-NEXT:    "type": {
410 // CHECK-NEXT:     "desugaredQualType": "SEL *",
411 // CHECK-NEXT:     "qualType": "SEL",
412 // CHECK-NEXT:     "typeAliasDeclId": "0x{{.*}}"
413 // CHECK-NEXT:    }
414 // CHECK-NEXT:   },
415 // CHECK-NEXT:   {
416 // CHECK-NEXT:    "id": "0x{{.*}}",
417 // CHECK-NEXT:    "kind": "ParmVarDecl",
418 // CHECK-NEXT:    "loc": {
419 // CHECK-NEXT:     "offset": {{[0-9]+}},
420 // CHECK-NEXT:     "line": 27,
421 // CHECK-NEXT:     "col": 34,
422 // CHECK-NEXT:     "tokLen": 1
423 // CHECK-NEXT:    },
424 // CHECK-NEXT:    "range": {
425 // CHECK-NEXT:     "begin": {
426 // CHECK-NEXT:      "offset": {{[0-9]+}},
427 // CHECK-NEXT:      "col": 30,
428 // CHECK-NEXT:      "tokLen": 3
429 // CHECK-NEXT:     },
430 // CHECK-NEXT:     "end": {
431 // CHECK-NEXT:      "offset": {{[0-9]+}},
432 // CHECK-NEXT:      "col": 34,
433 // CHECK-NEXT:      "tokLen": 1
434 // CHECK-NEXT:     }
435 // CHECK-NEXT:    },
436 // CHECK-NEXT:    "name": "i",
437 // CHECK-NEXT:    "type": {
438 // CHECK-NEXT:     "qualType": "int"
439 // CHECK-NEXT:    }
440 // CHECK-NEXT:   },
441 // CHECK-NEXT:   {
442 // CHECK-NEXT:    "id": "0x{{.*}}",
443 // CHECK-NEXT:    "kind": "CompoundStmt",
444 // CHECK-NEXT:    "range": {
445 // CHECK-NEXT:     "begin": {
446 // CHECK-NEXT:      "offset": {{[0-9]+}},
447 // CHECK-NEXT:      "col": 41,
448 // CHECK-NEXT:      "tokLen": 1
449 // CHECK-NEXT:     },
450 // CHECK-NEXT:     "end": {
451 // CHECK-NEXT:      "offset": {{[0-9]+}},
452 // CHECK-NEXT:      "line": 29,
453 // CHECK-NEXT:      "col": 1,
454 // CHECK-NEXT:      "tokLen": 1
455 // CHECK-NEXT:     }
456 // CHECK-NEXT:    },
457 // CHECK-NEXT:    "inner": [
458 // CHECK-NEXT:     {
459 // CHECK-NEXT:      "id": "0x{{.*}}",
460 // CHECK-NEXT:      "kind": "ReturnStmt",
461 // CHECK-NEXT:      "range": {
462 // CHECK-NEXT:       "begin": {
463 // CHECK-NEXT:        "offset": {{[0-9]+}},
464 // CHECK-NEXT:        "line": 28,
465 // CHECK-NEXT:        "col": 3,
466 // CHECK-NEXT:        "tokLen": 6
467 // CHECK-NEXT:       },
468 // CHECK-NEXT:       "end": {
469 // CHECK-NEXT:        "offset": {{[0-9]+}},
470 // CHECK-NEXT:        "col": 10,
471 // CHECK-NEXT:        "tokLen": 1
472 // CHECK-NEXT:       }
473 // CHECK-NEXT:      },
474 // CHECK-NEXT:      "inner": [
475 // CHECK-NEXT:       {
476 // CHECK-NEXT:        "id": "0x{{.*}}",
477 // CHECK-NEXT:        "kind": "IntegerLiteral",
478 // CHECK-NEXT:        "range": {
479 // CHECK-NEXT:         "begin": {
480 // CHECK-NEXT:          "offset": {{[0-9]+}},
481 // CHECK-NEXT:          "col": 10,
482 // CHECK-NEXT:          "tokLen": 1
483 // CHECK-NEXT:         },
484 // CHECK-NEXT:         "end": {
485 // CHECK-NEXT:          "offset": {{[0-9]+}},
486 // CHECK-NEXT:          "col": 10,
487 // CHECK-NEXT:          "tokLen": 1
488 // CHECK-NEXT:         }
489 // CHECK-NEXT:        },
490 // CHECK-NEXT:        "type": {
491 // CHECK-NEXT:         "qualType": "int"
492 // CHECK-NEXT:        },
493 // CHECK-NEXT:        "valueCategory": "prvalue",
494 // CHECK-NEXT:        "value": "0"
495 // CHECK-NEXT:       }
496 // CHECK-NEXT:      ]
497 // CHECK-NEXT:     }
498 // CHECK-NEXT:    ]
499 // CHECK-NEXT:   }
500 // CHECK-NEXT:  ]
501 // CHECK-NEXT: }
504 // CHECK-NOT: {{^}}Dumping
505 // CHECK:  "kind": "ObjCProtocolDecl",
506 // CHECK-NEXT:  "loc": {
507 // CHECK-NEXT:   "offset": {{[0-9]+}},
508 // CHECK-NEXT:   "file": "{{.*}}",
509 // CHECK-NEXT:   "line": 32,
510 // CHECK-NEXT:   "col": 11,
511 // CHECK-NEXT:   "tokLen": 20
512 // CHECK-NEXT:  },
513 // CHECK-NEXT:  "range": {
514 // CHECK-NEXT:   "begin": {
515 // CHECK-NEXT:    "offset": {{[0-9]+}},
516 // CHECK-NEXT:    "col": 1,
517 // CHECK-NEXT:    "tokLen": 1
518 // CHECK-NEXT:   },
519 // CHECK-NEXT:   "end": {
520 // CHECK-NEXT:    "offset": {{[0-9]+}},
521 // CHECK-NEXT:    "line": 34,
522 // CHECK-NEXT:    "col": 2,
523 // CHECK-NEXT:    "tokLen": 3
524 // CHECK-NEXT:   }
525 // CHECK-NEXT:  },
526 // CHECK-NEXT:  "name": "TestObjCProtocolDecl",
527 // CHECK-NEXT:  "inner": [
528 // CHECK-NEXT:   {
529 // CHECK-NEXT:    "id": "0x{{.*}}",
530 // CHECK-NEXT:    "kind": "ObjCMethodDecl",
531 // CHECK-NEXT:    "loc": {
532 // CHECK-NEXT:     "offset": {{[0-9]+}},
533 // CHECK-NEXT:     "line": 33,
534 // CHECK-NEXT:     "col": 1,
535 // CHECK-NEXT:     "tokLen": 1
536 // CHECK-NEXT:    },
537 // CHECK-NEXT:    "range": {
538 // CHECK-NEXT:     "begin": {
539 // CHECK-NEXT:      "offset": {{[0-9]+}},
540 // CHECK-NEXT:      "col": 1,
541 // CHECK-NEXT:      "tokLen": 1
542 // CHECK-NEXT:     },
543 // CHECK-NEXT:     "end": {
544 // CHECK-NEXT:      "offset": {{[0-9]+}},
545 // CHECK-NEXT:      "col": 13,
546 // CHECK-NEXT:      "tokLen": 1
547 // CHECK-NEXT:     }
548 // CHECK-NEXT:    },
549 // CHECK-NEXT:    "name": "foo",
550 // CHECK-NEXT:    "mangledName": "-[TestObjCProtocolDecl foo]",
551 // CHECK-NEXT:    "returnType": {
552 // CHECK-NEXT:     "qualType": "void"
553 // CHECK-NEXT:    },
554 // CHECK-NEXT:    "instance": true
555 // CHECK-NEXT:   }
556 // CHECK-NEXT:  ]
557 // CHECK-NEXT: }
560 // CHECK-NOT: {{^}}Dumping
561 // CHECK:  "kind": "ObjCInterfaceDecl",
562 // CHECK-NEXT:  "loc": {
563 // CHECK-NEXT:   "offset": {{[0-9]+}},
564 // CHECK-NEXT:   "file": "{{.*}}",
565 // CHECK-NEXT:   "line": 36,
566 // CHECK-NEXT:   "col": 12,
567 // CHECK-NEXT:   "tokLen": 13
568 // CHECK-NEXT:  },
569 // CHECK-NEXT:  "range": {
570 // CHECK-NEXT:   "begin": {
571 // CHECK-NEXT:    "offset": {{[0-9]+}},
572 // CHECK-NEXT:    "col": 1,
573 // CHECK-NEXT:    "tokLen": 1
574 // CHECK-NEXT:   },
575 // CHECK-NEXT:   "end": {
576 // CHECK-NEXT:    "offset": {{[0-9]+}},
577 // CHECK-NEXT:    "line": 38,
578 // CHECK-NEXT:    "col": 2,
579 // CHECK-NEXT:    "tokLen": 3
580 // CHECK-NEXT:   }
581 // CHECK-NEXT:  },
582 // CHECK-NEXT:  "name": "TestObjCClass",
583 // CHECK-NEXT:  "mangledName": "_OBJC_CLASS_$_TestObjCClass",
584 // CHECK-NEXT:  "super": {
585 // CHECK-NEXT:   "id": "0x{{.*}}",
586 // CHECK-NEXT:   "kind": "ObjCInterfaceDecl",
587 // CHECK-NEXT:   "name": "A"
588 // CHECK-NEXT:  },
589 // CHECK-NEXT:  "implementation": {
590 // CHECK-NEXT:   "id": "0x{{.*}}",
591 // CHECK-NEXT:   "kind": "ObjCImplementationDecl",
592 // CHECK-NEXT:   "name": "TestObjCClass"
593 // CHECK-NEXT:  },
594 // CHECK-NEXT:  "protocols": [
595 // CHECK-NEXT:   {
596 // CHECK-NEXT:    "id": "0x{{.*}}",
597 // CHECK-NEXT:    "kind": "ObjCProtocolDecl",
598 // CHECK-NEXT:    "name": "P"
599 // CHECK-NEXT:   }
600 // CHECK-NEXT:  ],
601 // CHECK-NEXT:  "inner": [
602 // CHECK-NEXT:   {
603 // CHECK-NEXT:    "id": "0x{{.*}}",
604 // CHECK-NEXT:    "kind": "ObjCMethodDecl",
605 // CHECK-NEXT:    "loc": {
606 // CHECK-NEXT:     "offset": {{[0-9]+}},
607 // CHECK-NEXT:     "line": 37,
608 // CHECK-NEXT:     "col": 1,
609 // CHECK-NEXT:     "tokLen": 1
610 // CHECK-NEXT:    },
611 // CHECK-NEXT:    "range": {
612 // CHECK-NEXT:     "begin": {
613 // CHECK-NEXT:      "offset": {{[0-9]+}},
614 // CHECK-NEXT:      "col": 1,
615 // CHECK-NEXT:      "tokLen": 1
616 // CHECK-NEXT:     },
617 // CHECK-NEXT:     "end": {
618 // CHECK-NEXT:      "offset": {{[0-9]+}},
619 // CHECK-NEXT:      "col": 13,
620 // CHECK-NEXT:      "tokLen": 1
621 // CHECK-NEXT:     }
622 // CHECK-NEXT:    },
623 // CHECK-NEXT:    "name": "foo",
624 // CHECK-NEXT:    "mangledName": "-[TestObjCClass foo]",
625 // CHECK-NEXT:    "returnType": {
626 // CHECK-NEXT:     "qualType": "void"
627 // CHECK-NEXT:    },
628 // CHECK-NEXT:    "instance": true
629 // CHECK-NEXT:   }
630 // CHECK-NEXT:  ]
631 // CHECK-NEXT: }
634 // CHECK-NOT: {{^}}Dumping
635 // CHECK:  "kind": "ObjCImplementationDecl",
636 // CHECK-NEXT:  "loc": {
637 // CHECK-NEXT:   "offset": {{[0-9]+}},
638 // CHECK-NEXT:   "file": "{{.*}}",
639 // CHECK-NEXT:   "line": 40,
640 // CHECK-NEXT:   "col": 17,
641 // CHECK-NEXT:   "tokLen": 13
642 // CHECK-NEXT:  },
643 // CHECK-NEXT:  "range": {
644 // CHECK-NEXT:   "begin": {
645 // CHECK-NEXT:    "offset": {{[0-9]+}},
646 // CHECK-NEXT:    "col": 1,
647 // CHECK-NEXT:    "tokLen": 1
648 // CHECK-NEXT:   },
649 // CHECK-NEXT:   "end": {
650 // CHECK-NEXT:    "offset": {{[0-9]+}},
651 // CHECK-NEXT:    "line": 45,
652 // CHECK-NEXT:    "col": 1,
653 // CHECK-NEXT:    "tokLen": 1
654 // CHECK-NEXT:   }
655 // CHECK-NEXT:  },
656 // CHECK-NEXT:  "name": "TestObjCClass",
657 // CHECK-NEXT:  "super": {
658 // CHECK-NEXT:   "id": "0x{{.*}}",
659 // CHECK-NEXT:   "kind": "ObjCInterfaceDecl",
660 // CHECK-NEXT:   "name": "A"
661 // CHECK-NEXT:  },
662 // CHECK-NEXT:  "interface": {
663 // CHECK-NEXT:   "id": "0x{{.*}}",
664 // CHECK-NEXT:   "kind": "ObjCInterfaceDecl",
665 // CHECK-NEXT:   "name": "TestObjCClass"
666 // CHECK-NEXT:  },
667 // CHECK-NEXT:  "inner": [
668 // CHECK-NEXT:   {
669 // CHECK-NEXT:    "id": "0x{{.*}}",
670 // CHECK-NEXT:    "kind": "ObjCIvarDecl",
671 // CHECK-NEXT:    "loc": {
672 // CHECK-NEXT:     "offset": {{[0-9]+}},
673 // CHECK-NEXT:     "line": 41,
674 // CHECK-NEXT:     "col": 7,
675 // CHECK-NEXT:     "tokLen": 1
676 // CHECK-NEXT:    },
677 // CHECK-NEXT:    "range": {
678 // CHECK-NEXT:     "begin": {
679 // CHECK-NEXT:      "offset": {{[0-9]+}},
680 // CHECK-NEXT:      "col": 3,
681 // CHECK-NEXT:      "tokLen": 3
682 // CHECK-NEXT:     },
683 // CHECK-NEXT:     "end": {
684 // CHECK-NEXT:      "offset": {{[0-9]+}},
685 // CHECK-NEXT:      "col": 7,
686 // CHECK-NEXT:      "tokLen": 1
687 // CHECK-NEXT:     }
688 // CHECK-NEXT:    },
689 // CHECK-NEXT:    "name": "i",
690 // CHECK-NEXT:    "type": {
691 // CHECK-NEXT:     "qualType": "int"
692 // CHECK-NEXT:    },
693 // CHECK-NEXT:    "access": "private"
694 // CHECK-NEXT:   },
695 // CHECK-NEXT:   {
696 // CHECK-NEXT:    "id": "0x{{.*}}",
697 // CHECK-NEXT:    "kind": "ObjCMethodDecl",
698 // CHECK-NEXT:    "loc": {
699 // CHECK-NEXT:     "offset": {{[0-9]+}},
700 // CHECK-NEXT:     "line": 43,
701 // CHECK-NEXT:     "col": 1,
702 // CHECK-NEXT:     "tokLen": 1
703 // CHECK-NEXT:    },
704 // CHECK-NEXT:    "range": {
705 // CHECK-NEXT:     "begin": {
706 // CHECK-NEXT:      "offset": {{[0-9]+}},
707 // CHECK-NEXT:      "col": 1,
708 // CHECK-NEXT:      "tokLen": 1
709 // CHECK-NEXT:     },
710 // CHECK-NEXT:     "end": {
711 // CHECK-NEXT:      "offset": {{[0-9]+}},
712 // CHECK-NEXT:      "line": 44,
713 // CHECK-NEXT:      "col": 1,
714 // CHECK-NEXT:      "tokLen": 1
715 // CHECK-NEXT:     }
716 // CHECK-NEXT:    },
717 // CHECK-NEXT:    "name": "foo",
718 // CHECK-NEXT:    "mangledName": "-[TestObjCClass foo]",
719 // CHECK-NEXT:    "returnType": {
720 // CHECK-NEXT:     "qualType": "void"
721 // CHECK-NEXT:    },
722 // CHECK-NEXT:    "instance": true,
723 // CHECK-NEXT:    "inner": [
724 // CHECK-NEXT:     {
725 // CHECK-NEXT:      "id": "0x{{.*}}",
726 // CHECK-NEXT:      "kind": "ImplicitParamDecl",
727 // CHECK-NEXT:      "loc": {},
728 // CHECK-NEXT:      "range": {
729 // CHECK-NEXT:       "begin": {},
730 // CHECK-NEXT:       "end": {}
731 // CHECK-NEXT:      },
732 // CHECK-NEXT:      "isImplicit": true,
733 // CHECK-NEXT:      "name": "self",
734 // CHECK-NEXT:      "type": {
735 // CHECK-NEXT:       "qualType": "TestObjCClass *"
736 // CHECK-NEXT:      }
737 // CHECK-NEXT:     },
738 // CHECK-NEXT:     {
739 // CHECK-NEXT:      "id": "0x{{.*}}",
740 // CHECK-NEXT:      "kind": "ImplicitParamDecl",
741 // CHECK-NEXT:      "loc": {},
742 // CHECK-NEXT:      "range": {
743 // CHECK-NEXT:       "begin": {},
744 // CHECK-NEXT:       "end": {}
745 // CHECK-NEXT:      },
746 // CHECK-NEXT:      "isImplicit": true,
747 // CHECK-NEXT:      "name": "_cmd",
748 // CHECK-NEXT:      "type": {
749 // CHECK-NEXT:       "desugaredQualType": "SEL *",
750 // CHECK-NEXT:       "qualType": "SEL",
751 // CHECK-NEXT:       "typeAliasDeclId": "0x{{.*}}"
752 // CHECK-NEXT:      }
753 // CHECK-NEXT:     },
754 // CHECK-NEXT:     {
755 // CHECK-NEXT:      "id": "0x{{.*}}",
756 // CHECK-NEXT:      "kind": "CompoundStmt",
757 // CHECK-NEXT:      "range": {
758 // CHECK-NEXT:       "begin": {
759 // CHECK-NEXT:        "offset": {{[0-9]+}},
760 // CHECK-NEXT:        "line": 43,
761 // CHECK-NEXT:        "col": 14,
762 // CHECK-NEXT:        "tokLen": 1
763 // CHECK-NEXT:       },
764 // CHECK-NEXT:       "end": {
765 // CHECK-NEXT:        "offset": {{[0-9]+}},
766 // CHECK-NEXT:        "line": 44,
767 // CHECK-NEXT:        "col": 1,
768 // CHECK-NEXT:        "tokLen": 1
769 // CHECK-NEXT:       }
770 // CHECK-NEXT:      }
771 // CHECK-NEXT:     }
772 // CHECK-NEXT:    ]
773 // CHECK-NEXT:   }
774 // CHECK-NEXT:  ]
775 // CHECK-NEXT: }
778 // CHECK-NOT: {{^}}Dumping
779 // CHECK:  "kind": "ObjCCategoryDecl",
780 // CHECK-NEXT:  "loc": {
781 // CHECK-NEXT:   "offset": {{[0-9]+}},
782 // CHECK-NEXT:   "file": "{{.*}}",
783 // CHECK-NEXT:   "line": 47,
784 // CHECK-NEXT:   "col": 12,
785 // CHECK-NEXT:   "tokLen": 13
786 // CHECK-NEXT:  },
787 // CHECK-NEXT:  "range": {
788 // CHECK-NEXT:   "begin": {
789 // CHECK-NEXT:    "offset": {{[0-9]+}},
790 // CHECK-NEXT:    "col": 1,
791 // CHECK-NEXT:    "tokLen": 1
792 // CHECK-NEXT:   },
793 // CHECK-NEXT:   "end": {
794 // CHECK-NEXT:    "offset": {{[0-9]+}},
795 // CHECK-NEXT:    "line": 49,
796 // CHECK-NEXT:    "col": 2,
797 // CHECK-NEXT:    "tokLen": 3
798 // CHECK-NEXT:   }
799 // CHECK-NEXT:  },
800 // CHECK-NEXT:  "name": "TestObjCCategoryDecl",
801 // CHECK-NEXT:  "interface": {
802 // CHECK-NEXT:   "id": "0x{{.*}}",
803 // CHECK-NEXT:   "kind": "ObjCInterfaceDecl",
804 // CHECK-NEXT:   "name": "TestObjCClass"
805 // CHECK-NEXT:  },
806 // CHECK-NEXT:  "implementation": {
807 // CHECK-NEXT:   "id": "0x{{.*}}",
808 // CHECK-NEXT:   "kind": "ObjCCategoryImplDecl",
809 // CHECK-NEXT:   "name": "TestObjCCategoryDecl"
810 // CHECK-NEXT:  },
811 // CHECK-NEXT:  "protocols": [
812 // CHECK-NEXT:   {
813 // CHECK-NEXT:    "id": "0x{{.*}}",
814 // CHECK-NEXT:    "kind": "ObjCProtocolDecl",
815 // CHECK-NEXT:    "name": "P"
816 // CHECK-NEXT:   }
817 // CHECK-NEXT:  ],
818 // CHECK-NEXT:  "inner": [
819 // CHECK-NEXT:   {
820 // CHECK-NEXT:    "id": "0x{{.*}}",
821 // CHECK-NEXT:    "kind": "ObjCMethodDecl",
822 // CHECK-NEXT:    "loc": {
823 // CHECK-NEXT:     "offset": {{[0-9]+}},
824 // CHECK-NEXT:     "line": 48,
825 // CHECK-NEXT:     "col": 1,
826 // CHECK-NEXT:     "tokLen": 1
827 // CHECK-NEXT:    },
828 // CHECK-NEXT:    "range": {
829 // CHECK-NEXT:     "begin": {
830 // CHECK-NEXT:      "offset": {{[0-9]+}},
831 // CHECK-NEXT:      "col": 1,
832 // CHECK-NEXT:      "tokLen": 1
833 // CHECK-NEXT:     },
834 // CHECK-NEXT:     "end": {
835 // CHECK-NEXT:      "offset": {{[0-9]+}},
836 // CHECK-NEXT:      "col": 13,
837 // CHECK-NEXT:      "tokLen": 1
838 // CHECK-NEXT:     }
839 // CHECK-NEXT:    },
840 // CHECK-NEXT:    "name": "bar",
841 // CHECK-NEXT:    "mangledName": "-[TestObjCClass(TestObjCCategoryDecl) bar]",
842 // CHECK-NEXT:    "returnType": {
843 // CHECK-NEXT:     "qualType": "void"
844 // CHECK-NEXT:    },
845 // CHECK-NEXT:    "instance": true
846 // CHECK-NEXT:   }
847 // CHECK-NEXT:  ]
848 // CHECK-NEXT: }
851 // CHECK-NOT: {{^}}Dumping
852 // CHECK:  "kind": "ObjCInterfaceDecl",
853 // CHECK-NEXT:  "loc": {
854 // CHECK-NEXT:   "offset": {{[0-9]+}},
855 // CHECK-NEXT:   "file": "{{.*}}",
856 // CHECK-NEXT:   "line": 51,
857 // CHECK-NEXT:   "col": 12,
858 // CHECK-NEXT:   "tokLen": 20
859 // CHECK-NEXT:  },
860 // CHECK-NEXT:  "range": {
861 // CHECK-NEXT:   "begin": {
862 // CHECK-NEXT:    "offset": {{[0-9]+}},
863 // CHECK-NEXT:    "col": 1,
864 // CHECK-NEXT:    "tokLen": 1
865 // CHECK-NEXT:   },
866 // CHECK-NEXT:   "end": {
867 // CHECK-NEXT:    "offset": {{[0-9]+}},
868 // CHECK-NEXT:    "line": 53,
869 // CHECK-NEXT:    "col": 2,
870 // CHECK-NEXT:    "tokLen": 3
871 // CHECK-NEXT:   }
872 // CHECK-NEXT:  },
873 // CHECK-NEXT:  "name": "TestGenericInterface",
874 // CHECK-NEXT:  "mangledName": "_OBJC_CLASS_$_TestGenericInterface",
875 // CHECK-NEXT:  "super": {
876 // CHECK-NEXT:   "id": "0x{{.*}}",
877 // CHECK-NEXT:   "kind": "ObjCInterfaceDecl",
878 // CHECK-NEXT:   "name": "A"
879 // CHECK-NEXT:  },
880 // CHECK-NEXT:  "implementation": {
881 // CHECK-NEXT:   "id": "0x0"
882 // CHECK-NEXT:  },
883 // CHECK-NEXT:  "protocols": [
884 // CHECK-NEXT:   {
885 // CHECK-NEXT:    "id": "0x{{.*}}",
886 // CHECK-NEXT:    "kind": "ObjCProtocolDecl",
887 // CHECK-NEXT:    "name": "P"
888 // CHECK-NEXT:   }
889 // CHECK-NEXT:  ],
890 // CHECK-NEXT:  "inner": [
891 // CHECK-NEXT:   {
892 // CHECK-NEXT:    "id": "0x{{.*}}",
893 // CHECK-NEXT:    "kind": "ObjCTypeParamDecl",
894 // CHECK-NEXT:    "loc": {
895 // CHECK-NEXT:     "offset": {{[0-9]+}},
896 // CHECK-NEXT:     "line": 51,
897 // CHECK-NEXT:     "col": 33,
898 // CHECK-NEXT:     "tokLen": 1
899 // CHECK-NEXT:    },
900 // CHECK-NEXT:    "range": {
901 // CHECK-NEXT:     "begin": {
902 // CHECK-NEXT:      "offset": {{[0-9]+}},
903 // CHECK-NEXT:      "col": 33,
904 // CHECK-NEXT:      "tokLen": 1
905 // CHECK-NEXT:     },
906 // CHECK-NEXT:     "end": {
907 // CHECK-NEXT:      "offset": {{[0-9]+}},
908 // CHECK-NEXT:      "col": 33,
909 // CHECK-NEXT:      "tokLen": 1
910 // CHECK-NEXT:     }
911 // CHECK-NEXT:    },
912 // CHECK-NEXT:    "name": "T",
913 // CHECK-NEXT:    "type": {
914 // CHECK-NEXT:     "desugaredQualType": "id",
915 // CHECK-NEXT:     "qualType": "id",
916 // CHECK-NEXT:     "typeAliasDeclId": "0x{{.*}}"
917 // CHECK-NEXT:    }
918 // CHECK-NEXT:   }
919 // CHECK-NEXT:  ]
920 // CHECK-NEXT: }
923 // CHECK-NOT: {{^}}Dumping
924 // CHECK:  "kind": "ObjCCategoryImplDecl",
925 // CHECK-NEXT:  "loc": {
926 // CHECK-NEXT:   "offset": {{[0-9]+}},
927 // CHECK-NEXT:   "file": "{{.*}}",
928 // CHECK-NEXT:   "line": 55,
929 // CHECK-NEXT:   "col": 17,
930 // CHECK-NEXT:   "tokLen": 13
931 // CHECK-NEXT:  },
932 // CHECK-NEXT:  "range": {
933 // CHECK-NEXT:   "begin": {
934 // CHECK-NEXT:    "offset": {{[0-9]+}},
935 // CHECK-NEXT:    "col": 1,
936 // CHECK-NEXT:    "tokLen": 1
937 // CHECK-NEXT:   },
938 // CHECK-NEXT:   "end": {
939 // CHECK-NEXT:    "offset": {{[0-9]+}},
940 // CHECK-NEXT:    "line": 58,
941 // CHECK-NEXT:    "col": 1,
942 // CHECK-NEXT:    "tokLen": 1
943 // CHECK-NEXT:   }
944 // CHECK-NEXT:  },
945 // CHECK-NEXT:  "name": "TestObjCCategoryDecl",
946 // CHECK-NEXT:  "interface": {
947 // CHECK-NEXT:   "id": "0x{{.*}}",
948 // CHECK-NEXT:   "kind": "ObjCInterfaceDecl",
949 // CHECK-NEXT:   "name": "TestObjCClass"
950 // CHECK-NEXT:  },
951 // CHECK-NEXT:  "categoryDecl": {
952 // CHECK-NEXT:   "id": "0x{{.*}}",
953 // CHECK-NEXT:   "kind": "ObjCCategoryDecl",
954 // CHECK-NEXT:   "name": "TestObjCCategoryDecl"
955 // CHECK-NEXT:  },
956 // CHECK-NEXT:  "inner": [
957 // CHECK-NEXT:   {
958 // CHECK-NEXT:    "id": "0x{{.*}}",
959 // CHECK-NEXT:    "kind": "ObjCMethodDecl",
960 // CHECK-NEXT:    "loc": {
961 // CHECK-NEXT:     "offset": {{[0-9]+}},
962 // CHECK-NEXT:     "line": 56,
963 // CHECK-NEXT:     "col": 1,
964 // CHECK-NEXT:     "tokLen": 1
965 // CHECK-NEXT:    },
966 // CHECK-NEXT:    "range": {
967 // CHECK-NEXT:     "begin": {
968 // CHECK-NEXT:      "offset": {{[0-9]+}},
969 // CHECK-NEXT:      "col": 1,
970 // CHECK-NEXT:      "tokLen": 1
971 // CHECK-NEXT:     },
972 // CHECK-NEXT:     "end": {
973 // CHECK-NEXT:      "offset": {{[0-9]+}},
974 // CHECK-NEXT:      "line": 57,
975 // CHECK-NEXT:      "col": 1,
976 // CHECK-NEXT:      "tokLen": 1
977 // CHECK-NEXT:     }
978 // CHECK-NEXT:    },
979 // CHECK-NEXT:    "name": "bar",
980 // CHECK-NEXT:    "mangledName": "-[TestObjCClass(TestObjCCategoryDecl) bar]",
981 // CHECK-NEXT:    "returnType": {
982 // CHECK-NEXT:     "qualType": "void"
983 // CHECK-NEXT:    },
984 // CHECK-NEXT:    "instance": true,
985 // CHECK-NEXT:    "inner": [
986 // CHECK-NEXT:     {
987 // CHECK-NEXT:      "id": "0x{{.*}}",
988 // CHECK-NEXT:      "kind": "ImplicitParamDecl",
989 // CHECK-NEXT:      "loc": {},
990 // CHECK-NEXT:      "range": {
991 // CHECK-NEXT:       "begin": {},
992 // CHECK-NEXT:       "end": {}
993 // CHECK-NEXT:      },
994 // CHECK-NEXT:      "isImplicit": true,
995 // CHECK-NEXT:      "name": "self",
996 // CHECK-NEXT:      "type": {
997 // CHECK-NEXT:       "qualType": "TestObjCClass *"
998 // CHECK-NEXT:      }
999 // CHECK-NEXT:     },
1000 // CHECK-NEXT:     {
1001 // CHECK-NEXT:      "id": "0x{{.*}}",
1002 // CHECK-NEXT:      "kind": "ImplicitParamDecl",
1003 // CHECK-NEXT:      "loc": {},
1004 // CHECK-NEXT:      "range": {
1005 // CHECK-NEXT:       "begin": {},
1006 // CHECK-NEXT:       "end": {}
1007 // CHECK-NEXT:      },
1008 // CHECK-NEXT:      "isImplicit": true,
1009 // CHECK-NEXT:      "name": "_cmd",
1010 // CHECK-NEXT:      "type": {
1011 // CHECK-NEXT:       "desugaredQualType": "SEL *",
1012 // CHECK-NEXT:       "qualType": "SEL",
1013 // CHECK-NEXT:       "typeAliasDeclId": "0x{{.*}}"
1014 // CHECK-NEXT:      }
1015 // CHECK-NEXT:     },
1016 // CHECK-NEXT:     {
1017 // CHECK-NEXT:      "id": "0x{{.*}}",
1018 // CHECK-NEXT:      "kind": "CompoundStmt",
1019 // CHECK-NEXT:      "range": {
1020 // CHECK-NEXT:       "begin": {
1021 // CHECK-NEXT:        "offset": {{[0-9]+}},
1022 // CHECK-NEXT:        "line": 56,
1023 // CHECK-NEXT:        "col": 14,
1024 // CHECK-NEXT:        "tokLen": 1
1025 // CHECK-NEXT:       },
1026 // CHECK-NEXT:       "end": {
1027 // CHECK-NEXT:        "offset": {{[0-9]+}},
1028 // CHECK-NEXT:        "line": 57,
1029 // CHECK-NEXT:        "col": 1,
1030 // CHECK-NEXT:        "tokLen": 1
1031 // CHECK-NEXT:       }
1032 // CHECK-NEXT:      }
1033 // CHECK-NEXT:     }
1034 // CHECK-NEXT:    ]
1035 // CHECK-NEXT:   }
1036 // CHECK-NEXT:  ]
1037 // CHECK-NEXT: }
1040 // CHECK-NOT: {{^}}Dumping
1041 // CHECK:  "kind": "ObjCCompatibleAliasDecl",
1042 // CHECK-NEXT:  "loc": {
1043 // CHECK-NEXT:   "offset": {{[0-9]+}},
1044 // CHECK-NEXT:   "file": "{{.*}}",
1045 // CHECK-NEXT:   "line": 60,
1046 // CHECK-NEXT:   "col": 1,
1047 // CHECK-NEXT:   "tokLen": 1
1048 // CHECK-NEXT:  },
1049 // CHECK-NEXT:  "range": {
1050 // CHECK-NEXT:   "begin": {
1051 // CHECK-NEXT:    "offset": {{[0-9]+}},
1052 // CHECK-NEXT:    "col": 1,
1053 // CHECK-NEXT:    "tokLen": 1
1054 // CHECK-NEXT:   },
1055 // CHECK-NEXT:   "end": {
1056 // CHECK-NEXT:    "offset": {{[0-9]+}},
1057 // CHECK-NEXT:    "col": 1,
1058 // CHECK-NEXT:    "tokLen": 1
1059 // CHECK-NEXT:   }
1060 // CHECK-NEXT:  },
1061 // CHECK-NEXT:  "name": "TestObjCCompatibleAliasDecl",
1062 // CHECK-NEXT:  "interface": {
1063 // CHECK-NEXT:   "id": "0x{{.*}}",
1064 // CHECK-NEXT:   "kind": "ObjCInterfaceDecl",
1065 // CHECK-NEXT:   "name": "A"
1066 // CHECK-NEXT:  }
1067 // CHECK-NEXT: }
1070 // CHECK-NOT: {{^}}Dumping
1071 // CHECK:  "kind": "ObjCInterfaceDecl",
1072 // CHECK-NEXT:  "loc": {
1073 // CHECK-NEXT:   "offset": {{[0-9]+}},
1074 // CHECK-NEXT:   "file": "{{.*}}",
1075 // CHECK-NEXT:   "line": 62,
1076 // CHECK-NEXT:   "col": 12,
1077 // CHECK-NEXT:   "tokLen": 16
1078 // CHECK-NEXT:  },
1079 // CHECK-NEXT:  "range": {
1080 // CHECK-NEXT:   "begin": {
1081 // CHECK-NEXT:    "offset": {{[0-9]+}},
1082 // CHECK-NEXT:    "col": 1,
1083 // CHECK-NEXT:    "tokLen": 1
1084 // CHECK-NEXT:   },
1085 // CHECK-NEXT:   "end": {
1086 // CHECK-NEXT:    "offset": {{[0-9]+}},
1087 // CHECK-NEXT:    "line": 65,
1088 // CHECK-NEXT:    "col": 2,
1089 // CHECK-NEXT:    "tokLen": 3
1090 // CHECK-NEXT:   }
1091 // CHECK-NEXT:  },
1092 // CHECK-NEXT:  "name": "TestObjCProperty",
1093 // CHECK-NEXT:  "mangledName": "_OBJC_CLASS_$_TestObjCProperty",
1094 // CHECK-NEXT:  "super": {
1095 // CHECK-NEXT:   "id": "0x{{.*}}",
1096 // CHECK-NEXT:   "kind": "ObjCInterfaceDecl",
1097 // CHECK-NEXT:   "name": "A"
1098 // CHECK-NEXT:  },
1099 // CHECK-NEXT:  "implementation": {
1100 // CHECK-NEXT:   "id": "0x{{.*}}",
1101 // CHECK-NEXT:   "kind": "ObjCImplementationDecl",
1102 // CHECK-NEXT:   "name": "TestObjCProperty"
1103 // CHECK-NEXT:  },
1104 // CHECK-NEXT:  "inner": [
1105 // CHECK-NEXT:   {
1106 // CHECK-NEXT:    "id": "0x{{.*}}",
1107 // CHECK-NEXT:    "kind": "ObjCPropertyDecl",
1108 // CHECK-NEXT:    "loc": {
1109 // CHECK-NEXT:     "offset": {{[0-9]+}},
1110 // CHECK-NEXT:     "line": 63,
1111 // CHECK-NEXT:     "col": 52,
1112 // CHECK-NEXT:     "tokLen": 3
1113 // CHECK-NEXT:    },
1114 // CHECK-NEXT:    "range": {
1115 // CHECK-NEXT:     "begin": {
1116 // CHECK-NEXT:      "offset": {{[0-9]+}},
1117 // CHECK-NEXT:      "col": 1,
1118 // CHECK-NEXT:      "tokLen": 1
1119 // CHECK-NEXT:     },
1120 // CHECK-NEXT:     "end": {
1121 // CHECK-NEXT:      "offset": {{[0-9]+}},
1122 // CHECK-NEXT:      "col": 52,
1123 // CHECK-NEXT:      "tokLen": 3
1124 // CHECK-NEXT:     }
1125 // CHECK-NEXT:    },
1126 // CHECK-NEXT:    "name": "foo",
1127 // CHECK-NEXT:    "type": {
1128 // CHECK-NEXT:     "qualType": "int"
1129 // CHECK-NEXT:    },
1130 // CHECK-NEXT:    "getter": {
1131 // CHECK-NEXT:     "id": "0x{{.*}}",
1132 // CHECK-NEXT:     "kind": "ObjCMethodDecl",
1133 // CHECK-NEXT:     "name": "getterFoo"
1134 // CHECK-NEXT:    },
1135 // CHECK-NEXT:    "setter": {
1136 // CHECK-NEXT:     "id": "0x{{.*}}",
1137 // CHECK-NEXT:     "kind": "ObjCMethodDecl",
1138 // CHECK-NEXT:     "name": "setterFoo:"
1139 // CHECK-NEXT:    },
1140 // CHECK-NEXT:    "assign": true,
1141 // CHECK-NEXT:    "readwrite": true,
1142 // CHECK-NEXT:    "atomic": true,
1143 // CHECK-NEXT:    "unsafe_unretained": true
1144 // CHECK-NEXT:   },
1145 // CHECK-NEXT:   {
1146 // CHECK-NEXT:    "id": "0x{{.*}}",
1147 // CHECK-NEXT:    "kind": "ObjCPropertyDecl",
1148 // CHECK-NEXT:    "loc": {
1149 // CHECK-NEXT:     "offset": {{[0-9]+}},
1150 // CHECK-NEXT:     "line": 64,
1151 // CHECK-NEXT:     "col": 15,
1152 // CHECK-NEXT:     "tokLen": 3
1153 // CHECK-NEXT:    },
1154 // CHECK-NEXT:    "range": {
1155 // CHECK-NEXT:     "begin": {
1156 // CHECK-NEXT:      "offset": {{[0-9]+}},
1157 // CHECK-NEXT:      "col": 1,
1158 // CHECK-NEXT:      "tokLen": 1
1159 // CHECK-NEXT:     },
1160 // CHECK-NEXT:     "end": {
1161 // CHECK-NEXT:      "offset": {{[0-9]+}},
1162 // CHECK-NEXT:      "col": 15,
1163 // CHECK-NEXT:      "tokLen": 3
1164 // CHECK-NEXT:     }
1165 // CHECK-NEXT:    },
1166 // CHECK-NEXT:    "name": "bar",
1167 // CHECK-NEXT:    "type": {
1168 // CHECK-NEXT:     "qualType": "int"
1169 // CHECK-NEXT:    },
1170 // CHECK-NEXT:    "assign": true,
1171 // CHECK-NEXT:    "readwrite": true,
1172 // CHECK-NEXT:    "atomic": true,
1173 // CHECK-NEXT:    "unsafe_unretained": true
1174 // CHECK-NEXT:   },
1175 // CHECK-NEXT:   {
1176 // CHECK-NEXT:    "id": "0x{{.*}}",
1177 // CHECK-NEXT:    "kind": "ObjCMethodDecl",
1178 // CHECK-NEXT:    "loc": {
1179 // CHECK-NEXT:     "offset": {{[0-9]+}},
1180 // CHECK-NEXT:     "line": 63,
1181 // CHECK-NEXT:     "col": 52,
1182 // CHECK-NEXT:     "tokLen": 3
1183 // CHECK-NEXT:    },
1184 // CHECK-NEXT:    "range": {
1185 // CHECK-NEXT:     "begin": {
1186 // CHECK-NEXT:      "offset": {{[0-9]+}},
1187 // CHECK-NEXT:      "col": 52,
1188 // CHECK-NEXT:      "tokLen": 3
1189 // CHECK-NEXT:     },
1190 // CHECK-NEXT:     "end": {
1191 // CHECK-NEXT:      "offset": {{[0-9]+}},
1192 // CHECK-NEXT:      "col": 52,
1193 // CHECK-NEXT:      "tokLen": 3
1194 // CHECK-NEXT:     }
1195 // CHECK-NEXT:    },
1196 // CHECK-NEXT:    "isImplicit": true,
1197 // CHECK-NEXT:    "name": "getterFoo",
1198 // CHECK-NEXT:    "mangledName": "-[TestObjCProperty getterFoo]",
1199 // CHECK-NEXT:    "returnType": {
1200 // CHECK-NEXT:     "qualType": "int"
1201 // CHECK-NEXT:    },
1202 // CHECK-NEXT:    "instance": true
1203 // CHECK-NEXT:   },
1204 // CHECK-NEXT:   {
1205 // CHECK-NEXT:    "id": "0x{{.*}}",
1206 // CHECK-NEXT:    "kind": "ObjCMethodDecl",
1207 // CHECK-NEXT:    "loc": {
1208 // CHECK-NEXT:     "offset": {{[0-9]+}},
1209 // CHECK-NEXT:     "col": 52,
1210 // CHECK-NEXT:     "tokLen": 3
1211 // CHECK-NEXT:    },
1212 // CHECK-NEXT:    "range": {
1213 // CHECK-NEXT:     "begin": {
1214 // CHECK-NEXT:      "offset": {{[0-9]+}},
1215 // CHECK-NEXT:      "col": 52,
1216 // CHECK-NEXT:      "tokLen": 3
1217 // CHECK-NEXT:     },
1218 // CHECK-NEXT:     "end": {
1219 // CHECK-NEXT:      "offset": {{[0-9]+}},
1220 // CHECK-NEXT:      "col": 52,
1221 // CHECK-NEXT:      "tokLen": 3
1222 // CHECK-NEXT:     }
1223 // CHECK-NEXT:    },
1224 // CHECK-NEXT:    "isImplicit": true,
1225 // CHECK-NEXT:    "name": "setterFoo:",
1226 // CHECK-NEXT:    "mangledName": "-[TestObjCProperty setterFoo:]",
1227 // CHECK-NEXT:    "returnType": {
1228 // CHECK-NEXT:     "qualType": "void"
1229 // CHECK-NEXT:    },
1230 // CHECK-NEXT:    "instance": true,
1231 // CHECK-NEXT:    "inner": [
1232 // CHECK-NEXT:     {
1233 // CHECK-NEXT:      "id": "0x{{.*}}",
1234 // CHECK-NEXT:      "kind": "ParmVarDecl",
1235 // CHECK-NEXT:      "loc": {
1236 // CHECK-NEXT:       "offset": {{[0-9]+}},
1237 // CHECK-NEXT:       "col": 52,
1238 // CHECK-NEXT:       "tokLen": 3
1239 // CHECK-NEXT:      },
1240 // CHECK-NEXT:      "range": {
1241 // CHECK-NEXT:       "begin": {
1242 // CHECK-NEXT:        "offset": {{[0-9]+}},
1243 // CHECK-NEXT:        "col": 52,
1244 // CHECK-NEXT:        "tokLen": 3
1245 // CHECK-NEXT:       },
1246 // CHECK-NEXT:       "end": {
1247 // CHECK-NEXT:        "offset": {{[0-9]+}},
1248 // CHECK-NEXT:        "col": 52,
1249 // CHECK-NEXT:        "tokLen": 3
1250 // CHECK-NEXT:       }
1251 // CHECK-NEXT:      },
1252 // CHECK-NEXT:      "name": "foo",
1253 // CHECK-NEXT:      "type": {
1254 // CHECK-NEXT:       "qualType": "int"
1255 // CHECK-NEXT:      }
1256 // CHECK-NEXT:     }
1257 // CHECK-NEXT:    ]
1258 // CHECK-NEXT:   },
1259 // CHECK-NEXT:   {
1260 // CHECK-NEXT:    "id": "0x{{.*}}",
1261 // CHECK-NEXT:    "kind": "ObjCMethodDecl",
1262 // CHECK-NEXT:    "loc": {
1263 // CHECK-NEXT:     "offset": {{[0-9]+}},
1264 // CHECK-NEXT:     "line": 64,
1265 // CHECK-NEXT:     "col": 15,
1266 // CHECK-NEXT:     "tokLen": 3
1267 // CHECK-NEXT:    },
1268 // CHECK-NEXT:    "range": {
1269 // CHECK-NEXT:     "begin": {
1270 // CHECK-NEXT:      "offset": {{[0-9]+}},
1271 // CHECK-NEXT:      "col": 15,
1272 // CHECK-NEXT:      "tokLen": 3
1273 // CHECK-NEXT:     },
1274 // CHECK-NEXT:     "end": {
1275 // CHECK-NEXT:      "offset": {{[0-9]+}},
1276 // CHECK-NEXT:      "col": 15,
1277 // CHECK-NEXT:      "tokLen": 3
1278 // CHECK-NEXT:     }
1279 // CHECK-NEXT:    },
1280 // CHECK-NEXT:    "isImplicit": true,
1281 // CHECK-NEXT:    "name": "bar",
1282 // CHECK-NEXT:    "mangledName": "-[TestObjCProperty bar]",
1283 // CHECK-NEXT:    "returnType": {
1284 // CHECK-NEXT:     "qualType": "int"
1285 // CHECK-NEXT:    },
1286 // CHECK-NEXT:    "instance": true
1287 // CHECK-NEXT:   },
1288 // CHECK-NEXT:   {
1289 // CHECK-NEXT:    "id": "0x{{.*}}",
1290 // CHECK-NEXT:    "kind": "ObjCMethodDecl",
1291 // CHECK-NEXT:    "loc": {
1292 // CHECK-NEXT:     "offset": {{[0-9]+}},
1293 // CHECK-NEXT:     "col": 15,
1294 // CHECK-NEXT:     "tokLen": 3
1295 // CHECK-NEXT:    },
1296 // CHECK-NEXT:    "range": {
1297 // CHECK-NEXT:     "begin": {
1298 // CHECK-NEXT:      "offset": {{[0-9]+}},
1299 // CHECK-NEXT:      "col": 15,
1300 // CHECK-NEXT:      "tokLen": 3
1301 // CHECK-NEXT:     },
1302 // CHECK-NEXT:     "end": {
1303 // CHECK-NEXT:      "offset": {{[0-9]+}},
1304 // CHECK-NEXT:      "col": 15,
1305 // CHECK-NEXT:      "tokLen": 3
1306 // CHECK-NEXT:     }
1307 // CHECK-NEXT:    },
1308 // CHECK-NEXT:    "isImplicit": true,
1309 // CHECK-NEXT:    "name": "setBar:",
1310 // CHECK-NEXT:    "mangledName": "-[TestObjCProperty setBar:]",
1311 // CHECK-NEXT:    "returnType": {
1312 // CHECK-NEXT:     "qualType": "void"
1313 // CHECK-NEXT:    },
1314 // CHECK-NEXT:    "instance": true,
1315 // CHECK-NEXT:    "inner": [
1316 // CHECK-NEXT:     {
1317 // CHECK-NEXT:      "id": "0x{{.*}}",
1318 // CHECK-NEXT:      "kind": "ParmVarDecl",
1319 // CHECK-NEXT:      "loc": {
1320 // CHECK-NEXT:       "offset": {{[0-9]+}},
1321 // CHECK-NEXT:       "col": 15,
1322 // CHECK-NEXT:       "tokLen": 3
1323 // CHECK-NEXT:      },
1324 // CHECK-NEXT:      "range": {
1325 // CHECK-NEXT:       "begin": {
1326 // CHECK-NEXT:        "offset": {{[0-9]+}},
1327 // CHECK-NEXT:        "col": 15,
1328 // CHECK-NEXT:        "tokLen": 3
1329 // CHECK-NEXT:       },
1330 // CHECK-NEXT:       "end": {
1331 // CHECK-NEXT:        "offset": {{[0-9]+}},
1332 // CHECK-NEXT:        "col": 15,
1333 // CHECK-NEXT:        "tokLen": 3
1334 // CHECK-NEXT:       }
1335 // CHECK-NEXT:      },
1336 // CHECK-NEXT:      "name": "bar",
1337 // CHECK-NEXT:      "type": {
1338 // CHECK-NEXT:       "qualType": "int"
1339 // CHECK-NEXT:      }
1340 // CHECK-NEXT:     }
1341 // CHECK-NEXT:    ]
1342 // CHECK-NEXT:   }
1343 // CHECK-NEXT:  ]
1344 // CHECK-NEXT: }
1347 // CHECK-NOT: {{^}}Dumping
1348 // CHECK:  "kind": "ObjCImplementationDecl",
1349 // CHECK-NEXT:  "loc": {
1350 // CHECK-NEXT:   "offset": {{[0-9]+}},
1351 // CHECK-NEXT:   "file": "{{.*}}",
1352 // CHECK-NEXT:   "line": 67,
1353 // CHECK-NEXT:   "col": 17,
1354 // CHECK-NEXT:   "tokLen": 16
1355 // CHECK-NEXT:  },
1356 // CHECK-NEXT:  "range": {
1357 // CHECK-NEXT:   "begin": {
1358 // CHECK-NEXT:    "offset": {{[0-9]+}},
1359 // CHECK-NEXT:    "col": 1,
1360 // CHECK-NEXT:    "tokLen": 1
1361 // CHECK-NEXT:   },
1362 // CHECK-NEXT:   "end": {
1363 // CHECK-NEXT:    "offset": {{[0-9]+}},
1364 // CHECK-NEXT:    "line": 72,
1365 // CHECK-NEXT:    "col": 1,
1366 // CHECK-NEXT:    "tokLen": 1
1367 // CHECK-NEXT:   }
1368 // CHECK-NEXT:  },
1369 // CHECK-NEXT:  "name": "TestObjCProperty",
1370 // CHECK-NEXT:  "super": {
1371 // CHECK-NEXT:   "id": "0x0"
1372 // CHECK-NEXT:  },
1373 // CHECK-NEXT:  "interface": {
1374 // CHECK-NEXT:   "id": "0x{{.*}}",
1375 // CHECK-NEXT:   "kind": "ObjCInterfaceDecl",
1376 // CHECK-NEXT:   "name": "TestObjCProperty"
1377 // CHECK-NEXT:  },
1378 // CHECK-NEXT:  "inner": [
1379 // CHECK-NEXT:   {
1380 // CHECK-NEXT:    "id": "0x{{.*}}",
1381 // CHECK-NEXT:    "kind": "ObjCIvarDecl",
1382 // CHECK-NEXT:    "loc": {
1383 // CHECK-NEXT:     "offset": {{[0-9]+}},
1384 // CHECK-NEXT:     "line": 68,
1385 // CHECK-NEXT:     "col": 7,
1386 // CHECK-NEXT:     "tokLen": 1
1387 // CHECK-NEXT:    },
1388 // CHECK-NEXT:    "range": {
1389 // CHECK-NEXT:     "begin": {
1390 // CHECK-NEXT:      "offset": {{[0-9]+}},
1391 // CHECK-NEXT:      "col": 3,
1392 // CHECK-NEXT:      "tokLen": 3
1393 // CHECK-NEXT:     },
1394 // CHECK-NEXT:     "end": {
1395 // CHECK-NEXT:      "offset": {{[0-9]+}},
1396 // CHECK-NEXT:      "col": 7,
1397 // CHECK-NEXT:      "tokLen": 1
1398 // CHECK-NEXT:     }
1399 // CHECK-NEXT:    },
1400 // CHECK-NEXT:    "name": "i",
1401 // CHECK-NEXT:    "type": {
1402 // CHECK-NEXT:     "qualType": "int"
1403 // CHECK-NEXT:    },
1404 // CHECK-NEXT:    "access": "private"
1405 // CHECK-NEXT:   },
1406 // CHECK-NEXT:   {
1407 // CHECK-NEXT:    "id": "0x{{.*}}",
1408 // CHECK-NEXT:    "kind": "ObjCPropertyImplDecl",
1409 // CHECK-NEXT:    "loc": {
1410 // CHECK-NEXT:     "offset": {{[0-9]+}},
1411 // CHECK-NEXT:     "line": 70,
1412 // CHECK-NEXT:     "col": 13,
1413 // CHECK-NEXT:     "tokLen": 3
1414 // CHECK-NEXT:    },
1415 // CHECK-NEXT:    "range": {
1416 // CHECK-NEXT:     "begin": {
1417 // CHECK-NEXT:      "offset": {{[0-9]+}},
1418 // CHECK-NEXT:      "col": 1,
1419 // CHECK-NEXT:      "tokLen": 1
1420 // CHECK-NEXT:     },
1421 // CHECK-NEXT:     "end": {
1422 // CHECK-NEXT:      "offset": {{[0-9]+}},
1423 // CHECK-NEXT:      "col": 17,
1424 // CHECK-NEXT:      "tokLen": 1
1425 // CHECK-NEXT:     }
1426 // CHECK-NEXT:    },
1427 // CHECK-NEXT:    "name": "foo",
1428 // CHECK-NEXT:    "implKind": "synthesize",
1429 // CHECK-NEXT:    "propertyDecl": {
1430 // CHECK-NEXT:     "id": "0x{{.*}}",
1431 // CHECK-NEXT:     "kind": "ObjCPropertyDecl",
1432 // CHECK-NEXT:     "name": "foo"
1433 // CHECK-NEXT:    },
1434 // CHECK-NEXT:    "ivarDecl": {
1435 // CHECK-NEXT:     "id": "0x{{.*}}",
1436 // CHECK-NEXT:     "kind": "ObjCIvarDecl",
1437 // CHECK-NEXT:     "name": "i",
1438 // CHECK-NEXT:     "type": {
1439 // CHECK-NEXT:      "qualType": "int"
1440 // CHECK-NEXT:     }
1441 // CHECK-NEXT:    }
1442 // CHECK-NEXT:   },
1443 // CHECK-NEXT:   {
1444 // CHECK-NEXT:    "id": "0x{{.*}}",
1445 // CHECK-NEXT:    "kind": "ObjCIvarDecl",
1446 // CHECK-NEXT:    "loc": {
1447 // CHECK-NEXT:     "offset": {{[0-9]+}},
1448 // CHECK-NEXT:     "line": 71,
1449 // CHECK-NEXT:     "col": 13,
1450 // CHECK-NEXT:     "tokLen": 3
1451 // CHECK-NEXT:    },
1452 // CHECK-NEXT:    "range": {
1453 // CHECK-NEXT:     "begin": {
1454 // CHECK-NEXT:      "offset": {{[0-9]+}},
1455 // CHECK-NEXT:      "col": 13,
1456 // CHECK-NEXT:      "tokLen": 3
1457 // CHECK-NEXT:     },
1458 // CHECK-NEXT:     "end": {
1459 // CHECK-NEXT:      "offset": {{[0-9]+}},
1460 // CHECK-NEXT:      "col": 13,
1461 // CHECK-NEXT:      "tokLen": 3
1462 // CHECK-NEXT:     }
1463 // CHECK-NEXT:    },
1464 // CHECK-NEXT:    "name": "bar",
1465 // CHECK-NEXT:    "type": {
1466 // CHECK-NEXT:     "qualType": "int"
1467 // CHECK-NEXT:    },
1468 // CHECK-NEXT:    "synthesized": true,
1469 // CHECK-NEXT:    "access": "private"
1470 // CHECK-NEXT:   },
1471 // CHECK-NEXT:   {
1472 // CHECK-NEXT:    "id": "0x{{.*}}",
1473 // CHECK-NEXT:    "kind": "ObjCPropertyImplDecl",
1474 // CHECK-NEXT:    "loc": {
1475 // CHECK-NEXT:     "offset": {{[0-9]+}},
1476 // CHECK-NEXT:     "col": 13,
1477 // CHECK-NEXT:     "tokLen": 3
1478 // CHECK-NEXT:    },
1479 // CHECK-NEXT:    "range": {
1480 // CHECK-NEXT:     "begin": {
1481 // CHECK-NEXT:      "offset": {{[0-9]+}},
1482 // CHECK-NEXT:      "col": 1,
1483 // CHECK-NEXT:      "tokLen": 1
1484 // CHECK-NEXT:     },
1485 // CHECK-NEXT:     "end": {
1486 // CHECK-NEXT:      "offset": {{[0-9]+}},
1487 // CHECK-NEXT:      "col": 13,
1488 // CHECK-NEXT:      "tokLen": 3
1489 // CHECK-NEXT:     }
1490 // CHECK-NEXT:    },
1491 // CHECK-NEXT:    "name": "bar",
1492 // CHECK-NEXT:    "implKind": "synthesize",
1493 // CHECK-NEXT:    "propertyDecl": {
1494 // CHECK-NEXT:     "id": "0x{{.*}}",
1495 // CHECK-NEXT:     "kind": "ObjCPropertyDecl",
1496 // CHECK-NEXT:     "name": "bar"
1497 // CHECK-NEXT:    },
1498 // CHECK-NEXT:    "ivarDecl": {
1499 // CHECK-NEXT:     "id": "0x{{.*}}",
1500 // CHECK-NEXT:     "kind": "ObjCIvarDecl",
1501 // CHECK-NEXT:     "name": "bar",
1502 // CHECK-NEXT:     "type": {
1503 // CHECK-NEXT:      "qualType": "int"
1504 // CHECK-NEXT:     }
1505 // CHECK-NEXT:    }
1506 // CHECK-NEXT:   },
1507 // CHECK-NEXT:   {
1508 // CHECK-NEXT:    "id": "0x{{.*}}",
1509 // CHECK-NEXT:    "kind": "ObjCMethodDecl",
1510 // CHECK-NEXT:    "loc": {
1511 // CHECK-NEXT:     "offset": {{[0-9]+}},
1512 // CHECK-NEXT:     "line": 70,
1513 // CHECK-NEXT:     "col": 1,
1514 // CHECK-NEXT:     "tokLen": 1
1515 // CHECK-NEXT:    },
1516 // CHECK-NEXT:    "range": {
1517 // CHECK-NEXT:     "begin": {
1518 // CHECK-NEXT:      "offset": {{[0-9]+}},
1519 // CHECK-NEXT:      "col": 1,
1520 // CHECK-NEXT:      "tokLen": 1
1521 // CHECK-NEXT:     },
1522 // CHECK-NEXT:     "end": {
1523 // CHECK-NEXT:      "offset": {{[0-9]+}},
1524 // CHECK-NEXT:      "col": 13,
1525 // CHECK-NEXT:      "tokLen": 3
1526 // CHECK-NEXT:     }
1527 // CHECK-NEXT:    },
1528 // CHECK-NEXT:    "isImplicit": true,
1529 // CHECK-NEXT:    "name": "getterFoo",
1530 // CHECK-NEXT:    "mangledName": "-[TestObjCProperty getterFoo]",
1531 // CHECK-NEXT:    "returnType": {
1532 // CHECK-NEXT:     "qualType": "int"
1533 // CHECK-NEXT:    },
1534 // CHECK-NEXT:    "instance": true
1535 // CHECK-NEXT:   },
1536 // CHECK-NEXT:   {
1537 // CHECK-NEXT:    "id": "0x{{.*}}",
1538 // CHECK-NEXT:    "kind": "ObjCMethodDecl",
1539 // CHECK-NEXT:    "loc": {
1540 // CHECK-NEXT:     "offset": {{[0-9]+}},
1541 // CHECK-NEXT:     "col": 1,
1542 // CHECK-NEXT:     "tokLen": 1
1543 // CHECK-NEXT:    },
1544 // CHECK-NEXT:    "range": {
1545 // CHECK-NEXT:     "begin": {
1546 // CHECK-NEXT:      "offset": {{[0-9]+}},
1547 // CHECK-NEXT:      "col": 1,
1548 // CHECK-NEXT:      "tokLen": 1
1549 // CHECK-NEXT:     },
1550 // CHECK-NEXT:     "end": {
1551 // CHECK-NEXT:      "offset": {{[0-9]+}},
1552 // CHECK-NEXT:      "col": 13,
1553 // CHECK-NEXT:      "tokLen": 3
1554 // CHECK-NEXT:     }
1555 // CHECK-NEXT:    },
1556 // CHECK-NEXT:    "isImplicit": true,
1557 // CHECK-NEXT:    "name": "setterFoo:",
1558 // CHECK-NEXT:    "mangledName": "-[TestObjCProperty setterFoo:]",
1559 // CHECK-NEXT:    "returnType": {
1560 // CHECK-NEXT:     "qualType": "void"
1561 // CHECK-NEXT:    },
1562 // CHECK-NEXT:    "instance": true,
1563 // CHECK-NEXT:    "inner": [
1564 // CHECK-NEXT:     {
1565 // CHECK-NEXT:      "id": "0x{{.*}}",
1566 // CHECK-NEXT:      "kind": "ParmVarDecl",
1567 // CHECK-NEXT:      "loc": {
1568 // CHECK-NEXT:       "offset": {{[0-9]+}},
1569 // CHECK-NEXT:       "line": 63,
1570 // CHECK-NEXT:       "col": 52,
1571 // CHECK-NEXT:       "tokLen": 3
1572 // CHECK-NEXT:      },
1573 // CHECK-NEXT:      "range": {
1574 // CHECK-NEXT:       "begin": {
1575 // CHECK-NEXT:        "offset": {{[0-9]+}},
1576 // CHECK-NEXT:        "col": 52,
1577 // CHECK-NEXT:        "tokLen": 3
1578 // CHECK-NEXT:       },
1579 // CHECK-NEXT:       "end": {
1580 // CHECK-NEXT:        "offset": {{[0-9]+}},
1581 // CHECK-NEXT:        "col": 52,
1582 // CHECK-NEXT:        "tokLen": 3
1583 // CHECK-NEXT:       }
1584 // CHECK-NEXT:      },
1585 // CHECK-NEXT:      "name": "foo",
1586 // CHECK-NEXT:      "type": {
1587 // CHECK-NEXT:       "qualType": "int"
1588 // CHECK-NEXT:      }
1589 // CHECK-NEXT:     }
1590 // CHECK-NEXT:    ]
1591 // CHECK-NEXT:   },
1592 // CHECK-NEXT:   {
1593 // CHECK-NEXT:    "id": "0x{{.*}}",
1594 // CHECK-NEXT:    "kind": "ObjCMethodDecl",
1595 // CHECK-NEXT:    "loc": {
1596 // CHECK-NEXT:     "offset": {{[0-9]+}},
1597 // CHECK-NEXT:     "line": 71,
1598 // CHECK-NEXT:     "col": 1,
1599 // CHECK-NEXT:     "tokLen": 1
1600 // CHECK-NEXT:    },
1601 // CHECK-NEXT:    "range": {
1602 // CHECK-NEXT:     "begin": {
1603 // CHECK-NEXT:      "offset": {{[0-9]+}},
1604 // CHECK-NEXT:      "col": 1,
1605 // CHECK-NEXT:      "tokLen": 1
1606 // CHECK-NEXT:     },
1607 // CHECK-NEXT:     "end": {
1608 // CHECK-NEXT:      "offset": {{[0-9]+}},
1609 // CHECK-NEXT:      "col": 13,
1610 // CHECK-NEXT:      "tokLen": 3
1611 // CHECK-NEXT:     }
1612 // CHECK-NEXT:    },
1613 // CHECK-NEXT:    "isImplicit": true,
1614 // CHECK-NEXT:    "name": "bar",
1615 // CHECK-NEXT:    "mangledName": "-[TestObjCProperty bar]",
1616 // CHECK-NEXT:    "returnType": {
1617 // CHECK-NEXT:     "qualType": "int"
1618 // CHECK-NEXT:    },
1619 // CHECK-NEXT:    "instance": true
1620 // CHECK-NEXT:   },
1621 // CHECK-NEXT:   {
1622 // CHECK-NEXT:    "id": "0x{{.*}}",
1623 // CHECK-NEXT:    "kind": "ObjCMethodDecl",
1624 // CHECK-NEXT:    "loc": {
1625 // CHECK-NEXT:     "offset": {{[0-9]+}},
1626 // CHECK-NEXT:     "col": 1,
1627 // CHECK-NEXT:     "tokLen": 1
1628 // CHECK-NEXT:    },
1629 // CHECK-NEXT:    "range": {
1630 // CHECK-NEXT:     "begin": {
1631 // CHECK-NEXT:      "offset": {{[0-9]+}},
1632 // CHECK-NEXT:      "col": 1,
1633 // CHECK-NEXT:      "tokLen": 1
1634 // CHECK-NEXT:     },
1635 // CHECK-NEXT:     "end": {
1636 // CHECK-NEXT:      "offset": {{[0-9]+}},
1637 // CHECK-NEXT:      "col": 13,
1638 // CHECK-NEXT:      "tokLen": 3
1639 // CHECK-NEXT:     }
1640 // CHECK-NEXT:    },
1641 // CHECK-NEXT:    "isImplicit": true,
1642 // CHECK-NEXT:    "name": "setBar:",
1643 // CHECK-NEXT:    "mangledName": "-[TestObjCProperty setBar:]",
1644 // CHECK-NEXT:    "returnType": {
1645 // CHECK-NEXT:     "qualType": "void"
1646 // CHECK-NEXT:    },
1647 // CHECK-NEXT:    "instance": true,
1648 // CHECK-NEXT:    "inner": [
1649 // CHECK-NEXT:     {
1650 // CHECK-NEXT:      "id": "0x{{.*}}",
1651 // CHECK-NEXT:      "kind": "ParmVarDecl",
1652 // CHECK-NEXT:      "loc": {
1653 // CHECK-NEXT:       "offset": {{[0-9]+}},
1654 // CHECK-NEXT:       "line": 64,
1655 // CHECK-NEXT:       "col": 15,
1656 // CHECK-NEXT:       "tokLen": 3
1657 // CHECK-NEXT:      },
1658 // CHECK-NEXT:      "range": {
1659 // CHECK-NEXT:       "begin": {
1660 // CHECK-NEXT:        "offset": {{[0-9]+}},
1661 // CHECK-NEXT:        "col": 15,
1662 // CHECK-NEXT:        "tokLen": 3
1663 // CHECK-NEXT:       },
1664 // CHECK-NEXT:       "end": {
1665 // CHECK-NEXT:        "offset": {{[0-9]+}},
1666 // CHECK-NEXT:        "col": 15,
1667 // CHECK-NEXT:        "tokLen": 3
1668 // CHECK-NEXT:       }
1669 // CHECK-NEXT:      },
1670 // CHECK-NEXT:      "name": "bar",
1671 // CHECK-NEXT:      "type": {
1672 // CHECK-NEXT:       "qualType": "int"
1673 // CHECK-NEXT:      }
1674 // CHECK-NEXT:     }
1675 // CHECK-NEXT:    ]
1676 // CHECK-NEXT:   }
1677 // CHECK-NEXT:  ]
1678 // CHECK-NEXT: }
1681 // CHECK-NOT: {{^}}Dumping
1682 // CHECK:  "kind": "FunctionDecl",
1683 // CHECK-NEXT:  "loc": {
1684 // CHECK-NEXT:   "offset": {{[0-9]+}},
1685 // CHECK-NEXT:   "file": "{{.*}}",
1686 // CHECK-NEXT:   "line": 74,
1687 // CHECK-NEXT:   "col": 6,
1688 // CHECK-NEXT:   "tokLen": 13
1689 // CHECK-NEXT:  },
1690 // CHECK-NEXT:  "range": {
1691 // CHECK-NEXT:   "begin": {
1692 // CHECK-NEXT:    "offset": {{[0-9]+}},
1693 // CHECK-NEXT:    "col": 1,
1694 // CHECK-NEXT:    "tokLen": 4
1695 // CHECK-NEXT:   },
1696 // CHECK-NEXT:   "end": {
1697 // CHECK-NEXT:    "offset": {{[0-9]+}},
1698 // CHECK-NEXT:    "line": 76,
1699 // CHECK-NEXT:    "col": 1,
1700 // CHECK-NEXT:    "tokLen": 1
1701 // CHECK-NEXT:   }
1702 // CHECK-NEXT:  },
1703 // CHECK-NEXT:  "name": "TestBlockDecl",
1704 // CHECK-NEXT:  "mangledName": "_TestBlockDecl",
1705 // CHECK-NEXT:  "type": {
1706 // CHECK-NEXT:   "qualType": "void (int)"
1707 // CHECK-NEXT:  },
1708 // CHECK-NEXT:  "inner": [
1709 // CHECK-NEXT:   {
1710 // CHECK-NEXT:    "id": "0x{{.*}}",
1711 // CHECK-NEXT:    "kind": "ParmVarDecl",
1712 // CHECK-NEXT:    "loc": {
1713 // CHECK-NEXT:     "offset": {{[0-9]+}},
1714 // CHECK-NEXT:     "line": 74,
1715 // CHECK-NEXT:     "col": 24,
1716 // CHECK-NEXT:     "tokLen": 1
1717 // CHECK-NEXT:    },
1718 // CHECK-NEXT:    "range": {
1719 // CHECK-NEXT:     "begin": {
1720 // CHECK-NEXT:      "offset": {{[0-9]+}},
1721 // CHECK-NEXT:      "col": 20,
1722 // CHECK-NEXT:      "tokLen": 3
1723 // CHECK-NEXT:     },
1724 // CHECK-NEXT:     "end": {
1725 // CHECK-NEXT:      "offset": {{[0-9]+}},
1726 // CHECK-NEXT:      "col": 24,
1727 // CHECK-NEXT:      "tokLen": 1
1728 // CHECK-NEXT:     }
1729 // CHECK-NEXT:    },
1730 // CHECK-NEXT:    "isUsed": true,
1731 // CHECK-NEXT:    "name": "x",
1732 // CHECK-NEXT:    "type": {
1733 // CHECK-NEXT:     "qualType": "int"
1734 // CHECK-NEXT:    }
1735 // CHECK-NEXT:   },
1736 // CHECK-NEXT:   {
1737 // CHECK-NEXT:    "id": "0x{{.*}}",
1738 // CHECK-NEXT:    "kind": "CompoundStmt",
1739 // CHECK-NEXT:    "range": {
1740 // CHECK-NEXT:     "begin": {
1741 // CHECK-NEXT:      "offset": {{[0-9]+}},
1742 // CHECK-NEXT:      "col": 27,
1743 // CHECK-NEXT:      "tokLen": 1
1744 // CHECK-NEXT:     },
1745 // CHECK-NEXT:     "end": {
1746 // CHECK-NEXT:      "offset": {{[0-9]+}},
1747 // CHECK-NEXT:      "line": 76,
1748 // CHECK-NEXT:      "col": 1,
1749 // CHECK-NEXT:      "tokLen": 1
1750 // CHECK-NEXT:     }
1751 // CHECK-NEXT:    },
1752 // CHECK-NEXT:    "inner": [
1753 // CHECK-NEXT:     {
1754 // CHECK-NEXT:      "id": "0x{{.*}}",
1755 // CHECK-NEXT:      "kind": "ExprWithCleanups",
1756 // CHECK-NEXT:      "range": {
1757 // CHECK-NEXT:       "begin": {
1758 // CHECK-NEXT:        "offset": {{[0-9]+}},
1759 // CHECK-NEXT:        "line": 75,
1760 // CHECK-NEXT:        "col": 3,
1761 // CHECK-NEXT:        "tokLen": 1
1762 // CHECK-NEXT:       },
1763 // CHECK-NEXT:       "end": {
1764 // CHECK-NEXT:        "offset": {{[0-9]+}},
1765 // CHECK-NEXT:        "col": 21,
1766 // CHECK-NEXT:        "tokLen": 1
1767 // CHECK-NEXT:       }
1768 // CHECK-NEXT:      },
1769 // CHECK-NEXT:      "type": {
1770 // CHECK-NEXT:       "qualType": "void (^)(int, ...)"
1771 // CHECK-NEXT:      },
1772 // CHECK-NEXT:      "valueCategory": "prvalue",
1773 // CHECK-NEXT:      "cleanupsHaveSideEffects": true,
1774 // CHECK-NEXT:      "cleanups": [
1775 // CHECK-NEXT:       {
1776 // CHECK-NEXT:        "id": "0x{{.*}}",
1777 // CHECK-NEXT:        "kind": "BlockDecl"
1778 // CHECK-NEXT:       }
1779 // CHECK-NEXT:      ],
1780 // CHECK-NEXT:      "inner": [
1781 // CHECK-NEXT:       {
1782 // CHECK-NEXT:        "id": "0x{{.*}}",
1783 // CHECK-NEXT:        "kind": "BlockExpr",
1784 // CHECK-NEXT:        "range": {
1785 // CHECK-NEXT:         "begin": {
1786 // CHECK-NEXT:          "offset": {{[0-9]+}},
1787 // CHECK-NEXT:          "col": 3,
1788 // CHECK-NEXT:          "tokLen": 1
1789 // CHECK-NEXT:         },
1790 // CHECK-NEXT:         "end": {
1791 // CHECK-NEXT:          "offset": {{[0-9]+}},
1792 // CHECK-NEXT:          "col": 21,
1793 // CHECK-NEXT:          "tokLen": 1
1794 // CHECK-NEXT:         }
1795 // CHECK-NEXT:        },
1796 // CHECK-NEXT:        "type": {
1797 // CHECK-NEXT:         "qualType": "void (^)(int, ...)"
1798 // CHECK-NEXT:        },
1799 // CHECK-NEXT:        "valueCategory": "prvalue",
1800 // CHECK-NEXT:        "inner": [
1801 // CHECK-NEXT:         {
1802 // CHECK-NEXT:          "id": "0x{{.*}}",
1803 // CHECK-NEXT:          "kind": "BlockDecl",
1804 // CHECK-NEXT:          "loc": {
1805 // CHECK-NEXT:           "offset": {{[0-9]+}},
1806 // CHECK-NEXT:           "col": 3,
1807 // CHECK-NEXT:           "tokLen": 1
1808 // CHECK-NEXT:          },
1809 // CHECK-NEXT:          "range": {
1810 // CHECK-NEXT:           "begin": {
1811 // CHECK-NEXT:            "offset": {{[0-9]+}},
1812 // CHECK-NEXT:            "col": 3,
1813 // CHECK-NEXT:            "tokLen": 1
1814 // CHECK-NEXT:           },
1815 // CHECK-NEXT:           "end": {
1816 // CHECK-NEXT:            "offset": {{[0-9]+}},
1817 // CHECK-NEXT:            "col": 21,
1818 // CHECK-NEXT:            "tokLen": 1
1819 // CHECK-NEXT:           }
1820 // CHECK-NEXT:          },
1821 // CHECK-NEXT:          "variadic": true,
1822 // CHECK-NEXT:          "inner": [
1823 // CHECK-NEXT:           {
1824 // CHECK-NEXT:            "id": "0x{{.*}}",
1825 // CHECK-NEXT:            "kind": "ParmVarDecl",
1826 // CHECK-NEXT:            "loc": {
1827 // CHECK-NEXT:             "offset": {{[0-9]+}},
1828 // CHECK-NEXT:             "col": 9,
1829 // CHECK-NEXT:             "tokLen": 1
1830 // CHECK-NEXT:            },
1831 // CHECK-NEXT:            "range": {
1832 // CHECK-NEXT:             "begin": {
1833 // CHECK-NEXT:              "offset": {{[0-9]+}},
1834 // CHECK-NEXT:              "col": 5,
1835 // CHECK-NEXT:              "tokLen": 3
1836 // CHECK-NEXT:             },
1837 // CHECK-NEXT:             "end": {
1838 // CHECK-NEXT:              "offset": {{[0-9]+}},
1839 // CHECK-NEXT:              "col": 9,
1840 // CHECK-NEXT:              "tokLen": 1
1841 // CHECK-NEXT:             }
1842 // CHECK-NEXT:            },
1843 // CHECK-NEXT:            "name": "y",
1844 // CHECK-NEXT:            "type": {
1845 // CHECK-NEXT:             "qualType": "int"
1846 // CHECK-NEXT:            }
1847 // CHECK-NEXT:           },
1848 // CHECK-NEXT:           {
1849 // CHECK-NEXT:            "kind": "Capture",
1850 // CHECK-NEXT:            "var": {
1851 // CHECK-NEXT:             "id": "0x{{.*}}",
1852 // CHECK-NEXT:             "kind": "ParmVarDecl",
1853 // CHECK-NEXT:             "name": "x",
1854 // CHECK-NEXT:             "type": {
1855 // CHECK-NEXT:              "qualType": "int"
1856 // CHECK-NEXT:             }
1857 // CHECK-NEXT:            }
1858 // CHECK-NEXT:           },
1859 // CHECK-NEXT:           {
1860 // CHECK-NEXT:            "id": "0x{{.*}}",
1861 // CHECK-NEXT:            "kind": "CompoundStmt",
1862 // CHECK-NEXT:            "range": {
1863 // CHECK-NEXT:             "begin": {
1864 // CHECK-NEXT:              "offset": {{[0-9]+}},
1865 // CHECK-NEXT:              "col": 16,
1866 // CHECK-NEXT:              "tokLen": 1
1867 // CHECK-NEXT:             },
1868 // CHECK-NEXT:             "end": {
1869 // CHECK-NEXT:              "offset": {{[0-9]+}},
1870 // CHECK-NEXT:              "col": 21,
1871 // CHECK-NEXT:              "tokLen": 1
1872 // CHECK-NEXT:             }
1873 // CHECK-NEXT:            },
1874 // CHECK-NEXT:            "inner": [
1875 // CHECK-NEXT:             {
1876 // CHECK-NEXT:              "id": "0x{{.*}}",
1877 // CHECK-NEXT:              "kind": "ImplicitCastExpr",
1878 // CHECK-NEXT:              "range": {
1879 // CHECK-NEXT:               "begin": {
1880 // CHECK-NEXT:                "offset": {{[0-9]+}},
1881 // CHECK-NEXT:                "col": 18,
1882 // CHECK-NEXT:                "tokLen": 1
1883 // CHECK-NEXT:               },
1884 // CHECK-NEXT:               "end": {
1885 // CHECK-NEXT:                "offset": {{[0-9]+}},
1886 // CHECK-NEXT:                "col": 18,
1887 // CHECK-NEXT:                "tokLen": 1
1888 // CHECK-NEXT:               }
1889 // CHECK-NEXT:              },
1890 // CHECK-NEXT:              "type": {
1891 // CHECK-NEXT:               "qualType": "int"
1892 // CHECK-NEXT:              },
1893 // CHECK-NEXT:              "valueCategory": "prvalue",
1894 // CHECK-NEXT:              "castKind": "LValueToRValue",
1895 // CHECK-NEXT:              "inner": [
1896 // CHECK-NEXT:               {
1897 // CHECK-NEXT:                "id": "0x{{.*}}",
1898 // CHECK-NEXT:                "kind": "DeclRefExpr",
1899 // CHECK-NEXT:                "range": {
1900 // CHECK-NEXT:                 "begin": {
1901 // CHECK-NEXT:                  "offset": {{[0-9]+}},
1902 // CHECK-NEXT:                  "col": 18,
1903 // CHECK-NEXT:                  "tokLen": 1
1904 // CHECK-NEXT:                 },
1905 // CHECK-NEXT:                 "end": {
1906 // CHECK-NEXT:                  "offset": {{[0-9]+}},
1907 // CHECK-NEXT:                  "col": 18,
1908 // CHECK-NEXT:                  "tokLen": 1
1909 // CHECK-NEXT:                 }
1910 // CHECK-NEXT:                },
1911 // CHECK-NEXT:                "type": {
1912 // CHECK-NEXT:                 "qualType": "const int"
1913 // CHECK-NEXT:                },
1914 // CHECK-NEXT:                "valueCategory": "lvalue",
1915 // CHECK-NEXT:                "referencedDecl": {
1916 // CHECK-NEXT:                 "id": "0x{{.*}}",
1917 // CHECK-NEXT:                 "kind": "ParmVarDecl",
1918 // CHECK-NEXT:                 "name": "x",
1919 // CHECK-NEXT:                 "type": {
1920 // CHECK-NEXT:                  "qualType": "int"
1921 // CHECK-NEXT:                 }
1922 // CHECK-NEXT:                }
1923 // CHECK-NEXT:               }
1924 // CHECK-NEXT:              ]
1925 // CHECK-NEXT:             }
1926 // CHECK-NEXT:            ]
1927 // CHECK-NEXT:           },
1928 // CHECK-NEXT:           {
1929 // CHECK-NEXT:            "id": "0x{{.*}}",
1930 // CHECK-NEXT:            "kind": "ParmVarDecl",
1931 // CHECK-NEXT:            "loc": {
1932 // CHECK-NEXT:             "offset": {{[0-9]+}},
1933 // CHECK-NEXT:             "col": 9,
1934 // CHECK-NEXT:             "tokLen": 1
1935 // CHECK-NEXT:            },
1936 // CHECK-NEXT:            "range": {
1937 // CHECK-NEXT:             "begin": {
1938 // CHECK-NEXT:              "offset": {{[0-9]+}},
1939 // CHECK-NEXT:              "col": 5,
1940 // CHECK-NEXT:              "tokLen": 3
1941 // CHECK-NEXT:             },
1942 // CHECK-NEXT:             "end": {
1943 // CHECK-NEXT:              "offset": {{[0-9]+}},
1944 // CHECK-NEXT:              "col": 9,
1945 // CHECK-NEXT:              "tokLen": 1
1946 // CHECK-NEXT:             }
1947 // CHECK-NEXT:            },
1948 // CHECK-NEXT:            "name": "y",
1949 // CHECK-NEXT:            "type": {
1950 // CHECK-NEXT:             "qualType": "int"
1951 // CHECK-NEXT:            }
1952 // CHECK-NEXT:           }
1953 // CHECK-NEXT:          ]
1954 // CHECK-NEXT:         }
1955 // CHECK-NEXT:        ]
1956 // CHECK-NEXT:       }
1957 // CHECK-NEXT:      ]
1958 // CHECK-NEXT:     }
1959 // CHECK-NEXT:    ]
1960 // CHECK-NEXT:   }
1961 // CHECK-NEXT:  ]
1962 // CHECK-NEXT: }
1965 // CHECK-NOT: {{^}}Dumping
1966 // CHECK:  "kind": "VarDecl",
1967 // CHECK-NEXT:  "loc": {
1968 // CHECK-NEXT:   "offset": {{[0-9]+}},
1969 // CHECK-NEXT:   "file": "{{.*}}",
1970 // CHECK-NEXT:   "line": 83,
1971 // CHECK-NEXT:   "col": 21,
1972 // CHECK-NEXT:   "tokLen": 4
1973 // CHECK-NEXT:  },
1974 // CHECK-NEXT:  "range": {
1975 // CHECK-NEXT:   "begin": {
1976 // CHECK-NEXT:    "offset": {{[0-9]+}},
1977 // CHECK-NEXT:    "col": 3,
1978 // CHECK-NEXT:    "tokLen": 10
1979 // CHECK-NEXT:   },
1980 // CHECK-NEXT:   "end": {
1981 // CHECK-NEXT:    "offset": {{[0-9]+}},
1982 // CHECK-NEXT:    "col": 21,
1983 // CHECK-NEXT:    "tokLen": 4
1984 // CHECK-NEXT:   }
1985 // CHECK-NEXT:  },
1986 // CHECK-NEXT:  "name": "Test",
1987 // CHECK-NEXT:  "type": {
1988 // CHECK-NEXT:   "desugaredQualType": "int",
1989 // CHECK-NEXT:   "qualType": "typeof (B.foo)"
1990 // CHECK-NEXT:  }
1991 // CHECK-NEXT: }