@@ -15,36 +15,129 @@ func testNoneMarkerCheck() {
15
15
func test0Fixits( ) {
16
16
undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}}
17
17
18
+ // CHECK: [[@LINE+1]]:80: error: expected fix-it verification within braces; example: '1-2=text' or 'none'
19
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{}}
20
+
21
+ // CHECK: [[@LINE+1]]:81: error: expected line offset after leading '+' or '-' in fix-it verification
22
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{+}}
23
+
24
+ // CHECK: [[@LINE+1]]:81: error: expected line offset after leading '+' or '-' in fix-it verification
25
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{-}}
26
+
27
+ // CHECK: [[@LINE+1]]:81: error: expected '-' range separator in fix-it verification
28
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1}}
29
+
30
+ // CHECK: [[@LINE+1]]:82: error: expected colon-separated column number after line offset in fix-it verification
31
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{-1}}
32
+
33
+ // CHECK: [[@LINE+1]]:82: error: expected colon-separated column number after line offset in fix-it verification
34
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{+1}}
35
+
36
+ // CHECK: [[@LINE+1]]:82: error: expected column number after ':' in fix-it verification
37
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:}}
38
+
39
+ // CHECK: [[@LINE+1]]:83: error: expected column number after ':' in fix-it verification
40
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{+1:}}
41
+
42
+ // CHECK: [[@LINE+1]]:83: error: expected '-' range separator in fix-it verification
43
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:1}}
44
+
45
+ // CHECK: [[@LINE+1]]:84: error: expected '-' range separator in fix-it verification
46
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{-1:1}}
47
+
48
+ // CHECK: [[@LINE+1]]:83: error: expected column number after ':' in fix-it verification
49
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{+1:-1}}
50
+
51
+ // CHECK: [[@LINE+1]]:82: error: expected line or column number in fix-it verification
52
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-}}
53
+
54
+ // CHECK: [[@LINE+1]]:84: error: expected line or column number in fix-it verification
55
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:1-}}
56
+
57
+ // CHECK: [[@LINE+1]]:85: error: expected line or column number in fix-it verification
58
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{-1:1-}}
59
+
60
+ // CHECK: [[@LINE+1]]:83: error: expected line offset after leading '+' or '-' in fix-it verification
61
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1--}}
62
+
63
+ // CHECK: [[@LINE+1]]:83: error: expected '=' after range in fix-it verification
64
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-1}}
65
+
66
+ // CHECK: [[@LINE+1]]:85: error: expected '=' after range in fix-it verification
67
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:1-1}}
68
+
69
+ // CHECK: [[@LINE+1]]:86: error: expected '=' after range in fix-it verification
70
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{+1:1-1}}
71
+
72
+ // CHECK: [[@LINE+1]]:83: error: expected line offset after leading '+' or '-' in fix-it verification
73
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1--:}}
74
+
75
+ // CHECK: [[@LINE+1]]:84: error: expected column number after ':' in fix-it verification
76
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-1:}}
77
+
78
+ // CHECK: [[@LINE+1]]:86: error: expected column number after ':' in fix-it verification
79
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:1-1:}}
80
+
81
+ // CHECK: [[@LINE+1]]:87: error: expected column number after ':' in fix-it verification
82
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{+1:1-1:}}
83
+
84
+ // CHECK: [[@LINE+1]]:85: error: expected '=' after range in fix-it verification
85
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-1:1}}
86
+
87
+ // CHECK: [[@LINE+1]]:86: error: expected '=' after range in fix-it verification
88
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-+1:1}}
89
+
90
+ // CHECK: [[@LINE+1]]:87: error: expected '=' after range in fix-it verification
91
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:1-1:1}}
92
+
93
+ // CHECK: [[@LINE+1]]:89: error: expected '=' after range in fix-it verification
94
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{+1:1--1:1}}
95
+
96
+ // CHECK: [[@LINE+1]]:78: error: expected fix-it not seen
97
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-1=}}
98
+
18
99
// CHECK: [[@LINE+1]]:78: error: expected fix-it not seen
19
100
undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-1=a}}
20
101
21
- // CHECK: [[@LINE+1]]:80: error: invalid column number in fix-it verification
102
+ // CHECK: [[@LINE+1]]:80: error: expected line or column number in fix-it verification
22
103
undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{x-1=a}}
23
104
24
- // CHECK: [[@LINE+1]]:82: error: invalid column number in fix-it verification
105
+ // CHECK: [[@LINE+1]]:82: error: expected line or column number in fix-it verification
25
106
undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-x=a}}
26
107
27
- // CHECK: [[@LINE+1]]:82: error: invalid column number in fix-it verification
108
+ // CHECK: [[@LINE+1]]:82: error: expected column number after ':' in fix-it verification
28
109
undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:x-1=a}}
29
110
30
- // CHECK: [[@LINE+1]]:80: error: invalid line number in fix-it verification
111
+ // CHECK: [[@LINE+1]]:80: error: expected line or column number in fix-it verification
31
112
undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{x:1-1=a}}
32
113
33
- // CHECK: [[@LINE+1]]:84: error: invalid column number in fix-it verification
114
+ // CHECK: [[@LINE+1]]:81: error: expected line offset after leading '+' or '-' in fix-it verification
115
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{+x:1-1=a}}
116
+
117
+ // CHECK: [[@LINE+1]]:84: error: expected column number after ':' in fix-it verification
34
118
undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-1:x=a}}
35
119
36
- // CHECK: [[@LINE+1]]:82: error: invalid line number in fix-it verification
120
+ // CHECK: [[@LINE+1]]:82: error: expected line or column number in fix-it verification
37
121
undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-x:1=a}}
38
122
39
- // CHECK: [[@LINE+1]]:82: error: invalid column number in fix-it verification
123
+ // CHECK: [[@LINE+1]]:83: error: expected line offset after leading '+' or '-' in fix-it verification
124
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-+x:1=a}}
125
+
126
+ // CHECK: [[@LINE+1]]:82: error: expected column number after ':' in fix-it verification
40
127
undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:x-1:x=a}}
41
128
42
- // CHECK: [[@LINE+1]]:80: error: invalid line number in fix-it verification
129
+ // CHECK: [[@LINE+1]]:80: error: expected line or column number in fix-it verification
43
130
undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{x:1-1:x=a}}
44
131
45
- // CHECK: [[@LINE+1]]:82: error: invalid column number in fix-it verification
132
+ // CHECK: [[@LINE+1]]:81: error: expected line offset after leading '+' or '-' in fix-it verification
133
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{+x:1-1:x=a}}
134
+
135
+ // CHECK: [[@LINE+1]]:82: error: expected column number after ':' in fix-it verification
46
136
undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:x-x:1=a}}
47
137
138
+ // CHECK: [[@LINE+1]]:82: error: expected column number after ':' in fix-it verification
139
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:x--x:1=a}}
140
+
48
141
// CHECK: [[@LINE+1]]:78: error: expected fix-it not seen
49
142
undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:1-1:1=a}}
50
143
@@ -54,6 +147,15 @@ func test0Fixits() {
54
147
// CHECK: [[@LINE+1]]:78: error: expected fix-it not seen
55
148
undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1:1-1=a}}
56
149
150
+ // CHECK: [[@LINE+1]]:78: error: expected fix-it not seen
151
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{-1:1-1=a}}
152
+
153
+ // CHECK: [[@LINE+1]]:78: error: expected fix-it not seen
154
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-+1:1=a}}
155
+
156
+ // CHECK: [[@LINE+1]]:78: error: expected fix-it not seen
157
+ undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{+1:1-+1:1=a}}
158
+
57
159
// CHECK: [[@LINE+1]]:78: error: expected fix-it not seen
58
160
undefinedFunc ( ) // expected-error {{cannot find 'undefinedFunc' in scope}} {{1-1=a}} {{2-2=b}}
59
161
@@ -95,13 +197,32 @@ func test1Fixits() {
95
197
labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{15-18=xx}} {{15-18=aa}} {{none}}
96
198
97
199
// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
98
- labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{98:15-98:18=aa}}
200
+ labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{200:15-200:18=aa}}
201
+ // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
202
+ labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{202:15-18=aa}}
203
+ // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
204
+ labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{15-204:18=aa}}
205
+ // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
206
+ labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{-0:15-+0:18=aa}}
207
+ // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
208
+ labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{15--0:18=aa}}
99
209
// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
100
- labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{100 :15-18=aa}}
210
+ labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {+0 :15-210: 18=aa}}
101
211
// CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
102
- labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{15-102:18=aa}}
212
+ labeledFunc ( aa: 0 , // expected-error {{incorrect argument label in call (have 'aa:bbx:', expected 'aa:bb:')}} {{+1:15-+1:18=bb}}
213
+ bbx: 1 )
214
+ // CHECK-NOT: [[@LINE+1]]:{{[0-9]+}}: error:
215
+ labeledFunc ( aa: 0 , // expected-error {{incorrect argument label in call (have 'aa:bbx:', expected 'aa:bb:')}} {{216:15-+1:18=bb}}
216
+ bbx: 1 )
217
+
103
218
// CHECK: [[@LINE+1]]:121: error: expected fix-it not seen; actual fix-it seen: {{{{}}15-18=aa}}
104
219
labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{61:15-18=aa}}
220
+ // CHECK: [[@LINE+1]]:121: error: expected fix-it not seen; actual fix-it seen: {{{{}}15-18=aa}}
221
+ labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{-1:15-18=aa}}
222
+ // CHECK: [[@LINE+1]]:121: error: expected fix-it not seen; actual fix-it seen: {{{{}}15-18=aa}}
223
+ labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{+0:15--1:18=aa}}
224
+ // CHECK: [[@LINE+1]]:121: error: expected fix-it not seen; actual fix-it seen: {{{{}}15-18=aa}}
225
+ labeledFunc ( aax: 0 , bb: 1 ) // expected-error {{incorrect argument label in call (have 'aax:bb:', expected 'aa:bb:')}} {{61:15-+1:18=aa}}
105
226
}
106
227
107
228
func test2Fixits( ) {
0 commit comments