<p></p>
<blockquote>
<p dir="auto">Actually "Neat!!!" is not sufficient, this is massive, most modern code is written using parameters and locals almost exclusively, globals are only functions, and C++ moves many of them to members. So global autocompletes have significantly reduced in usefullness. Adding locals and parameters to autocomplete is a significant upgrade.</p>
</blockquote>
<p dir="auto">If you have some C++ code, please test how it behaves - I mostly tested it just with Geany's C (plus tried Boost to see how types are reported and what needs to be stripped from them).</p>
<p dir="auto">One thing I noticed that doesn't work very well is multiple member accesses in a row like</p>
<pre><code>a.b.
</code></pre>
<p dir="auto">Geany starts from scratch when looking for a type when <code>.</code> is typed so for <code>b</code> it doesn't look at the particular <code>b</code> which is a member of <code>a</code> but it searches <code>b</code> globally. Unfortunately if we wanted to generalize this, we'd have to parse possibly complex parts of code in front of <code>.</code> by ourselves.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/3175#issuecomment-1105195637">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZHUKYGRBQ46TVC63LVGFISRANCNFSM5T5CX5RA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJ3KYHHBIWR7W3XA23LVGFISRA5CNFSM5T5CX5RKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIHP7E5I.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><geany/geany/pull/3175/c1105195637</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/3175#issuecomment-1105195637",
"url": "https://github.com/geany/geany/pull/3175#issuecomment-1105195637",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>