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