[cfe-dev] Modifying an AST and Sema's dependency on an AST consumer

Chris Lattner clattner at apple.com
Thu Dec 4 09:31:52 PST 2008


On Dec 4, 2008, at 8:44 AM, Daniel Dunbar wrote:

> However, it is perfectly reasonable for a client to want to use ASTs
> and delete the Preprocessor.

Yes.

> Does this mean we should have another
> context object?

No.

ASTContext should own the identifier info table.  If you're using the  
preprocessor without sema, you have to manage the lifetime of the  
identifier info table yourself.

-Chris



More information about the cfe-dev mailing list