<p></p>
<blockquote>
<ol dir="auto">
<li>it only applied to variables, remember types can be forwarded and uctags doesn't emit tags for the forward declaration</li>
<li>it only applied to function (or lambda?) local variables, class member variables (and function names) are available backward</li>
<li>it only applied to C/C++, at least Julia allows use before declare, other languages would need their scope rules<br>
examining</li>
</ol>
</blockquote>
<p dir="auto">It only applies to local variables (and function parameters which are however always at function beginning so always visible within function). It only applies to languages where we use the <code class="notranslate">tm_tag_local_var_t</code> mapping - currently it is C/C++, could also be Python and GDScript, the rest of parsers don't report local variables.</p>
<blockquote>
<p dir="auto">Both Eclipse and vscode properly obey C/C++ visibility rules, so they don't show function local names (or globals but who uses those?) declared after.</p>
</blockquote>
<p dir="auto">Then I'd suggest to respect the order. The problem is this:<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/713965/165864725-e2698465-c568-44be-acd5-c383aef4dd8f.png"><img width="538" alt="Screen Shot 2022-04-29 at 1 35 38" src="https://user-images.githubusercontent.com/713965/165864725-e2698465-c568-44be-acd5-c383aef4dd8f.png" style="max-width: 100%;"></a><br>
Here you get invalid autocompletion for <code class="notranslate">header</code> which is declared in the block below when one could get <code class="notranslate">header_exts</code> directly at the top.</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-1112753287">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ2VFNZLM7RU4AHLDKTVHMPLXANCNFSM5T5CX5RA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJZU6Z56TTYOPC36J6LVHMPLXA5CNFSM5T5CX5RKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIJJUJBY.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/c1112753287</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-1112753287",
"url": "https://github.com/geany/geany/pull/3175#issuecomment-1112753287",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>