[all-commits] [llvm/llvm-project] 44f9c7: [clangd] Rearrange type, returntype and parameters...
kadir çetinkaya via All-commits
all-commits at lists.llvm.org
Wed Jan 15 06:57:12 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 44f9c7a820c1e5fb949f441214a46b13588ff51a
https://github.com/llvm/llvm-project/commit/44f9c7a820c1e5fb949f441214a46b13588ff51a
Author: Kadir Cetinkaya <kadircet at google.com>
Date: 2020-01-15 (Wed, 15 Jan 2020)
Changed paths:
M clang-tools-extra/clangd/Hover.cpp
M clang-tools-extra/clangd/test/hover.test
M clang-tools-extra/clangd/unittests/HoverTests.cpp
Log Message:
-----------
[clangd] Rearrange type, returntype and parameters in hover card
Summary:
Moves type/returntype into its own line as it is more readable in cases
where the type is long.
Also gives parameter lists a heading, `Parameters:` to make them stand out.
Leaves the `right arrow` instead of `Returns: ` before Return Type to make
output more symmetric.
```
function foo
Returns: ret_type
Parameters:
- int x
```
vs
```
function foo
🡺 ret_type
Parameters:
- int x
```
Reviewers: sammccall, ilya-biryukov
Subscribers: MaskRay, jkorous, arphaman, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D72623
More information about the All-commits
mailing list