diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-09-23 00:16:58 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-09-23 00:16:58 +0000 |
commit | 0594438e06f58ab3798416324780ab39ca9c8f54 (patch) | |
tree | 89c539ff1c473d05a56b8a8ca2b68af630969483 /test/CodeCompletion/call.cpp | |
parent | 8e0a0e4e4554ab31d793413e0fb4d9532872a53a (diff) |
Separate the code-completion results for call completion from the
results for other, textual completion. For call completion, we now
produce enough information to show the function call argument that we
are currently on.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82592 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeCompletion/call.cpp')
-rw-r--r-- | test/CodeCompletion/call.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/CodeCompletion/call.cpp b/test/CodeCompletion/call.cpp index dd90083874..9a6f578abc 100644 --- a/test/CodeCompletion/call.cpp +++ b/test/CodeCompletion/call.cpp @@ -10,7 +10,7 @@ namespace N { operator int() const; }; - void f(Y y, int); + void f(Y y, int ZZ); } typedef N::Y Y; void f(); @@ -18,12 +18,11 @@ void f(); void test() { f(Y(), 0, 0); // RUN: clang-cc -fsyntax-only -code-completion-at=%s:19:9 %s -o - | FileCheck -check-prefix=CC1 %s && - // CHECK-CC1: f : 0 : f(<#struct N::Y y#>, <#int#>) - // CHECK-NEXT-CC1: f : 0 : f(<#int i#>, <#int j#>, <#int k#>) - // CHECK-NEXT-CC1: f : 0 : f(<#float x#>, <#float y#>) + // CHECK-CC1: int ZZ + // CHECK-NEXT-CC1: int j + // CHECK-NEXT-CC1: float y // RUN: clang-cc -fsyntax-only -code-completion-at=%s:19:13 %s -o - | FileCheck -check-prefix=CC2 %s && - // CHECK-NOT-CC2: f : 0 : f(<#struct N::Y y#>, <#int#>) - // CHECK-CC2: f : 0 : f(<#int i#>, <#int j#>, <#int k#>) - // CHECK-NEXT-CC2: f : 0 : f(<#float x#>, <#float y#>) + // FIXME: two ellipses are showing up when they shouldn't + // CHECK-CC2: int k // RUN: true } |