[cfe-dev] Modifying an AST and Sema's dependency on an AST consumer
daniel at zuster.org
Thu Dec 4 10:44:40 CST 2008
However, it is perfectly reasonable for a client to want to use ASTs
and delete the Preprocessor. Does this mean we should have another
On Thu, Dec 4, 2008 at 8:27 AM, Ted Kremenek <kremenek at apple.com> wrote:
> On Dec 4, 2008, at 7:26 AM, steve naroff <snaroff at apple.com> wrote:
>> On Dec 4, 2008, at 9:54 AM, Lukasz Janyst wrote:
>>> On Wed, Dec 3, 2008 at 3:26 PM, Lukasz Janyst <ljanyst at cern.ch>
>>>> tables in it. Yet still I seem to experience some strange memory
>>>> issues when the modified TU gets processed by the CodeGen.
>>> I sorted it out. The problem was the object ownership. It seemed
>>> natural to me that the identifier table should be owned by the
>>> ASTContext, but it is owned by the Preprocessor object which I
>>> after I was done with the parsing.
>> The IdentifierTable should be owned by ASTContext (as you expected).
>> This is a bug (that I thought we fixed a long time ago...apparently
> I don't think this is a bug. See my other email.
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
More information about the cfe-dev