Sebastian Redl wrote: > I really like the idea of simply passing a Declarator to ActOnCXXNew, > though. Ideally, I'd kill the outermost array there and keep its > expression, then pass it on to ActOnTypeName to create the type for me. > However, for that I'd have to make the chunks removable in Declarator, > which they aren't now. > Did it without making the thing mutable. I just taught GetTypeForDeclarator to skip a bit.
So, here's the new patch. There are downsides to this approach, too - for example, statement printing doesn't work quite right if I do it this way. Next up, I'll go hunting for leaking Exprs throughout Sema. That's a cleanup that's long overdue, I think. Sebastian _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
