[cfe-dev] Howto inject code
David Blaikie via cfe-dev
cfe-dev at lists.llvm.org
Wed Nov 15 07:43:43 PST 2017
I'd look at how things like the Sanitizers are implemented - as
modifications during Clang's IR Generation step.
I'm not sure there are plugin extensibility points (or whether there could
ever reasonably enough such extensibility points to make that worthwhile) -
but when it comes to outright modifying the Clang source code, the
Sanitizers should give you some sense of where/how one might do that.
On Tue, Nov 14, 2017 at 7:59 PM Phil Bouchard via cfe-dev <
cfe-dev at lists.llvm.org> wrote:
> Clang is pretty impressive but I was wondering what is the best way to
> inject code in an existing source file?
> I would like to add parameters to all function declarations, function
> calls, base classes and each compound statement.
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev