[PATCH] D35894: [clangd] Code hover for Clangd
Simon Marchi via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 14 13:45:51 PST 2018
simark updated this revision to Diff 134306.
simark added a comment.
Generate Hover by pretty-printing the AST
This new version of the patch generates the hover by pretty-printing the AST.
The unit tests are updated accordingly. There are some inconsistencies in how
things are printed. For example, I find it a bit annoying that we print empty
curly braces after class names (e.g. "class Foo {}"). Also, namespace and
enums are printed with a newline between the two braces. These are things that
could get fixed by doing changes to the clang AST printer.
The hover.test test now uses a more readable format.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D35894
Files:
clangd/ClangdLSPServer.cpp
clangd/ClangdLSPServer.h
clangd/ClangdServer.cpp
clangd/ClangdServer.h
clangd/Protocol.cpp
clangd/Protocol.h
clangd/ProtocolHandlers.cpp
clangd/ProtocolHandlers.h
clangd/XRefs.cpp
clangd/XRefs.h
test/clangd/hover.test
test/clangd/initialize-params-invalid.test
test/clangd/initialize-params.test
unittests/clangd/XRefsTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35894.134306.patch
Type: text/x-patch
Size: 24127 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180214/82697550/attachment-0001.bin>
More information about the cfe-commits
mailing list