Coccinelle archive on lore.kernel.org
 help / color / Atom feed
* Re: [Cocci] Source code transformations around g_autoptr()
@ 2020-02-08  9:20 Markus Elfring
  0 siblings, 0 replies; only message in thread
From: Markus Elfring @ 2020-02-08  9:20 UTC (permalink / raw)
  To: Julia Lawall, Pan Nengyuan, Coccinelle; +Cc: Kuhn Chenqun

> > 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
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-08  9:20 [Cocci] Source code transformations around g_autoptr() Markus Elfring

Coccinelle archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/cocci/0 cocci/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 cocci cocci/ https://lore.kernel.org/cocci \
		cocci@systeme.lip6.fr
	public-inbox-index cocci

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/fr.lip6.systeme.cocci


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git