Skip to contentSkip to conversation

Source code transformations around g_autoptr()

Cocci Markus Elfring 1 participant 1 message Feb 8, 2020

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines
Quoted 7 lines

minus: parse error:
File "test.cocci", line 3, column 15, charpos = 38 around = 'p',
whole content = - g_autoptr(d) p;

is it correct?

No, Coccinelle knows nothing about these things.

How are the chances to improve the software situation for the safe handling of macros besides the extension of a source file like “standard.h”?
https://developer.gnome.org/glib/stable/glib-Miscellaneous-Macros.html#g-autoptr

Will an additional configuration file be occasionally helpful?
https://github.com/coccinelle/coccinelle/blob/7ec31ed1fadf738bc487ccefdc63bfe0598f44cc/docs/manual/spatch_options.tex#L384

Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci