[cfe-dev] Apple's Clang
alexander at smirn0v.ru
Mon May 21 13:45:03 PDT 2012
Thanks for fast reply!
As far as I understand the tricky part here is that if I want to build a plugin I need a set of static libraries (clangFrontend, clangDriver, clangAST, etc.), but Apple's Clang version does not include them.
I have already managed to build a pair of plugins with my own build of Clang, but don't understand how to achieve the same with Apple's Clang version.
On Tuesday, May 22, 2012 at 12:22 AM, Daniel Powell wrote:
> > Does anyone have experience building clang plugins for Apple's version of Clang ? Is it possible ?
> Yep, two ways of doing things: Writing a plugin, or using libclang.
> For creating plugins check out:
> Or for linking in with libclang check out:
> Also there's the Clang Doxygen documentation which, along with the source code, is incredibly useful:
> > What I'm trying to do is to create simple Obj-C code style guidelines checker.
> If you're wanting to traverse the AST I recommend you look into creating a plugin with a custom ASTConsumer and RecursiveASTVisitor.
> Daniel Powell
> d.c.powell at sms.ed.ac.uk (mailto:d.c.powell at sms.ed.ac.uk)
> The University of Edinburgh
> Institute for Computer Systems Architecture
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev