[cfe-dev] Should ObjCMethodDecl::getCanonicalDecl search superclass?

Kevin Cathey kcathey2 at illinois.edu
Tue Oct 13 21:28:36 PDT 2009


Should the getCanonicalDecl method on ObjCMethodDecl also search its superclasses? For example, if I have the following:

@interface MyBaseClass <MyProtocol> {
}
- (void)method1;
@end

@interface MyClass : MyBaseClass {
}
- (void)method2:(id)argument;
@end

@implementation MyClass
- (void)method1 {
}

- (void)method2:(id)argument {
}
@end

I would expect that in the implementation of MyClass, that the canonical decl for both methods 1 and 2 should be their definitions in MyClass and MyBaseClass. Currently, only method2 resolves to the declaration. method1 returns itself.

Kevin

-------------------------------------------------
Kevin Cathey
Department of Computer Science - College of Engineering
University of Illinois Urbana Champaign


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20091013/a61217fa/attachment.html>


More information about the cfe-dev mailing list