[cfe-dev] implementing language extensions in clang

Chris Lattner clattner at apple.com
Sat Oct 3 13:26:16 PDT 2009


On Oct 1, 2009, at 1:24 PM, david raila wrote:

>
>     I am adding extensions to clang for annotating c++ and doing some
> static analysis and checking.
> Need at least one new type, annotations (after) declarations and  
> methods
> to start.
> Are there some guidelines and/or can someone give some advice?
> The plan is currently:
>  1. Mod clang to digest the syntax and ignore the extensions.
>  2. Add static analysis and type checking w.r.t. the new constructs  
> and
> attributes.

Hi David,

The best way to get started is to look for similar examples and see  
how they work.  Your plan seems pretty reasonable to me!

-Chris



More information about the cfe-dev mailing list