summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeCompletion
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-11-19 00:01:57 +0000
committerDouglas Gregor <dgregor@apple.com>2009-11-19 00:01:57 +0000
commit45f83ee87d892bbf2134347ac9dec0417a0d15c3 (patch)
tree52164de2567c1d75332844e40afcc3e3ab124ddd /clang/test/CodeCompletion
parentb3c5aa20eaeb9cce922a56f1f8c9a870ce227443 (diff)
downloadbcm5719-llvm-45f83ee87d892bbf2134347ac9dec0417a0d15c3.tar.gz
bcm5719-llvm-45f83ee87d892bbf2134347ac9dec0417a0d15c3.zip
Improve code-completion results for the flags in an @property
declaration by providing patterns for "getter = <method>" and "setter = <method>". As part of this, invented a new "pattern" result kind that is merely a semantic string. The "pattern" result kind should help with other kinds of code templates. llvm-svn: 89277
Diffstat (limited to 'clang/test/CodeCompletion')
-rw-r--r--clang/test/CodeCompletion/property.m29
1 files changed, 0 insertions, 29 deletions
diff --git a/clang/test/CodeCompletion/property.m b/clang/test/CodeCompletion/property.m
deleted file mode 100644
index 184519b408f..00000000000
--- a/clang/test/CodeCompletion/property.m
+++ /dev/null
@@ -1,29 +0,0 @@
-// 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: assign
-// CC1-NEXT: copy
-// CC1-NEXT: getter
-// CC1-NEXT: nonatomic
-// CC1-NEXT: readonly
-// CC1-NEXT: readwrite
-// CC1-NEXT: retain
-// CC1-NEXT: setter
-// RUN: clang-cc -fsyntax-only -code-completion-at=%s:8:18 %s -o - | FileCheck -check-prefix=CC2 %s
-// CC2: assign
-// CC2-NEXT: copy
-// CC2-NEXT: getter
-// CC2-NEXT: nonatomic
-// CC2-NEXT: readonly
-// CC2-NEXT: readwrite
-// CC2-NEXT: setter
-@end
-
-
-
OpenPOWER on IntegriCloud