Skip to content

Commit 1b996fa

Browse files
committed
[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
1 parent 5e62e16 commit 1b996fa

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

clang-tools-extra/clangd/Hover.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,11 +546,11 @@ markup::Document HoverInfo::present() const {
546546
// editor, as they might be long.
547547
if (ReturnType) {
548548
// For functions we display signature in a list form, e.g.:
549-
// 🡺 `x`
549+
// `x`
550550
// Parameters:
551551
// - `bool param1`
552552
// - `int param2 = 5`
553-
Output.addParagraph().appendText("🡺").appendCode(*ReturnType);
553+
Output.addParagraph().appendText("").appendCode(*ReturnType);
554554
if (Parameters && !Parameters->empty()) {
555555
Output.addParagraph().appendText("Parameters:");
556556
markup::BulletList &L = Output.addBulletList();

clang-tools-extra/clangd/test/hover.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# CHECK-NEXT: "result": {
1010
# CHECK-NEXT: "contents": {
1111
# CHECK-NEXT: "kind": "plaintext",
12-
# CHECK-NEXT: "value": "function foo\n\n🡺 void\n\nvoid foo()"
12+
# CHECK-NEXT: "value": "function foo\n\n void\n\nvoid foo()"
1313
# CHECK-NEXT: },
1414
# CHECK-NEXT: "range": {
1515
# CHECK-NEXT: "end": {

clang-tools-extra/clangd/unittests/HoverTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1744,7 +1744,7 @@ template <typename T, typename C = bool> class Foo {})",
17441744
},
17451745
R"(function foo
17461746
1747-
🡺 ret_type
1747+
ret_type
17481748
Parameters:
17491749
-
17501750
- type

0 commit comments

Comments
 (0)