rdar://75704162
Details
Details
Diff Detail
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Paths 
  |  Differential  D99601  
[-Wcompletion-handler] Don't recognize init methods as conventional ClosedPublic Authored by vsavchenko on Mar 30 2021, 9:09 AM. 
Details Summary rdar://75704162 
Diff Detail 
 Event Timeline
 This revision is now accepted and ready to land.Apr 6 2021, 10:08 AM Closed by commit rG77f1e096e8a0: [-Wcompletion-handler] Don't recognize init methods as conventional (authored by vsavchenko).  ·  Explain WhyApr 7 2021, 3:50 AM This revision was automatically updated to reflect the committed changes. vsavchenko marked an inline comment as done. 
Revision Contents 
 
Diff 335776 clang/lib/Analysis/CalledOnceCheck.cpp
 clang/test/SemaObjC/warn-called-once.m
  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
You can formally check whether it's an init method by querying its ObjCMethodFamily.