<p></p>
<p><b>@techee</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/geany/geany/pull/3059#discussion_r772472611">src/tagmanager/tm_ctags.c</a>:</p>
<pre style='color:#555'>> +                                            /* set the name of the original anon tag and pretend
+                                                * it wasn't a anon tag */
+                                               tag->name = g_strdup(typedef_tag->name);
+                                               tag->flags &= ~tm_tag_flag_anon_t;
+                                               new_name = tag->name;
+                                               /* the typedef tag will be removed */
+                                               g_ptr_array_add(removed_typedefs, GUINT_TO_POINTER(j));
+                                       }
+                               }
+                       }
+
+                       /* there's no typedef name for the anon tag so let's generate one  */
+                       if (!new_name)
+                       {
+                               gchar buf[50];
+                               guint anon_counter = GPOINTER_TO_UINT(g_hash_table_lookup(anon_counter_table, kind_name));
</pre>
<p dir="auto">Good point, will change. I was also thinking I could allocate the <code>removed_typedefs</code> GPtrArray lazily if needed so it isn't allocated every time (and unnecessarily for most languages).</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/3059#discussion_r772472611">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ5ZPMM7T4XBEP5HLW3UR5FXRANCNFSM5KMJEVBQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJ5BX3JFDDJMQOBFKXDUR5FXRA5CNFSM5KMJEVB2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOGHOJ6KI.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/3059/review/836542249</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/3059#discussion_r772472611",
"url": "https://github.com/geany/geany/pull/3059#discussion_r772472611",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>