public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Gcc plugin for modification of source code ?
@ 2014-06-14 21:21 Mohsin Khan
  0 siblings, 0 replies; only message in thread
From: Mohsin Khan @ 2014-06-14 21:21 UTC (permalink / raw)
  To: gcc, gcc-help

Hi,
I'm working on a gcc plugin project. I had a doubt, can somebody help
me on this.
Can we write a plugin (which works after a pass like cfg or any other)
which can modify the source code of .C file, for example insert
comments before function definitions or insert a new IF Block in the
.C file. And after modification it writes the entire modified code to
a new .C file. Is this type of plugin possible in GCC. If yes, please
tell me how and if No, please tell me why.
Any help is much appreciated.
Thanks

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

only message in thread, other threads:[~2014-06-14 21:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-14 21:21 Gcc plugin for modification of source code ? Mohsin Khan

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 read-only IMAP folder(s) and NNTP newsgroup(s).