Style bot should have caught the issue fixed in bug 252629.
<rdar://problem/106161245>
This would have caught https://github.com/WebKit/WebKit/pull/12670#pullrequestreview-1382477564
Pull request: https://github.com/WebKit/WebKit/pull/20946
We will also need the more challenging opposite checker, which checks for use of these function name patterns *without* adoptCF/NS.
I think that's impossible to do in the style checker, which doesn't know if a function returns a smart pointer or retained raw pointer.
Bummer. I wonder if there’s a way to make it work at least with platform function names, somehow a convention for functions inside WebKit vs. functions from the C and Objective-C functions from CF and Cocoa.