[PATCH] D99601: [-Wcompletion-handler] Don't recognize init methods as conventional
Artem Dergachev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 5 09:41:43 PDT 2021
NoQ added inline comments.
================
Comment at: clang/lib/Analysis/CalledOnceCheck.cpp:1017
+ static bool isInitMethod(Selector MethodSelector) {
+ return MethodSelector.getNameForSlot(0).startswith_lower(INIT_PREFIX);
+ }
----------------
You can formally check whether it's an init method by querying its `ObjCMethodFamily`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99601/new/
https://reviews.llvm.org/D99601
More information about the cfe-commits
mailing list