This patch improves code completion for properties that are declared in Objective-C protocols by making sure that properties show up in completions when they are accessed through a qualified id.
Details
Details
- Reviewers
manmanren doug.gregor - Commits
- rG06cfa99268ec: [CodeCompletion] Show protocol properties that are accessed through qualified id
rC284007: [CodeCompletion] Show protocol properties that are accessed through qualified id
rL284007: [CodeCompletion] Show protocol properties that are accessed through qualified id
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Thanks for working on this!
Manman
lib/Sema/SemaCodeComplete.cpp | ||
---|---|---|
3723 ↗ | (On Diff #74137) | 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? |
3756 ↗ | (On Diff #74137) | Can we use "auto" here? |
Comment Actions
The updated patch handles protocol properties together with the interface properties.
lib/Sema/SemaCodeComplete.cpp | ||
---|---|---|
3723 ↗ | (On Diff #74137) | Yes, that makes sense. I updated the patch to handle properties in both the interface and qualified IDs in this body of code. |