[clangd] Initial implementation of expected types
authorIlya Biryukov <ibiryukov@google.com>
Mon, 26 Nov 2018 15:25:20 +0000 (15:25 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Mon, 26 Nov 2018 15:25:20 +0000 (15:25 +0000)
commitd360b2984e854bf7414239f66e81427cf0e25f1e
tree70ce372a5cd1208b83ccaf74a2ddac197628a758
parenta622484fa64e03a45832a95cda1ba61d512244a0
[clangd] Initial implementation of expected types

Summary:
Provides facilities to model the C++ conversion rules without the AST.
The introduced representation can be stored in the index and used to
implement type-based ranking improvements for index-based completions.

Reviewers: sammccall, ioeric

Reviewed By: sammccall

Subscribers: malaperle, mgorny, MaskRay, jkorous, arphaman, kadircet, cfe-commits

Differential Revision: https://reviews.llvm.org/D52273

llvm-svn: 347559
clang-tools-extra/clangd/CMakeLists.txt
clang-tools-extra/clangd/ExpectedTypes.cpp [new file with mode: 0644]
clang-tools-extra/clangd/ExpectedTypes.h [new file with mode: 0644]
clang-tools-extra/unittests/clangd/CMakeLists.txt
clang-tools-extra/unittests/clangd/ExpectedTypeTest.cpp [new file with mode: 0644]