On Aug 14, 2009, at 11:48 AM, Fariborz Jahanian wrote:

>
> On Aug 14, 2009, at 11:30 AM, Anders Carlsson wrote:
>
>> Author: andersca
>> Date: Fri Aug 14 13:30:22 2009
>> New Revision: 79013
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=79013&view=rev
>> Log:
>> Make the CXXDefaultArgExpr constructor protected and add a static  
>> Create function.
>
> What is the utility of declaring this static function and moving the  
> one liner into that?
>
> - Fariborz

It's to make it impossible to allocate a CXXDefaultArgExpr without  
using the ASTContext allocator. We already do it for all Decl  
subclasses.

Anders
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to