[cfe-commits] r79013 - in /cfe/trunk: include/clang/AST/ExprCXX.h lib/Sema/SemaDeclCXX.cpp lib/Sema/SemaExpr.cpp lib/Sema/SemaOverload.cpp lib/Sema/TreeTransform.h

Anders Carlsson andersca at mac.com
Fri Aug 14 11:58:37 PDT 2009


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



More information about the cfe-commits mailing list