logos icon indicating copy to clipboard operation
logos copied to clipboard

No dependency ordering in Logos

Open theiostream opened this issue 11 years ago • 1 comments

Code such as

%subclass FAFloatyFolderView : FACommonFolderView
%end

%subclass FACommonFolderView : SBFolderView
%end

will generate output:

Class _logos_class$_ungrouped$FACommonFolderView = objc_getClass("FACommonFolderView");
Class _logos_class$_ungrouped$FAFloatyFolderView = objc_allocateClassPair(_logos_class$_ungrouped$FACommonFolderView, "FAFloatyFolderView", 0);
Class _logos_class$_ungrouped$FACommonFolderView = objc_allocateClassPair(_logos_class$_ungrouped$SBFolderView, "FACommonFolderView", 0);

Therefore causing FAFloatyFolderView to be initialized without a superclass, and generating a redundant call to objc_getClass().

theiostream avatar Feb 24 '14 22:02 theiostream

I would consider this a situation that shouldn't be supported. Clang/GCC doesn’t support this with @interface. However, Logos should be throwing an error for this.

kirb avatar Feb 12 '16 02:02 kirb