Displaying 1 result from an estimated 1 matches for "class_addmethod".
2020 Oct 12
2
[RFC] Analysis and runtime check of objc_direct/objc_non_runtime_protocol
...lved method is a direct method. It requires we collect the list of
direct method names, and the names of the classes where they’re defined.
There is another category of runtime issues which runtime check can
potentially catch: the direct call calls the incorrect direct method due to
1. usage of class_addMethod
2. random type casting at the call site
This can be an incremental improvement outside of this RFC.
Implementation Options We can potentially implement the analysis/runtime
check with and without LTO. It is better to implement runtime check without
LTO as we are expecting developers to use runt...