[cfe-commits] r66820 - /cfe/trunk/include/clang/AST/DeclObjC.h

Ted Kremenek kremenek at apple.com
Thu Mar 12 14:24:07 PDT 2009


On Mar 12, 2009, at 2:21 PM, Eli Friedman wrote:

> On Thu, Mar 12, 2009 at 11:42 AM, Ted Kremenek <kremenek at apple.com>  
> wrote:
>> -  virtual Stmt *getBody() const { return Body; }
>> -  void setBody(Stmt *B) { Body = B; }
>> +  virtual CompoundStmt *getBody() const { return (CompoundStmt*)  
>> Body; }
>> +  void setBody(CompoundStmt *B) { Body = (Stmt*) B; }
>
> Use cast_or_null<> instead of a C-style cast?  (Also in previous  
> commit.)

I don't think this is possible within the Decl headers, since the Stmt  
headers depend on the Decl headers.



More information about the cfe-commits mailing list