[cfe-dev] Reference-counted statements
Fariborz Jahanian
fjahanian at apple.com
Fri Aug 7 10:25:34 PDT 2009
On Aug 7, 2009, at 10:20 AM, Douglas Gregor wrote:
>
> On Aug 7, 2009, at 10:15 AM, Fariborz Jahanian wrote:
>
>> Ref counting is fine. One issue I see is when traversing the tree
>> (for whatever reason)
>> with shared nodes. Need a special flag in the node (or some other
>> mechanism) to not revisit the shared sub-tree.
>
> Is there a particular use case you have in mind?
It depends on who the consumer of the shared trees are. Are we going
to see AST trees with
shared nodes because of this? Then maybe the Indexer when caching the
AST nodes. If this
is all internal to Sema and Sema has no need to traverse the tree
then it is a non-issue.
- Fariborz
>
>
> - Doug
More information about the cfe-dev
mailing list