diff options
| author | Sam McCall <sam.mccall@gmail.com> | 2018-11-20 22:06:54 +0000 |
|---|---|---|
| committer | Sam McCall <sam.mccall@gmail.com> | 2018-11-20 22:06:54 +0000 |
| commit | 8e9baa3f17c8e54906cbffbede6f9587fe01a8c3 (patch) | |
| tree | e7064f6fbf26af6b7caebb73adfe9e04c2e900c0 /clang/test/CodeCompletion | |
| parent | 435c739fbe618e0232ca4e9ec3cc971f8adbd1e1 (diff) | |
| download | bcm5719-llvm-8e9baa3f17c8e54906cbffbede6f9587fe01a8c3.tar.gz bcm5719-llvm-8e9baa3f17c8e54906cbffbede6f9587fe01a8c3.zip | |
[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
llvm-svn: 347352
Diffstat (limited to 'clang/test/CodeCompletion')
| -rw-r--r-- | clang/test/CodeCompletion/objc-protocol-member-access.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeCompletion/objc-protocol-member-access.m b/clang/test/CodeCompletion/objc-protocol-member-access.m index 0ed55387e3d..9e769d5afa8 100644 --- a/clang/test/CodeCompletion/objc-protocol-member-access.m +++ b/clang/test/CodeCompletion/objc-protocol-member-access.m @@ -19,6 +19,6 @@ int getFoo(id object) { } // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:17:25 %s -o - | FileCheck %s -// CHECK: bar : [#int#]bar -// CHECK: foo : [#int#]foo +// CHECK: bar (InBase) : [#int#]bar +// CHECK: foo (InBase) : [#int#]foo // CHECK-NOT: foobar |

