[PATCH] D53900: [CodeComplete] Penalize inherited ObjC properties for auto-completion

David Goldman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 30 14:24:38 PDT 2018


dgoldman created this revision.
Herald added subscribers: cfe-commits, arphaman.

Similar to auto-completion for ObjC methods, inherited properties
should be penalized / direct class and category properties should
be prioritized.

Note that currently, the penalty for using a result from a base class
(CCD_InBaseClass) is equal to the penalty for using a method as a
property (CCD_MethodAsProperty).


Repository:
  rC Clang

https://reviews.llvm.org/D53900

Files:
  lib/Sema/SemaCodeComplete.cpp
  test/CodeCompletion/objc-protocol-member-access.m
  test/Index/complete-block-properties.m
  test/Index/complete-block-property-assignment.m
  test/Index/complete-member-access.m
  test/Index/complete-properties.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53900.171799.patch
Type: text/x-patch
Size: 17330 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181030/09659765/attachment.bin>


More information about the cfe-commits mailing list