forked from OSchip/llvm-project
[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:
parent
5e62e162cd
commit
1b996faa15
|
@ -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();
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -1744,7 +1744,7 @@ template <typename T, typename C = bool> class Foo {})",
|
|||
},
|
||||
R"(function foo
|
||||
|
||||
🡺 ret_type
|
||||
→ ret_type
|
||||
Parameters:
|
||||
-
|
||||
- type
|
||||
|
|
Loading…
Reference in New Issue