cocci.inria.fr archive mirror
 help / color / mirror / Atom feed
* [Cocci] Positional parameter p1[0].file contains temporarily munged filename, not original
@ 2018-12-18 21:36 Timur Tabi
  2018-12-18 22:07 ` Julia Lawall
  0 siblings, 1 reply; 9+ messages in thread
From: Timur Tabi @ 2018-12-18 21:36 UTC (permalink / raw)
  To: cocci

I added this line to my Python code:

    print >>sys.stderr, 'Warning: missing \\n on line %s in %s' %
(p1[0].line, p1[0].file)

and this is what it prints:

Warning: missing \n on line 813 in
/tmp/cocci_small_output-11011-b5932b-grgf100.c

So it looks like spatch is copying the file to the /tmp directory
before processing it.  Is there any way to get the original file name,
grgf100.c?
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-01-23  6:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-18 21:36 [Cocci] Positional parameter p1[0].file contains temporarily munged filename, not original Timur Tabi
2018-12-18 22:07 ` Julia Lawall
2018-12-19  0:39   ` Timur Tabi
2018-12-19  6:21     ` Julia Lawall
2018-12-19 13:32       ` Timur Tabi
2019-01-22 18:36       ` Timur Tabi
2019-01-22 18:43         ` Julia Lawall
2019-01-23  0:05           ` Timur Tabi
2019-01-23  6:29             ` Julia Lawall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).