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 | 05f477c1779edd30cc472824b8e2924fcdc9e122 (patch) | |
tree | eff0ec0d88527fbf0d97b5144eb090399ef39f69 /clang/test/CodeCompletion/call.cpp | |
parent | 8808063181dd392a5dbdf468001fb7305f5ab637 (diff) | |
download | bcm5719-llvm-05f477c1779edd30cc472824b8e2924fcdc9e122.tar.gz bcm5719-llvm-05f477c1779edd30cc472824b8e2924fcdc9e122.zip |
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.
llvm-svn: 82592
Diffstat (limited to 'clang/test/CodeCompletion/call.cpp')
-rw-r--r-- | clang/test/CodeCompletion/call.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/clang/test/CodeCompletion/call.cpp b/clang/test/CodeCompletion/call.cpp index dd90083874c..9a6f578abc9 100644 --- a/clang/test/CodeCompletion/call.cpp +++ b/clang/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 } |