[cfe-dev] Clang Plugins

Douglas Gregor dgregor at apple.com
Fri Jul 22 13:27:45 PDT 2011

On Jul 22, 2011, at 1:21 PM, John Criswell wrote:

> On 7/22/11 3:15 PM, Douglas Gregor wrote:
>> On Jul 22, 2011, at 12:55 PM, John Criswell wrote:
>>> Dear All,
>>> We're looking to integrate our memory safety transforms into Clang so
>>> that a simple command-line option to Clang will compile code with memory
>>> safety checks.
>>> We had originally believed that we would need to modify Clang, but Chris
>>> Lattner suggested that we investigate a new plugin infrastructure that
>>> is in development in Clang by Doug (I think it has something to do with
>>> PassManagerBuilder.h).
>> As much as I'd love to see an improved plugin framework, I'm not actively working on one.
> To quote Chris, "Doug gave a talk at boostcon about doing ast transformations with it, but no it is not very mature at all. The static analyzer is moving to it, but there are no widely used plugins yet." [1]
> Are you the Doug that discussed the Clang plugin infrastructure at boostcon?  If so, did I misunderstand Chris when he said that work had started on it but that it was in the early stages?

There's not much work going on in that area now, although you can check out the examples in the Clang tree for plugins that do currently exist, and how they fit in. There is much to be improved.

	- Doug

More information about the cfe-dev mailing list