Implement semantic selections.
authorUtkarsh Saxena <usx@google.com>
Mon, 16 Sep 2019 11:29:35 +0000 (11:29 +0000)
committerUtkarsh Saxena <usx@google.com>
Mon, 16 Sep 2019 11:29:35 +0000 (11:29 +0000)
commit73c09eb7344e103f126811a7e6c670ddfa5fb771
treee1f459fa4cd9a67a247c43bdc2157b89549fd0a2
parent1aaefbca24aba4fd9fa382b85606ef292c740529
Implement semantic selections.

Summary:
For a given cursor position, it returns ranges that are interesting to the user.
Currently the semantic ranges correspond to the nodes of the syntax trees.

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

Tags: #clang

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

llvm-svn: 371976
clang-tools-extra/clangd/CMakeLists.txt
clang-tools-extra/clangd/SemanticSelection.cpp [new file with mode: 0644]
clang-tools-extra/clangd/SemanticSelection.h [new file with mode: 0644]
clang-tools-extra/clangd/unittests/CMakeLists.txt
clang-tools-extra/clangd/unittests/SemanticSelectionTests.cpp [new file with mode: 0644]