@@ -48,7 +48,8 @@ func TestCTagsToPrototypesShouldListPrototypes(t *testing.T) {
4848 context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
4949
5050 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 },
5253 & builder.CTagsToPrototypes {},
5354 }
5455
@@ -80,7 +81,8 @@ func TestCTagsToPrototypesShouldListTemplates(t *testing.T) {
8081 context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
8182
8283 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 },
8486 & builder.CTagsToPrototypes {},
8587 }
8688
@@ -110,7 +112,8 @@ func TestCTagsToPrototypesShouldListTemplates2(t *testing.T) {
110112 context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
111113
112114 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 },
114117 & builder.CTagsToPrototypes {},
115118 }
116119
@@ -141,7 +144,8 @@ func TestCTagsToPrototypesShouldDealWithClasses(t *testing.T) {
141144 context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
142145
143146 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 },
145149 & builder.CTagsToPrototypes {},
146150 }
147151
@@ -167,7 +171,8 @@ func TestCTagsToPrototypesShouldDealWithStructs(t *testing.T) {
167171 context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
168172
169173 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 },
171176 & builder.CTagsToPrototypes {},
172177 }
173178
@@ -197,7 +202,8 @@ func TestCTagsToPrototypesShouldDealWithMacros(t *testing.T) {
197202 context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
198203
199204 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 },
201207 & builder.CTagsToPrototypes {},
202208 }
203209
@@ -229,7 +235,8 @@ func TestCTagsToPrototypesShouldDealFunctionWithDifferentSignatures(t *testing.T
229235 context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
230236
231237 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 },
233240 & builder.CTagsToPrototypes {},
234241 }
235242
@@ -257,7 +264,8 @@ func TestCTagsToPrototypesClassMembersAreFilteredOut(t *testing.T) {
257264 context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
258265
259266 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 },
261269 & builder.CTagsToPrototypes {},
262270 }
263271
@@ -286,7 +294,8 @@ func TestCTagsToPrototypesStructWithFunctions(t *testing.T) {
286294 context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
287295
288296 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 },
290299 & builder.CTagsToPrototypes {},
291300 }
292301
@@ -315,7 +324,8 @@ func TestCTagsToPrototypesDefaultArguments(t *testing.T) {
315324 context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
316325
317326 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 },
319329 & builder.CTagsToPrototypes {},
320330 }
321331
@@ -344,7 +354,8 @@ func TestCTagsToPrototypesNamespace(t *testing.T) {
344354 context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
345355
346356 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 },
348359 & builder.CTagsToPrototypes {},
349360 }
350361
@@ -373,7 +384,8 @@ func TestCTagsToPrototypesStatic(t *testing.T) {
373384 context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
374385
375386 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 },
377389 & builder.CTagsToPrototypes {},
378390 }
379391
@@ -404,7 +416,8 @@ func TestCTagsToPrototypesFunctionPointer(t *testing.T) {
404416 context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
405417
406418 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 },
408421 & builder.CTagsToPrototypes {},
409422 }
410423
@@ -434,7 +447,8 @@ func TestCTagsToPrototypesFunctionPointers(t *testing.T) {
434447 context [constants .CTX_CTAGS_OUTPUT ] = string (bytes )
435448
436449 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 },
438452 & builder.CTagsToPrototypes {},
439453 }
440454
0 commit comments