Hello.<br><br>I guess I found one more missing feature in clang/libclang code-completion, it relates to functions with defaulted arguments.<br><br>In the clang docs for <a href="http://goo.gl/UYOmL">clang API Documentation</a> there is one example:<br>

<br><div class=""><pre class=""><span style="background-color:rgb(204,204,204)"> <span class="">void</span> f(<span class="">int</span> x, <span class="">float</span> y = 3.14, <span class="">double</span> z = 2.71828);
</span></pre></div><p><span style="background-color:rgb(204,204,204)">The code-completion string for this function would contain:</span></p>
<ul><li><span style="background-color:rgb(204,204,204)">a TypedText chunk for "f".</span></li><li><span style="background-color:rgb(204,204,204)">a LeftParen chunk for "(".</span></li><li><span style="background-color:rgb(204,204,204)">a Placeholder chunk for "int x"</span></li>

<li><span style="background-color:rgb(204,204,204)">an Optional chunk containing the remaining defaulted arguments, e.g.,</span><ul><li><span style="background-color:rgb(204,204,204)">a Comma chunk for ","</span></li>

<li><span style="background-color:rgb(204,204,204)">a Placeholder chunk for "float y"</span></li><li><span style="background-color:rgb(204,204,204)">an Optional chunk containing the last defaulted argument:</span><ul>

<li><span style="background-color:rgb(204,204,204)">a Comma chunk for ","</span></li><li><span style="background-color:rgb(204,204,204)">a Placeholder chunk for "double z"</span></li></ul>
</li></ul>
</li><li><span style="background-color:rgb(204,204,204)">a RightParen chunk for ")"</span></li></ul><br>So, completion string does not contain actual default values for arguments. But I'm pretty sure this is important information, and it should be returned in completion string, and I would include it in the placeholder.<br>

<br>I.e. placeholder for <span style="font-family:courier new,monospace">y</span> argument should actually contain "<span style="font-family:courier new,monospace">float y = 3.14</span>" , instead of just "<span style="font-family:courier new,monospace">float y</span>"<br>

<br>Please let me know if you agree or not.<br><br>--<br>Dmitry<br><br>