Print the results of code-completion for overloading by displaying the
signature of the function with the current parameter highlighted as a
placeholder.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82593 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeCompletion/call.cpp b/test/CodeCompletion/call.cpp
index 9a6f578..448b8eb 100644
--- a/test/CodeCompletion/call.cpp
+++ b/test/CodeCompletion/call.cpp
@@ -18,11 +18,11 @@
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
}