[clangd] Suggest code-completions for overriding base class virtual methods.
authorKadir Cetinkaya <kadircet@google.com>
Thu, 23 Aug 2018 13:14:50 +0000 (13:14 +0000)
committerKadir Cetinkaya <kadircet@google.com>
Thu, 23 Aug 2018 13:14:50 +0000 (13:14 +0000)
commitf8b85a3d6bf73200414e2cb1af4935fde2e12e25
tree323a719197d07354d61b55f612ff03ed52f84813
parent23cbf09fad7ca004aec7ef77e89dd0d01ef0dd5f
[clangd] Suggest code-completions for overriding base class virtual methods.

Summary:
Whenever a code-completion is triggered within a class/struct/union looks at
base classes and figures out non-overriden virtual functions. Than suggests
completions for those.

Reviewers: ilya-biryukov, hokein, ioeric

Reviewed By: hokein

Subscribers: MaskRay, jkorous, arphaman, cfe-commits

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

llvm-svn: 340530
clang-tools-extra/clangd/CodeComplete.cpp
clang-tools-extra/unittests/clangd/CodeCompleteTests.cpp