forked from OSchip/llvm-project
Switching this test to use output generated by script; NFC.
llvm-svn: 363859
This commit is contained in:
parent
fee7365b07
commit
5f84ebe8de
|
@ -4,6 +4,29 @@ void func(int val) {
|
|||
if (val)
|
||||
;
|
||||
|
||||
if (val)
|
||||
;
|
||||
else
|
||||
;
|
||||
|
||||
if (val)
|
||||
;
|
||||
else if (val)
|
||||
;
|
||||
else
|
||||
;
|
||||
|
||||
if constexpr(10 == 10)
|
||||
;
|
||||
|
||||
if (int i = 12)
|
||||
;
|
||||
|
||||
if (int i = 12; i)
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
// CHECK: "kind": "IfStmt",
|
||||
// CHECK-NEXT: "range": {
|
||||
// CHECK-NEXT: "begin": {
|
||||
|
@ -109,24 +132,20 @@ void func(int val) {
|
|||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: ]
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: }
|
||||
|
||||
if (val)
|
||||
;
|
||||
else
|
||||
;
|
||||
|
||||
// CHECK: "kind": "IfStmt",
|
||||
// CHECK-NEXT: "range": {
|
||||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 3,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 114
|
||||
// CHECK-NEXT: "line": 7
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 117
|
||||
// CHECK-NEXT: "line": 10
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "hasElse": true,
|
||||
|
@ -138,12 +157,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 7,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 114
|
||||
// CHECK-NEXT: "line": 7
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 7,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 114
|
||||
// CHECK-NEXT: "line": 7
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
|
@ -159,12 +178,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 7,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 114
|
||||
// CHECK-NEXT: "line": 7
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 7,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 114
|
||||
// CHECK-NEXT: "line": 7
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
|
@ -180,18 +199,18 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 7,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 114
|
||||
// CHECK-NEXT: "line": 7
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 7,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 114
|
||||
// CHECK-NEXT: "line": 7
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
// CHECK-NEXT: "qualType": "int"
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "valueCategory": "lvalue"
|
||||
// CHECK-NEXT: "valueCategory": "lvalue",
|
||||
// CHECK-NEXT: "referencedDecl": {
|
||||
// CHECK-NEXT: "id": "0x{{.*}}",
|
||||
// CHECK-NEXT: "kind": "ParmVarDecl",
|
||||
|
@ -212,12 +231,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 115
|
||||
// CHECK-NEXT: "line": 8
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 115
|
||||
// CHECK-NEXT: "line": 8
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
|
@ -228,36 +247,30 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 117
|
||||
// CHECK-NEXT: "line": 10
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 117
|
||||
// CHECK-NEXT: "line": 10
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: ]
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: }
|
||||
|
||||
if (val)
|
||||
;
|
||||
else if (val)
|
||||
;
|
||||
else
|
||||
;
|
||||
|
||||
// CHECK: "kind": "IfStmt",
|
||||
// CHECK-NEXT: "range": {
|
||||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 3,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 243
|
||||
// CHECK-NEXT: "line": 12
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 248
|
||||
// CHECK-NEXT: "line": 17
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "hasElse": true,
|
||||
|
@ -269,12 +282,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 7,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 243
|
||||
// CHECK-NEXT: "line": 12
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 7,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 243
|
||||
// CHECK-NEXT: "line": 12
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
|
@ -290,12 +303,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 7,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 243
|
||||
// CHECK-NEXT: "line": 12
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 7,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 243
|
||||
// CHECK-NEXT: "line": 12
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
|
@ -311,18 +324,18 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 7,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 243
|
||||
// CHECK-NEXT: "line": 12
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 7,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 243
|
||||
// CHECK-NEXT: "line": 12
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
// CHECK-NEXT: "qualType": "int"
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "valueCategory": "lvalue"
|
||||
// CHECK-NEXT: "valueCategory": "lvalue",
|
||||
// CHECK-NEXT: "referencedDecl": {
|
||||
// CHECK-NEXT: "id": "0x{{.*}}",
|
||||
// CHECK-NEXT: "kind": "ParmVarDecl",
|
||||
|
@ -343,12 +356,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 244
|
||||
// CHECK-NEXT: "line": 13
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 244
|
||||
// CHECK-NEXT: "line": 13
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
|
@ -359,12 +372,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 8,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 245
|
||||
// CHECK-NEXT: "line": 14
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 248
|
||||
// CHECK-NEXT: "line": 17
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "hasElse": true,
|
||||
|
@ -376,12 +389,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 12,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 245
|
||||
// CHECK-NEXT: "line": 14
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 12,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 245
|
||||
// CHECK-NEXT: "line": 14
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
|
@ -397,12 +410,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 12,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 245
|
||||
// CHECK-NEXT: "line": 14
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 12,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 245
|
||||
// CHECK-NEXT: "line": 14
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
|
@ -418,18 +431,18 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 12,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 245
|
||||
// CHECK-NEXT: "line": 14
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 12,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 245
|
||||
// CHECK-NEXT: "line": 14
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
// CHECK-NEXT: "qualType": "int"
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "valueCategory": "lvalue"
|
||||
// CHECK-NEXT: "valueCategory": "lvalue",
|
||||
// CHECK-NEXT: "referencedDecl": {
|
||||
// CHECK-NEXT: "id": "0x{{.*}}",
|
||||
// CHECK-NEXT: "kind": "ParmVarDecl",
|
||||
|
@ -450,12 +463,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 246
|
||||
// CHECK-NEXT: "line": 15
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 246
|
||||
// CHECK-NEXT: "line": 15
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
|
@ -466,34 +479,32 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 248
|
||||
// CHECK-NEXT: "line": 17
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 248
|
||||
// CHECK-NEXT: "line": 17
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: ]
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: ]
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: }
|
||||
|
||||
if constexpr(10 == 10)
|
||||
;
|
||||
|
||||
// CHECK: "kind": "IfStmt",
|
||||
// CHECK-NEXT: "range": {
|
||||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 3,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 483
|
||||
// CHECK-NEXT: "line": 19
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 484
|
||||
// CHECK-NEXT: "line": 20
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "isConstexpr": true,
|
||||
|
@ -505,12 +516,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 16,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 483
|
||||
// CHECK-NEXT: "line": 19
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 22,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 483
|
||||
// CHECK-NEXT: "line": 19
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
|
@ -525,12 +536,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 16,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 483
|
||||
// CHECK-NEXT: "line": 19
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 22,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 483
|
||||
// CHECK-NEXT: "line": 19
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
|
@ -546,12 +557,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 16,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 483
|
||||
// CHECK-NEXT: "line": 19
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 16,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 483
|
||||
// CHECK-NEXT: "line": 19
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
|
@ -567,12 +578,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 22,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 483
|
||||
// CHECK-NEXT: "line": 19
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 22,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 483
|
||||
// CHECK-NEXT: "line": 19
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
|
@ -592,32 +603,30 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 484
|
||||
// CHECK-NEXT: "line": 20
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 484
|
||||
// CHECK-NEXT: "line": 20
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: ]
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: }
|
||||
|
||||
if (int i = 12)
|
||||
;
|
||||
|
||||
// CHECK: "kind": "IfStmt",
|
||||
// CHECK-NEXT: "range": {
|
||||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 3,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 607
|
||||
// CHECK-NEXT: "line": 22
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 608
|
||||
// CHECK-NEXT: "line": 23
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "hasVar": true,
|
||||
|
@ -629,12 +638,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 7,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 607
|
||||
// CHECK-NEXT: "line": 22
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 15,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 607
|
||||
// CHECK-NEXT: "line": 22
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "inner": [
|
||||
|
@ -644,18 +653,18 @@ void func(int val) {
|
|||
// CHECK-NEXT: "loc": {
|
||||
// CHECK-NEXT: "col": 11,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 607
|
||||
// CHECK-NEXT: "line": 22
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "range": {
|
||||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 7,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 607
|
||||
// CHECK-NEXT: "line": 22
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 15,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 607
|
||||
// CHECK-NEXT: "line": 22
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "isUsed": true,
|
||||
|
@ -672,12 +681,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 15,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 607
|
||||
// CHECK-NEXT: "line": 22
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 15,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 607
|
||||
// CHECK-NEXT: "line": 22
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
|
@ -697,12 +706,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 11,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 607
|
||||
// CHECK-NEXT: "line": 22
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 11,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 607
|
||||
// CHECK-NEXT: "line": 22
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
|
@ -718,12 +727,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 11,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 607
|
||||
// CHECK-NEXT: "line": 22
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 11,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 607
|
||||
// CHECK-NEXT: "line": 22
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
|
@ -739,18 +748,18 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 11,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 607
|
||||
// CHECK-NEXT: "line": 22
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 11,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 607
|
||||
// CHECK-NEXT: "line": 22
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
// CHECK-NEXT: "qualType": "int"
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "valueCategory": "lvalue"
|
||||
// CHECK-NEXT: "valueCategory": "lvalue",
|
||||
// CHECK-NEXT: "referencedDecl": {
|
||||
// CHECK-NEXT: "id": "0x{{.*}}",
|
||||
// CHECK-NEXT: "kind": "VarDecl",
|
||||
|
@ -771,32 +780,30 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 608
|
||||
// CHECK-NEXT: "line": 23
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 608
|
||||
// CHECK-NEXT: "line": 23
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: ]
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: }
|
||||
|
||||
if (int i = 12; i)
|
||||
;
|
||||
|
||||
// CHECK: "kind": "IfStmt",
|
||||
// CHECK-NEXT: "range": {
|
||||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 3,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 786
|
||||
// CHECK-NEXT: "line": 25
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 787
|
||||
// CHECK-NEXT: "line": 26
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "hasInit": true,
|
||||
|
@ -808,12 +815,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 7,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 786
|
||||
// CHECK-NEXT: "line": 25
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 17,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 786
|
||||
// CHECK-NEXT: "line": 25
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "inner": [
|
||||
|
@ -823,18 +830,18 @@ void func(int val) {
|
|||
// CHECK-NEXT: "loc": {
|
||||
// CHECK-NEXT: "col": 11,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 786
|
||||
// CHECK-NEXT: "line": 25
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "range": {
|
||||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 7,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 786
|
||||
// CHECK-NEXT: "line": 25
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 15,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 786
|
||||
// CHECK-NEXT: "line": 25
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "isUsed": true,
|
||||
|
@ -851,12 +858,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 15,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 786
|
||||
// CHECK-NEXT: "line": 25
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 15,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 786
|
||||
// CHECK-NEXT: "line": 25
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
|
@ -876,12 +883,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 19,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 786
|
||||
// CHECK-NEXT: "line": 25
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 19,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 786
|
||||
// CHECK-NEXT: "line": 25
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
|
@ -897,12 +904,12 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 19,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 786
|
||||
// CHECK-NEXT: "line": 25
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 19,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 786
|
||||
// CHECK-NEXT: "line": 25
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
|
@ -918,18 +925,18 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 19,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 786
|
||||
// CHECK-NEXT: "line": 25
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 19,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 786
|
||||
// CHECK-NEXT: "line": 25
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "type": {
|
||||
// CHECK-NEXT: "qualType": "int"
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "valueCategory": "lvalue"
|
||||
// CHECK-NEXT: "valueCategory": "lvalue",
|
||||
// CHECK-NEXT: "referencedDecl": {
|
||||
// CHECK-NEXT: "id": "0x{{.*}}",
|
||||
// CHECK-NEXT: "kind": "VarDecl",
|
||||
|
@ -950,15 +957,14 @@ void func(int val) {
|
|||
// CHECK-NEXT: "begin": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 787
|
||||
// CHECK-NEXT: "line": 26
|
||||
// CHECK-NEXT: },
|
||||
// CHECK-NEXT: "end": {
|
||||
// CHECK-NEXT: "col": 5,
|
||||
// CHECK-NEXT: "file": "{{.*}}",
|
||||
// CHECK-NEXT: "line": 787
|
||||
// CHECK-NEXT: "line": 26
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: }
|
||||
// CHECK-NEXT: ]
|
||||
// CHECK-NEXT: }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue