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

Eli Friedman eli.friedman at gmail.com
Thu Mar 12 15:12:02 PDT 2009


On Thu, Mar 12, 2009 at 2:24 PM, Ted Kremenek <kremenek at apple.com> wrote:
>
> 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.

Oh, right, I forgot about that.

-Eli




More information about the cfe-commits mailing list