[clangd][Hover] Change arrow in return type back to →

Summary:
Currently 🡺 is used in hover response to represent return types, but it
is not widely available. Changing this back to original to support more clients.

Reviewers: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D73336
This commit is contained in:
Kadir Cetinkaya 2020-01-24 11:35:24 +01:00
parent 5e62e162cd
commit 1b996faa15
No known key found for this signature in database
GPG Key ID: E39E36B8D2057ED6
3 changed files with 4 additions and 4 deletions

View File

@ -546,11 +546,11 @@ markup::Document HoverInfo::present() const {
// editor, as they might be long.
if (ReturnType) {
// For functions we display signature in a list form, e.g.:
// 🡺 `x`
// `x`
// Parameters:
// - `bool param1`
// - `int param2 = 5`
Output.addParagraph().appendText("🡺").appendCode(*ReturnType);
Output.addParagraph().appendText("").appendCode(*ReturnType);
if (Parameters && !Parameters->empty()) {
Output.addParagraph().appendText("Parameters:");
markup::BulletList &L = Output.addBulletList();

View File

@ -9,7 +9,7 @@
# CHECK-NEXT: "result": {
# CHECK-NEXT: "contents": {
# CHECK-NEXT: "kind": "plaintext",
# CHECK-NEXT: "value": "function foo\n\n🡺 void\n\nvoid foo()"
# CHECK-NEXT: "value": "function foo\n\n void\n\nvoid foo()"
# CHECK-NEXT: },
# CHECK-NEXT: "range": {
# CHECK-NEXT: "end": {

View File

@ -1744,7 +1744,7 @@ template <typename T, typename C = bool> class Foo {})",
},
R"(function foo
🡺 ret_type
ret_type
Parameters:
-
- type