summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeCompletion/call.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-09-23 00:34:09 +0000
committerDouglas Gregor <dgregor@apple.com>2009-09-23 00:34:09 +0000
commitf0f51985a1a8d2ce2dd632819db24e367f980689 (patch)
tree1e9e5d3c5aa01adc9684554256d56de8420de575 /clang/test/CodeCompletion/call.cpp
parent05f477c1779edd30cc472824b8e2924fcdc9e122 (diff)
downloadbcm5719-llvm-f0f51985a1a8d2ce2dd632819db24e367f980689.tar.gz
bcm5719-llvm-f0f51985a1a8d2ce2dd632819db24e367f980689.zip
Print the results of code-completion for overloading by displaying the
signature of the function with the current parameter highlighted as a placeholder. llvm-svn: 82593
Diffstat (limited to 'clang/test/CodeCompletion/call.cpp')
-rw-r--r--clang/test/CodeCompletion/call.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/test/CodeCompletion/call.cpp b/clang/test/CodeCompletion/call.cpp
index 9a6f578abc9..448b8ebb6ef 100644
--- a/clang/test/CodeCompletion/call.cpp
+++ b/clang/test/CodeCompletion/call.cpp
@@ -18,11 +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: int ZZ
- // CHECK-NEXT-CC1: int j
- // CHECK-NEXT-CC1: float y
+ // CHECK-CC1: f(struct N::Y y, <#int ZZ#>)
+ // CHECK-NEXT-CC1: f(int i, <#int j#>, int k)
+ // CHECK-NEXT-CC1: f(float x, <#float y#>)
// RUN: clang-cc -fsyntax-only -code-completion-at=%s:19:13 %s -o - | FileCheck -check-prefix=CC2 %s &&
- // FIXME: two ellipses are showing up when they shouldn't
- // CHECK-CC2: int k
+ // FIXME: two extra overloads are showing up!
+ // CHECK-CC2: f(int i, int j, <#int k#>)
// RUN: true
}
OpenPOWER on IntegriCloud