<p>In <a href="https://github.com/geany/geany/pull/889#discussion_r51076674">tagmanager/ctags/c.c</a>:</p>
<pre style='color:#555'>>      for (i = 0; i < st->tokenIndex; i++)
>    {
> +          const tokenInfo *const t = st->token[i];
> +
> +          /* stop if we find the token used to generate the tag name, or
> +           * a name token in the middle yet not preceded by a scope separator */
> +          if ((t == nameToken ||
> +               (t->type == nameToken->type &&
> +                t->keyword == nameToken->keyword &&
> +                t->lineNumber == nameToken->lineNumber &&
> +                strcmp(vStringValue(t->name), vStringValue(nameToken->name)) == 0)) ||
> +              (t->type == TOKEN_NAME && seenType &&
> +               (i > 0 && st->token[i - 1]->type != TOKEN_DOUBLE_COLON)))
</pre>
<p>To summarise our IRC discussion while github was down.</p>

<p><a href="https://github.com/b4n" class="user-mention">@b4n</a> is concerned about the template params in autocompletion, I'm concerned about them in the tooltips.  Maybe those need to be separate things, with the tooltip being just a copy of the relevant part of the source as suggested above.  </p>

<p>BTW I am not suggesting parsing the parameters, I don't want compiler like situations where <code>std::string</code> is expanded to <code>std::basic_string<char, traits blah blah></code>.</p>

<p>The decltype example fails as expected.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/889/files#r51076674">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ0vqtEeCOuoeW44vovzlZEJ1aQg9ks5peYYngaJpZM4HMkrH.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/889/files#r51076674"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>