diff options
author | Steve Naroff <snaroff@apple.com> | 2009-10-08 21:55:05 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-10-08 21:55:05 +0000 |
commit | 936354c62aafa6aa5c79ba5c5c0536a6b4552aa8 (patch) | |
tree | 9d839831357cc71d0f554d8bad912efce3578aa7 /clang/test/CodeCompletion | |
parent | c2eeac617d48b6a095fe8296a1c62231d683fb7c (diff) | |
download | bcm5719-llvm-936354c62aafa6aa5c79ba5c5c0536a6b4552aa8.tar.gz bcm5719-llvm-936354c62aafa6aa5c79ba5c5c0536a6b4552aa8.zip |
Add code completion support for ObjC property declarations/attributes.
llvm-svn: 83579
Diffstat (limited to 'clang/test/CodeCompletion')
-rw-r--r-- | clang/test/CodeCompletion/property.m | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/clang/test/CodeCompletion/property.m b/clang/test/CodeCompletion/property.m new file mode 100644 index 00000000000..a8dd2ba2eb4 --- /dev/null +++ b/clang/test/CodeCompletion/property.m @@ -0,0 +1,29 @@ +// Note: the run lines follow their respective tests, since line/column +// matter in this test. + +@interface Foo { + void *isa; +} +@property(copy) Foo *myprop; +@property(retain, nonatomic) id xx; +// RUN: clang-cc -fsyntax-only -code-completion-at=%s:7:11 %s -o - | FileCheck -check-prefix=CC1 %s && +// CC1: readonly +// CC1-NEXT: assign +// CC1-NEXT: readwrite +// CC1-NEXT: retain +// CC1-NEXT: copy +// CC1-NEXT: nonatomic +// CC1-NEXT: setter +// CC1-NEXT: getter +// RUN: clang-cc -fsyntax-only -code-completion-at=%s:8:18 %s -o - | FileCheck -check-prefix=CC2 %s +// CC2: readonly +// CC2-NEXT: assign +// CC2-NEXT: readwrite +// CC2-NEXT: copy +// CC2-NEXT: nonatomic +// CC2-NEXT: setter +// CC2-NEXT: getter +@end + + + |