[Github-comments] [geany/geany] Added support for scoped function calltips (#1176)

krogank9 notifications at xxxxx
Fri Aug 12 11:37:26 UTC 2016


> @@ -670,13 +670,28 @@ static void fill_find_tags_array(GPtrArray *dst, const GPtrArray *src,
>  
>  	if (!src || !dst || !name || !*name)
>  		return;
> +	
> +	//first, check if the given scope matches any tags. if not, just ignore scope.
> +	gboolean ignore_scope = TRUE;
> +	tag = tm_tags_find(src, name, FALSE, &num);
> +	for (i = 0; scope != NULL && i < num; ++i)
> +	{
> +		if ((type & (*tag)->type) &&
> +			tm_tag_langs_compatible(lang, (*tag)->lang)
> +			&& g_strcmp0((*tag)->scope, scope) == 0)
> +		{
> +			ignore_scope = FALSE;
> +			break;
> +		}
> +		tag++;
> +	}

Might be a good idea to clean this part up, I have no ideas on how to though

-- 
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/1176/files/46b93e8fcbf4a450d3fda01ff8c820c97fa17eac#r74577291
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160812/fb94ae37/attachment.html>


More information about the Github-comments mailing list