Revert "[clangd] Reapply b60896fad926 Fall back to selecting token-before-cursor...
authorSam McCall <sam.mccall@gmail.com>
Sun, 23 Feb 2020 15:34:49 +0000 (16:34 +0100)
committerSam McCall <sam.mccall@gmail.com>
Sun, 23 Feb 2020 15:34:49 +0000 (16:34 +0100)
commitb4b9706d5da368c81b86867b1c11a2e17b4472ac
treefa952b9774bf897dcf43e4c39e4e8f6f3326ea72
parenta2ce807eb72a8e154abca09b1e968b2d99ba6933
Revert "[clangd] Reapply b60896fad926 Fall back to selecting token-before-cursor if token-after-cursor fails."

This reverts commit a2ce807eb72a8e154abca09b1e968b2d99ba6933.

Buildbot failures on GCC due to SelectionTree not being copyable, and
instantiating vector<Selection> in the tweak-handling in ClangdServer.
14 files changed:
clang-tools-extra/clangd/ClangdServer.cpp
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clangd/Selection.cpp
clang-tools-extra/clangd/Selection.h
clang-tools-extra/clangd/SemanticSelection.cpp
clang-tools-extra/clangd/XRefs.cpp
clang-tools-extra/clangd/refactor/Rename.cpp
clang-tools-extra/clangd/refactor/Tweak.cpp
clang-tools-extra/clangd/refactor/Tweak.h
clang-tools-extra/clangd/unittests/FindTargetTests.cpp
clang-tools-extra/clangd/unittests/HoverTests.cpp
clang-tools-extra/clangd/unittests/SelectionTests.cpp
clang-tools-extra/clangd/unittests/TweakTesting.cpp
clang-tools-extra/clangd/unittests/TweakTests.cpp