Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Utilities/ast-grep/rule-tests/__snapshots__/cmstrcat-to-char-literal-snapshot.yml
3152 views
1
id: cmstrcat-to-char-literal
2
snapshots:
3
cmStrCat("'"):
4
fixed: cmStrCat('\'')
5
labels:
6
- source: '"''"'
7
style: primary
8
start: 9
9
end: 12
10
- source: cmStrCat("'")
11
style: secondary
12
start: 0
13
end: 13
14
cmStrCat("'", other):
15
fixed: cmStrCat('\'', other)
16
labels:
17
- source: '"''"'
18
style: primary
19
start: 9
20
end: 12
21
- source: cmStrCat("'", other)
22
style: secondary
23
start: 0
24
end: 20
25
- source: ','
26
style: secondary
27
start: 12
28
end: 13
29
- source: (
30
style: secondary
31
start: 8
32
end: 9
33
cmStrCat("\""):
34
fixed: cmStrCat('"')
35
labels:
36
- source: '"\""'
37
style: primary
38
start: 9
39
end: 13
40
- source: cmStrCat("\"")
41
style: secondary
42
start: 0
43
end: 14
44
cmStrCat("\"", other):
45
fixed: cmStrCat('"', other)
46
labels:
47
- source: '"\""'
48
style: primary
49
start: 9
50
end: 13
51
- source: cmStrCat("\"", other)
52
style: secondary
53
start: 0
54
end: 21
55
- source: ','
56
style: secondary
57
start: 13
58
end: 14
59
- source: (
60
style: secondary
61
start: 8
62
end: 9
63
cmStrCat("\'"):
64
fixed: cmStrCat('\'')
65
labels:
66
- source: '"\''"'
67
style: primary
68
start: 9
69
end: 13
70
- source: cmStrCat("\'")
71
style: secondary
72
start: 0
73
end: 14
74
cmStrCat("\'", other):
75
fixed: cmStrCat('\'', other)
76
labels:
77
- source: '"\''"'
78
style: primary
79
start: 9
80
end: 13
81
- source: cmStrCat("\'", other)
82
style: secondary
83
start: 0
84
end: 21
85
- source: ','
86
style: secondary
87
start: 13
88
end: 14
89
- source: (
90
style: secondary
91
start: 8
92
end: 9
93
cmStrCat("\n"):
94
fixed: cmStrCat('\n')
95
labels:
96
- source: '"\n"'
97
style: primary
98
start: 9
99
end: 13
100
- source: cmStrCat("\n")
101
style: secondary
102
start: 0
103
end: 14
104
cmStrCat("\n", other):
105
fixed: cmStrCat('\n', other)
106
labels:
107
- source: '"\n"'
108
style: primary
109
start: 9
110
end: 13
111
- source: cmStrCat("\n", other)
112
style: secondary
113
start: 0
114
end: 21
115
- source: ','
116
style: secondary
117
start: 13
118
end: 14
119
- source: (
120
style: secondary
121
start: 8
122
end: 9
123
cmStrCat("n"):
124
fixed: cmStrCat('n')
125
labels:
126
- source: '"n"'
127
style: primary
128
start: 9
129
end: 12
130
- source: cmStrCat("n")
131
style: secondary
132
start: 0
133
end: 13
134
cmStrCat("n", other):
135
fixed: cmStrCat('n', other)
136
labels:
137
- source: '"n"'
138
style: primary
139
start: 9
140
end: 12
141
- source: cmStrCat("n", other)
142
style: secondary
143
start: 0
144
end: 20
145
- source: ','
146
style: secondary
147
start: 12
148
end: 13
149
- source: (
150
style: secondary
151
start: 8
152
end: 9
153
cmStrCat(other, "'"):
154
fixed: cmStrCat(other, '\'')
155
labels:
156
- source: '"''"'
157
style: primary
158
start: 16
159
end: 19
160
- source: cmStrCat(other, "'")
161
style: secondary
162
start: 0
163
end: 20
164
- source: )
165
style: secondary
166
start: 19
167
end: 20
168
- source: ','
169
style: secondary
170
start: 14
171
end: 15
172
cmStrCat(other, "'", other):
173
fixed: cmStrCat(other, '\'', other)
174
labels:
175
- source: '"''"'
176
style: primary
177
start: 16
178
end: 19
179
- source: cmStrCat(other, "'", other)
180
style: secondary
181
start: 0
182
end: 27
183
- source: ','
184
style: secondary
185
start: 19
186
end: 20
187
- source: ','
188
style: secondary
189
start: 14
190
end: 15
191
cmStrCat(other, "\""):
192
fixed: cmStrCat(other, '"')
193
labels:
194
- source: '"\""'
195
style: primary
196
start: 16
197
end: 20
198
- source: cmStrCat(other, "\"")
199
style: secondary
200
start: 0
201
end: 21
202
- source: )
203
style: secondary
204
start: 20
205
end: 21
206
- source: ','
207
style: secondary
208
start: 14
209
end: 15
210
cmStrCat(other, "\"", other):
211
fixed: cmStrCat(other, '"', other)
212
labels:
213
- source: '"\""'
214
style: primary
215
start: 16
216
end: 20
217
- source: cmStrCat(other, "\"", other)
218
style: secondary
219
start: 0
220
end: 28
221
- source: ','
222
style: secondary
223
start: 20
224
end: 21
225
- source: ','
226
style: secondary
227
start: 14
228
end: 15
229
cmStrCat(other, "\'"):
230
fixed: cmStrCat(other, '\'')
231
labels:
232
- source: '"\''"'
233
style: primary
234
start: 16
235
end: 20
236
- source: cmStrCat(other, "\'")
237
style: secondary
238
start: 0
239
end: 21
240
- source: )
241
style: secondary
242
start: 20
243
end: 21
244
- source: ','
245
style: secondary
246
start: 14
247
end: 15
248
cmStrCat(other, "\'", other):
249
fixed: cmStrCat(other, '\'', other)
250
labels:
251
- source: '"\''"'
252
style: primary
253
start: 16
254
end: 20
255
- source: cmStrCat(other, "\'", other)
256
style: secondary
257
start: 0
258
end: 28
259
- source: ','
260
style: secondary
261
start: 20
262
end: 21
263
- source: ','
264
style: secondary
265
start: 14
266
end: 15
267
cmStrCat(other, "\n"):
268
fixed: cmStrCat(other, '\n')
269
labels:
270
- source: '"\n"'
271
style: primary
272
start: 16
273
end: 20
274
- source: cmStrCat(other, "\n")
275
style: secondary
276
start: 0
277
end: 21
278
- source: )
279
style: secondary
280
start: 20
281
end: 21
282
- source: ','
283
style: secondary
284
start: 14
285
end: 15
286
cmStrCat(other, "\n", other):
287
fixed: cmStrCat(other, '\n', other)
288
labels:
289
- source: '"\n"'
290
style: primary
291
start: 16
292
end: 20
293
- source: cmStrCat(other, "\n", other)
294
style: secondary
295
start: 0
296
end: 28
297
- source: ','
298
style: secondary
299
start: 20
300
end: 21
301
- source: ','
302
style: secondary
303
start: 14
304
end: 15
305
cmStrCat(other, "n"):
306
fixed: cmStrCat(other, 'n')
307
labels:
308
- source: '"n"'
309
style: primary
310
start: 16
311
end: 19
312
- source: cmStrCat(other, "n")
313
style: secondary
314
start: 0
315
end: 20
316
- source: )
317
style: secondary
318
start: 19
319
end: 20
320
- source: ','
321
style: secondary
322
start: 14
323
end: 15
324
cmStrCat(other, "n", other):
325
fixed: cmStrCat(other, 'n', other)
326
labels:
327
- source: '"n"'
328
style: primary
329
start: 16
330
end: 19
331
- source: cmStrCat(other, "n", other)
332
style: secondary
333
start: 0
334
end: 27
335
- source: ','
336
style: secondary
337
start: 19
338
end: 20
339
- source: ','
340
style: secondary
341
start: 14
342
end: 15
343
344