diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-09-23 14:56:09 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-09-23 14:56:09 +0000 |
commit | 2a920014d3b33f08b0ccd01fde8004f0131ddab6 (patch) | |
tree | a21712e9c543d3b300b2ec56fbf3920a08f39d42 /clang/test/CodeCompletion | |
parent | 9c9630aa884ae9957ddbaef8d4324360d039e45a (diff) | |
download | bcm5719-llvm-2a920014d3b33f08b0ccd01fde8004f0131ddab6.tar.gz bcm5719-llvm-2a920014d3b33f08b0ccd01fde8004f0131ddab6.zip |
When code-completion after a "," is building an overload set, note
that there is one more argument (the one following the comma) and make
the candidate non-viable if the function cannot accept any argument in
that position.
llvm-svn: 82625
Diffstat (limited to 'clang/test/CodeCompletion')
-rw-r--r-- | clang/test/CodeCompletion/call.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/CodeCompletion/call.cpp b/clang/test/CodeCompletion/call.cpp index 448b8ebb6ef..90bf82bff30 100644 --- a/clang/test/CodeCompletion/call.cpp +++ b/clang/test/CodeCompletion/call.cpp @@ -19,10 +19,10 @@ 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(struct N::Y y, <#int ZZ#>) - // CHECK-NEXT-CC1: f(int i, <#int j#>, int k) - // CHECK-NEXT-CC1: f(float x, <#float y#>) + // CHECK-CC1-NEXT: f(int i, <#int j#>, int k) + // CHECK-CC1-NEXT: 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 extra overloads are showing up! + // CHECK-CC2-NOT: f(struct N::Y y, int ZZ) // CHECK-CC2: f(int i, int j, <#int k#>) // RUN: true } |