diff options
| author | Ilya Biryukov <ibiryukov@google.com> | 2019-10-04 08:10:27 +0000 |
|---|---|---|
| committer | Ilya Biryukov <ibiryukov@google.com> | 2019-10-04 08:10:27 +0000 |
| commit | 8613e90ba71d3d96a6765320f92c49f08d1e55d1 (patch) | |
| tree | a4c2824c0f5e12929395beb1eaf4a54007cf8626 /clang/test/CodeCompletion | |
| parent | 4c056583548ab59e2ad24deb2ca30790a290a8e3 (diff) | |
| download | bcm5719-llvm-8613e90ba71d3d96a6765320f92c49f08d1e55d1.tar.gz bcm5719-llvm-8613e90ba71d3d96a6765320f92c49f08d1e55d1.zip | |
[CodeComplete] Ensure object is the same in compareOverloads()
Summary:
This fixes a regression that led to size() not being available in clangd
when completing 'deque().^' and using libc++.
Reviewers: sammccall
Reviewed By: sammccall
Subscribers: jkorous, arphaman, kadircet, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68335
llvm-svn: 373710
Diffstat (limited to 'clang/test/CodeCompletion')
| -rw-r--r-- | clang/test/CodeCompletion/member-access-qualifiers.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeCompletion/member-access-qualifiers.cpp b/clang/test/CodeCompletion/member-access-qualifiers.cpp new file mode 100644 index 00000000000..93af02c2390 --- /dev/null +++ b/clang/test/CodeCompletion/member-access-qualifiers.cpp @@ -0,0 +1,13 @@ +struct deque_base { + int &size(); + const int &size() const; +}; + +struct deque : private deque_base { + int size() const; +}; + +auto x = deque(). +// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:10:18 %s -o - | FileCheck %s +// CHECK: COMPLETION: size : [#int#]size()[# const#] +// CHECK: COMPLETION: size (Hidden,InBase,Inaccessible) : [#int &#]deque_base::size() |

