[cfe-dev] Smart pointers for canonical types

Douglas Gregor dgregor at apple.com
Fri Jul 17 08:07:15 PDT 2009

On Jul 15, 2009, at 4:58 PM, Douglas Gregor wrote:
> The attached patch introduces a new class template CanQual<T>, which  
> is a smart pointer that refers to a canonical type whose dynamic  
> type is T or some subclass thereof. T will often be Type, but we  
> also expect that, e.g., CanQual<PointerType> will be used rather  
> than const PointerType*.

Here's an updated patch, which contains all of the canonical type  
proxies and converts the template argument deduction code over to use  
the canonical-type smart pointer. Unless there are complaints, I plan  
to introduce this code early next week.

	- Doug

-------------- next part --------------
A non-text attachment was scrubbed...
Name: can-qual-ptr.patch
Type: application/octet-stream
Size: 50330 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090717/ab3e1d68/attachment.obj>
-------------- next part --------------

More information about the cfe-dev mailing list