]> granicus.if.org Git - clang/commit
[CodeComplete] Penalize inherited ObjC properties for auto-completion
authorSam McCall <sam.mccall@gmail.com>
Tue, 20 Nov 2018 22:06:54 +0000 (22:06 +0000)
committerSam McCall <sam.mccall@gmail.com>
Tue, 20 Nov 2018 22:06:54 +0000 (22:06 +0000)
commit28b62f1a2418f7895c828b5c9ce068e699702566
tree13f00b77aad28cc195549f048ce9bae8b52ec61a
parent3391bf6a2d48276c99ac52101ca0845cba29f2c4
[CodeComplete] Penalize inherited ObjC properties for auto-completion

Summary:
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).

Reviewers: jkorous, sammccall, akyrtzi, arphaman, benlangmuir

Reviewed By: sammccall, akyrtzi

Subscribers: arphaman, cfe-commits

Differential Revision: https://reviews.llvm.org/D53900

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@347352 91177308-0d34-0410-b5e6-96231b3b80d8
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