[clangd] Expose completion range in code completion results (C++ API)
authorSam McCall <sam.mccall@gmail.com>
Mon, 10 Feb 2020 10:52:42 +0000 (11:52 +0100)
committerSam McCall <sam.mccall@gmail.com>
Tue, 11 Feb 2020 14:25:03 +0000 (15:25 +0100)
commitd4df372559adb0ba3c652e85817a50db707c9858
tree5c25443a6fc20de37f1ac6c5e77960261d80c75d
parent890d5e2dd232f43842d8a9025e639027946d81f4
[clangd] Expose completion range in code completion results (C++ API)

Summary:
Informative only, useful for positioning UI, interacting with other sources of
completion etc. As requested by an embedder of clangd.

Reviewers: usaxena95

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D74305
clang-tools-extra/clangd/CodeComplete.cpp
clang-tools-extra/clangd/CodeComplete.h
clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp