Skip to content

Commit 99464b7

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 (cherry picked from commit 1b996fa)
1 parent 53f39c7 commit 99464b7

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
@@ -540,11 +540,11 @@ markup::Document HoverInfo::present() const {
540540
// editor, as they might be long.
541541
if (ReturnType) {
542542
// For functions we display signature in a list form, e.g.:
543-
// 🡺 `x`
543+
// `x`
544544
// Parameters:
545545
// - `bool param1`
546546
// - `int param2 = 5`
547-
Output.addParagraph().appendText("🡺").appendCode(*ReturnType);
547+
Output.addParagraph().appendText("").appendCode(*ReturnType);
548548
if (Parameters && !Parameters->empty()) {
549549
Output.addParagraph().appendText("Parameters:");
550550
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
@@ -1762,7 +1762,7 @@ template <typename T, typename C = bool> class Foo {})",
17621762
},
17631763
R"(function foo
17641764
1765-
🡺 ret_type
1765+
ret_type
17661766
Parameters:
17671767
-
17681768
- type

0 commit comments

Comments
 (0)