[cfe-dev] No ObjCImplementionDecl>>getAtEndLoc() ?

Chris Lattner clattner at apple.com
Fri Apr 11 09:43:25 PDT 2008


On Apr 11, 2008, at 9:30 AM, Fariborz Jahanian wrote:

>
> On Apr 11, 2008, at 8:48 AM, Emerson Murphy-Hill wrote:
>
>> Ahoy!
>>
>> In clang, getAtEndLoc() is defined on ObjCCategoryDecl,
>> ObjCInterfaceDecl, and ObjCProtocolDecl.  They return the source
>> location of the @end tag.
>>
>> Why is it not on defined on ObjCImplementationDecl?  It also has an
>> @end tag, no?
>
> We generally have added getAtEndLoc() info. as needed by AST's
> consumers; such as the Rewriter. If you need one for this
> class, go ahead and add one.

I agree with Fariborz, it's not problem to add this if you need it.   
Do you want to tackle it, or should I?

-Chris



More information about the cfe-dev mailing list