<p>Example (compiles and runs):</p>

<div class="highlight highlight-source-c++"><pre>#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>string<span class="pl-pds">></span></span>
#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>iostream<span class="pl-pds">></span></span>

std::string <span class="pl-en">f</span>(){
    <span class="pl-k">return</span> <span class="pl-c1">std::string</span>(<span class="pl-s"><span class="pl-pds">"</span>abc<span class="pl-pds">"</span></span>);
};

<span class="pl-k">int</span> <span class="pl-en">main</span>(<span class="pl-k">int</span>, <span class="pl-k">char</span> **)
{
    std::cout<<<span class="pl-c1">f</span>()<<std::endl;
    <span class="pl-k">return</span> <span class="pl-c1">0</span>;
}</pre></div>

<p>The return type for <code>f()</code> shown in the symbol bar tooltip and the editing window tooltip (when you type <code>f(</code> ) only shows the <code>std</code> not <code>std::string</code>.</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/issues/845">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJyYBdY8-B5gLWJ1aO7ZlpJseQuN8ks5pVihXgaJpZM4G9Yoa.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/issues/845"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>