summaryrefslogtreecommitdiff
path: root/test/CodeCompletion
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-04-06 20:02:15 +0000
committerDouglas Gregor <dgregor@apple.com>2010-04-06 20:02:15 +0000
commit2f880e47ca32d007d7e9e5ff5efa05f5c3432744 (patch)
tree8f1cd2712bdcd03b2d0e8f07986a49de760ddca0 /test/CodeCompletion
parent2aefcb2e8b8b37529807945b3ecedda76e75c831 (diff)
downloadclang-2f880e47ca32d007d7e9e5ff5efa05f5c3432744.tar.gz
clang-2f880e47ca32d007d7e9e5ff5efa05f5c3432744.tar.bz2
clang-2f880e47ca32d007d7e9e5ff5efa05f5c3432744.tar.xz
Only prove macros as code-completion results when we're in a case
statement or for ordinary names. This means that we won't show macros when completing, e.g., member expressions such as "p->". git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100555 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeCompletion')
-rw-r--r--test/CodeCompletion/macros.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/CodeCompletion/macros.c b/test/CodeCompletion/macros.c
index 6330d25172..0758bbf768 100644
--- a/test/CodeCompletion/macros.c
+++ b/test/CodeCompletion/macros.c
@@ -19,11 +19,7 @@ void test(struct Point *p) {
// RUN: %clang_cc1 -include-pch %t -fsyntax-only -code-completion-macros -code-completion-at=%s:12:14 %s -o - | FileCheck -check-prefix=CC1 %s
// RUN: %clang_cc1 -include-pch %t -fsyntax-only -code-completion-macros -code-completion-at=%s:14:9 %s -o - | FileCheck -check-prefix=CC2 %s
- // CC1: BAR(<#X#>, <#Y#>)
// CC1: color
- // CC1: FOO
- // CC1: IDENTITY(<#X#>)
- // CC1: WIBBLE
// CC1: x
// CC1: y
// CC1: z