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?
Thanks in advance,
Emerson
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.
- Fariborz
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
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?
No good reason:-)
It also has an
@end tag, no?
It does. Apparently, none of the existing clang applications have needed it.
If you need it, feel free to file a Radar,
snaroff