[PATCH] D60605: [clangd] Revamp textDocument/onTypeFormatting.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 24 15:44:03 PDT 2019
sammccall updated this revision to Diff 196538.
sammccall added a comment.
Fix comment wrapping behavior:
- when splitting a comment before //, don't add another //
- if the editor inserts // before the cursor to continue a line comment, indent it and adjust to three slashes if needed.
This doesn't mean enter at the *end* of a comment will continue the comment,
but if editors do that (vim does) then it will be respected.
Repository:
rCTE Clang Tools Extra
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60605/new/
https://reviews.llvm.org/D60605
Files:
clangd/CMakeLists.txt
clangd/ClangdLSPServer.cpp
clangd/ClangdServer.cpp
clangd/ClangdServer.h
clangd/Format.cpp
clangd/Format.h
test/clangd/formatting.test
test/clangd/initialize-params.test
unittests/clangd/CMakeLists.txt
unittests/clangd/FormatTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60605.196538.patch
Type: text/x-patch
Size: 29777 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190424/ee2551f0/attachment-0001.bin>
More information about the cfe-commits
mailing list