[Github-comments] [geany/geany] Show variable type in a tooltip in symbol tree (#2036)

Colomban Wendling notifications at xxxxx
Mon Jan 7 10:38:17 UTC 2019


b4n commented on this pull request.



> @@ -908,6 +908,18 @@ static gchar *get_symbol_tooltip(GeanyDocument *doc, const TMTag *tag)
 {
 	gchar *utf8_name = editor_get_calltip_text(doc->editor, tag);
 
+	if (!utf8_name && tag->var_type &&
+		tag->type & (tm_tag_member_t | tm_tag_variable_t | tm_tag_externvar_t))

Is the type check guarding against actual issues, or is it just being careful?  I can imagine it might be a problem with typedefs, but it might erroneously omit `tm_tag_field_t` (not 100% sure what that is, but it's used by several parsers, and I believe for Vala it's variable members).
Not a blocker though, we can amend this as needed.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2036#pullrequestreview-189754329
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20190107/a8bc3103/attachment.html>


More information about the Github-comments mailing list