[PATCH] D73336: [clangd][Hover] Change arrow in return type back to ā
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 24 02:37:25 PST 2020
kadircet created this revision.
kadircet added a reviewer: sammccall.
Herald added subscribers: cfe-commits, usaxena95, arphaman, jkorous, MaskRay, ilya-biryukov.
Herald added a project: clang.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D73336
Files:
clang-tools-extra/clangd/Hover.cpp
clang-tools-extra/clangd/test/hover.test
clang-tools-extra/clangd/unittests/HoverTests.cpp
Index: clang-tools-extra/clangd/unittests/HoverTests.cpp
===================================================================
--- clang-tools-extra/clangd/unittests/HoverTests.cpp
+++ clang-tools-extra/clangd/unittests/HoverTests.cpp
@@ -1762,7 +1762,7 @@
},
R"(function foo
-š”ŗ ret_type
+ā ret_type
Parameters:
-
- type
Index: clang-tools-extra/clangd/test/hover.test
===================================================================
--- clang-tools-extra/clangd/test/hover.test
+++ clang-tools-extra/clangd/test/hover.test
@@ -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": {
Index: clang-tools-extra/clangd/Hover.cpp
===================================================================
--- clang-tools-extra/clangd/Hover.cpp
+++ clang-tools-extra/clangd/Hover.cpp
@@ -546,11 +546,11 @@
// 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();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73336.240136.patch
Type: text/x-patch
Size: 1639 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200124/415006b2/attachment.bin>
More information about the cfe-commits
mailing list