<p>In <a href="https://github.com/geany/geany/pull/889#discussion_r50917223">tests/ctags/var-and-return-type.cpp</a>:</p>
<pre style='color:#555'>> +};
> +
> +const struct type1 func2();
> +const struct type1 var2 = { 0, 0 };
> +
> +typedef type1 type1_t;
> +
> +const type1_t func3();
> +const type1_t var3 = { 0, 0 };
> +
> +struct type1 func4();
> +struct type1 var4 = { 0, 0 };
> +
> +type1_t func5();
> +type1_t var5 = { 0, 0 };
> +
</pre>
<blockquote>
<p>what about testing  <code>type1_t var{};</code> or <code>type1_t var{ 0, 0 };</code></p>
</blockquote>

<p>Nothing to do with reporting the var type, it's "just" another mean of initializing.  So different issue, possibly different test case.</p>

<blockquote>
<p>what about testing <code>auto func()->type1_t</code> C++11 syntax </p>
</blockquote>

<p>This is more related, but still quite outside the scope here, as AFAIK <code>-></code> syntax is not supported at all yet. (OT, WTF is about this syntax?  why add a new one?)</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#r50917223">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJzvUtaxFwMzNrUvsN_d_1yIslDpKks5pd_TfgaJpZM4HMkrH.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#r50917223"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>