forked from llvm-mirror/clang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ObjCMethodDecl::findPropertyDecl for class properties.
This affects code completion and a few other things; hopefully the code completion test is sufficient to catch regressions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263295 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
1 parent
d5ee7cc
commit d528935
Showing
2 changed files
with
40 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Note: the run lines follow their respective tests, since line/column | ||
// matter in this test. | ||
|
||
@interface Base | ||
@end | ||
|
||
@interface Test : Base | ||
/// Instance! | ||
@property id instanceProp; | ||
/// Class! | ||
@property (class) id classProp; | ||
@end | ||
|
||
void test(Test *obj) { | ||
[obj instanceProp]; | ||
[Test classProp]; | ||
} | ||
|
||
// RUN: %clang_cc1 -fsyntax-only -code-completion-brief-comments -code-completion-at=%s:15:8 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s | ||
// CHECK-CC1: instanceProp : [#id#]instanceProp : Instance! | ||
// CHECK-CC1: setInstanceProp: : [#void#]setInstanceProp:<#(id)#> : Instance! | ||
|
||
// RUN: %clang_cc1 -fsyntax-only -code-completion-brief-comments -code-completion-at=%s:16:9 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s | ||
// CHECK-CC2: classProp : [#id#]classProp : Class! | ||
// CHECK-CC2: setClassProp: : [#void#]setClassProp:<#(id)#> : Class! |