-
Notifications
You must be signed in to change notification settings - Fork 886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Be able to compile with class-dump headers #50
base: master
Are you sure you want to change the base?
Conversation
These methods can't be compiled.
Even if we include these types in the compilation, they are too specific to be useful. Instead let's trust the consumer of these APIs to know what they're doing.
In the rare case of having a setting for a read-only property, we must ensure the setter has the correct type as its argument, otherwise the header will not compile.
Ping~ |
Any plan to merge this PR ? |
Yes, when I have time to look at it. |
Thanks a lot ! For example, in DVTKit.framework, I have some protocol headers (DVTProgressIndicatorProvidingView => DVTProgressIndicatorProvidingView-Protocol.h) that are generated suffixed by the string -Protocol, whereas they are imported without this suffix (in DVTOutlineView.h). Am I using it wrong ? Regards, |
@nicolasgoutaland did you try using this PR? though I expect even after applying this there will still be some problems |
Hi, Yes, but there is still some problems ;) Concerning the anonymous types I prefer to redefine types in a PCH
This will allow compilation, without loosing any information. The other problems generating headers concerns mainly protocols, that are imported without there suffix in name.
A good fix may be to prevent include of theses files, but I think it's too specific. Perhaps providing an exclusion list ? The only working way I found so far is to include classes one at a time, once needed for my work, and manually edit the header file. Regards |
Hi, @mmmulani, Here is another problem preventing compilation.
In this case, corresponding header file isn't imported. @nygard Do you confirms that ? Let me know if can help to fix that. Regards, Edit:Just found some other cases, for example, in IDESourceExpressionSource protocol, parameter
This method will generate a @Class NSObject<OS_dispatch_queue> preventing compilation. Second problem with this method is with IDEIndexCollection class that isn't import. Perhaps a problem importing classes referenced in block parameters ? |
This fixes a few problems from trying to compile in with class-dump headers.
Namely: