[clangd] Add a hidden tweak to dump symbol under the cursor.
authorHaojian Wu <hokein.wu@gmail.com>
Mon, 28 Oct 2019 15:27:42 +0000 (16:27 +0100)
committerHaojian Wu <hokein.wu@gmail.com>
Tue, 29 Oct 2019 12:06:34 +0000 (13:06 +0100)
commit80b0cdde0ffc4ca59e99fed3dcb18412ff97568c
tree5199a1eedda40cca82ac6fc2782679ddb8b6f341
parent596e4ab97a1637d2c7781aed20e3d62bcf07ef5d
[clangd] Add a hidden tweak to dump symbol under the cursor.

Summary:
This provides a convenient way to see the SymbolID/USR of the symbol, mainly
for debugging purpose.

Reviewers: ilya-biryukov

Subscribers: MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D69517
clang-tools-extra/clangd/refactor/tweaks/DumpAST.cpp
clang-tools-extra/clangd/unittests/TweakTests.cpp