[all-commits] [llvm/llvm-project] b194e7: [clangd] Change line break behaviour for hoverinfo
Lorenz Junglas via All-commits
all-commits at lists.llvm.org
Tue Mar 24 04:41:41 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: b194e7d6313be3b6e6db6e2d617a76c6dde2651b
https://github.com/llvm/llvm-project/commit/b194e7d6313be3b6e6db6e2d617a76c6dde2651b
Author: Lorenz Junglas <lolleko at users.noreply.github.com>
Date: 2020-03-24 (Tue, 24 Mar 2020)
Changed paths:
M clang-tools-extra/clangd/Hover.cpp
M clang-tools-extra/clangd/Hover.h
M clang-tools-extra/clangd/unittests/HoverTests.cpp
Log Message:
-----------
[clangd] Change line break behaviour for hoverinfo
`parseDocumentation` retains hard line breaks and removes soft line
breaks inside documentation comments.
Wether a line break is hard or soft is determined by the following rules
(some of which have been discussed in
https://github.com/clangd/clangd/issues/95):
Line breaks that are preceded by a punctuation are retained
Line breaks that are followed by "interesting characters" (e.g. Markdown
syntax, doxygen commands) are retained
All other line breaks are removed
Related issue: https://github.com/clangd/clangd/issues/95
Differential Revision: https://reviews.llvm.org/D76094
More information about the All-commits
mailing list