[cfe-dev] Function body type
Ted Kremenek
kremenek at apple.com
Mon Apr 27 10:10:03 PDT 2009
On Apr 26, 2009, at 9:42 AM, Douglas Gregor wrote:
>
> On Apr 26, 2009, at 9:21 AM, Sebastian Redl wrote:
>
>> Douglas Gregor wrote:
>>> I am not at all worried about this change touching many components;
>>> it's a mechanical transformation that is unlikely to break anything
>>> and it is the right thing to do.
>> There is a virtual CompoundStmt* getBody(ASTContext&) in Decl. It's
>> widely used. :-(
>
> Two weeks ago, that function was
>
> virtual CompoundStmt *getBody()
>
> Changing signatures throughout Clang isn't such a huge thing.
>
> - Doug
Agreed. Clients will also need to reason about the correct Stmt
anyway. An imaginary CompoundStmt that wraps a CXXTryStmt down the
road just seems problematic for clients that actually care about the
"real" function body.
More information about the cfe-dev
mailing list