[PATCH] D25436: [CodeCompletion] Improve completion for properties declared in Objective-C protocols

Alex Lorenz via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 11 04:03:19 PDT 2016


arphaman added inline comments.


================
Comment at: lib/Sema/SemaCodeComplete.cpp:3723
     }
   } else if (!IsArrow && BaseType->getAsObjCInterfacePointerType()) {
     // Objective-C property reference.
----------------
manmanren wrote:
> I feel like the added logic belongs to here :] Both handle property reference.
> 
> The clause here handles ObjCObjectPointerType that is based on an ObjCInterfaceType. We need to handle the case where the base type is "id".
> 
> What do you think?
Yes, that makes sense. I updated the patch to handle properties in both the interface and qualified IDs in this body of code.


Repository:
  rL LLVM

https://reviews.llvm.org/D25436





More information about the cfe-commits mailing list