@@ -48,7 +48,8 @@ func TestCTagsToPrototypesShouldListPrototypes(t *testing.T) {
48
48
context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
49
49
50
50
commands := []types.Command {
51
- & builder.CTagsParser {CTagsField : constants .CTX_COLLECTED_CTAGS },
51
+ & builder.CTagsParser {},
52
+ & CopyContextKeys {From : constants .CTX_CTAGS_OF_PREPROC_SOURCE , To : constants .CTX_COLLECTED_CTAGS },
52
53
& builder.CTagsToPrototypes {},
53
54
}
54
55
@@ -80,7 +81,8 @@ func TestCTagsToPrototypesShouldListTemplates(t *testing.T) {
80
81
context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
81
82
82
83
commands := []types.Command {
83
- & builder.CTagsParser {CTagsField : constants .CTX_COLLECTED_CTAGS },
84
+ & builder.CTagsParser {},
85
+ & CopyContextKeys {From : constants .CTX_CTAGS_OF_PREPROC_SOURCE , To : constants .CTX_COLLECTED_CTAGS },
84
86
& builder.CTagsToPrototypes {},
85
87
}
86
88
@@ -110,7 +112,8 @@ func TestCTagsToPrototypesShouldListTemplates2(t *testing.T) {
110
112
context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
111
113
112
114
commands := []types.Command {
113
- & builder.CTagsParser {CTagsField : constants .CTX_COLLECTED_CTAGS },
115
+ & builder.CTagsParser {},
116
+ & CopyContextKeys {From : constants .CTX_CTAGS_OF_PREPROC_SOURCE , To : constants .CTX_COLLECTED_CTAGS },
114
117
& builder.CTagsToPrototypes {},
115
118
}
116
119
@@ -141,7 +144,8 @@ func TestCTagsToPrototypesShouldDealWithClasses(t *testing.T) {
141
144
context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
142
145
143
146
commands := []types.Command {
144
- & builder.CTagsParser {CTagsField : constants .CTX_COLLECTED_CTAGS },
147
+ & builder.CTagsParser {},
148
+ & CopyContextKeys {From : constants .CTX_CTAGS_OF_PREPROC_SOURCE , To : constants .CTX_COLLECTED_CTAGS },
145
149
& builder.CTagsToPrototypes {},
146
150
}
147
151
@@ -167,7 +171,8 @@ func TestCTagsToPrototypesShouldDealWithStructs(t *testing.T) {
167
171
context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
168
172
169
173
commands := []types.Command {
170
- & builder.CTagsParser {CTagsField : constants .CTX_COLLECTED_CTAGS },
174
+ & builder.CTagsParser {},
175
+ & CopyContextKeys {From : constants .CTX_CTAGS_OF_PREPROC_SOURCE , To : constants .CTX_COLLECTED_CTAGS },
171
176
& builder.CTagsToPrototypes {},
172
177
}
173
178
@@ -197,7 +202,8 @@ func TestCTagsToPrototypesShouldDealWithMacros(t *testing.T) {
197
202
context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
198
203
199
204
commands := []types.Command {
200
- & builder.CTagsParser {CTagsField : constants .CTX_COLLECTED_CTAGS },
205
+ & builder.CTagsParser {},
206
+ & CopyContextKeys {From : constants .CTX_CTAGS_OF_PREPROC_SOURCE , To : constants .CTX_COLLECTED_CTAGS },
201
207
& builder.CTagsToPrototypes {},
202
208
}
203
209
@@ -229,7 +235,8 @@ func TestCTagsToPrototypesShouldDealFunctionWithDifferentSignatures(t *testing.T
229
235
context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
230
236
231
237
commands := []types.Command {
232
- & builder.CTagsParser {CTagsField : constants .CTX_COLLECTED_CTAGS },
238
+ & builder.CTagsParser {},
239
+ & CopyContextKeys {From : constants .CTX_CTAGS_OF_PREPROC_SOURCE , To : constants .CTX_COLLECTED_CTAGS },
233
240
& builder.CTagsToPrototypes {},
234
241
}
235
242
@@ -257,7 +264,8 @@ func TestCTagsToPrototypesClassMembersAreFilteredOut(t *testing.T) {
257
264
context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
258
265
259
266
commands := []types.Command {
260
- & builder.CTagsParser {CTagsField : constants .CTX_COLLECTED_CTAGS },
267
+ & builder.CTagsParser {},
268
+ & CopyContextKeys {From : constants .CTX_CTAGS_OF_PREPROC_SOURCE , To : constants .CTX_COLLECTED_CTAGS },
261
269
& builder.CTagsToPrototypes {},
262
270
}
263
271
@@ -286,7 +294,8 @@ func TestCTagsToPrototypesStructWithFunctions(t *testing.T) {
286
294
context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
287
295
288
296
commands := []types.Command {
289
- & builder.CTagsParser {CTagsField : constants .CTX_COLLECTED_CTAGS },
297
+ & builder.CTagsParser {},
298
+ & CopyContextKeys {From : constants .CTX_CTAGS_OF_PREPROC_SOURCE , To : constants .CTX_COLLECTED_CTAGS },
290
299
& builder.CTagsToPrototypes {},
291
300
}
292
301
@@ -315,7 +324,8 @@ func TestCTagsToPrototypesDefaultArguments(t *testing.T) {
315
324
context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
316
325
317
326
commands := []types.Command {
318
- & builder.CTagsParser {CTagsField : constants .CTX_COLLECTED_CTAGS },
327
+ & builder.CTagsParser {},
328
+ & CopyContextKeys {From : constants .CTX_CTAGS_OF_PREPROC_SOURCE , To : constants .CTX_COLLECTED_CTAGS },
319
329
& builder.CTagsToPrototypes {},
320
330
}
321
331
@@ -344,7 +354,8 @@ func TestCTagsToPrototypesNamespace(t *testing.T) {
344
354
context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
345
355
346
356
commands := []types.Command {
347
- & builder.CTagsParser {CTagsField : constants .CTX_COLLECTED_CTAGS },
357
+ & builder.CTagsParser {},
358
+ & CopyContextKeys {From : constants .CTX_CTAGS_OF_PREPROC_SOURCE , To : constants .CTX_COLLECTED_CTAGS },
348
359
& builder.CTagsToPrototypes {},
349
360
}
350
361
@@ -373,7 +384,8 @@ func TestCTagsToPrototypesStatic(t *testing.T) {
373
384
context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
374
385
375
386
commands := []types.Command {
376
- & builder.CTagsParser {CTagsField : constants .CTX_COLLECTED_CTAGS },
387
+ & builder.CTagsParser {},
388
+ & CopyContextKeys {From : constants .CTX_CTAGS_OF_PREPROC_SOURCE , To : constants .CTX_COLLECTED_CTAGS },
377
389
& builder.CTagsToPrototypes {},
378
390
}
379
391
@@ -404,7 +416,8 @@ func TestCTagsToPrototypesFunctionPointer(t *testing.T) {
404
416
context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
405
417
406
418
commands := []types.Command {
407
- & builder.CTagsParser {CTagsField : constants .CTX_COLLECTED_CTAGS },
419
+ & builder.CTagsParser {},
420
+ & CopyContextKeys {From : constants .CTX_CTAGS_OF_PREPROC_SOURCE , To : constants .CTX_COLLECTED_CTAGS },
408
421
& builder.CTagsToPrototypes {},
409
422
}
410
423
@@ -434,7 +447,8 @@ func TestCTagsToPrototypesFunctionPointers(t *testing.T) {
434
447
context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
435
448
436
449
commands := []types.Command {
437
- & builder.CTagsParser {CTagsField : constants .CTX_COLLECTED_CTAGS },
450
+ & builder.CTagsParser {},
451
+ & CopyContextKeys {From : constants .CTX_CTAGS_OF_PREPROC_SOURCE , To : constants .CTX_COLLECTED_CTAGS },
438
452
& builder.CTagsToPrototypes {},
439
453
}
440
454
0 commit comments