[PATCH] D60605: [clangd] Revamp textDocument/onTypeFormatting.
Ivan Donchevskii via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 8 08:56:42 PDT 2019
yvvan added a comment.
@ilya-biryukov
What do you think about D53072 <https://reviews.llvm.org/D53072>? It can be polished and combined with this change removing some code from here (which I assume is a good thing).
The idea there is that clang-format knows that it's not allowed to remove new lines and it always marks them with MustBreakBefore.
I'm not sure if anybody needs an executable but I think it's not a big deal to have an extra reformat() function.
It is also safe because it was the only way I found which does not break the code style like, for instance, adding comment block to the end of the previous line.
Repository:
rCTE Clang Tools Extra
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60605/new/
https://reviews.llvm.org/D60605
More information about the cfe-commits
mailing list