<p></p>
<p>I'm working this topic in u-ctags side.</p>
<p>With the change I proposed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="619422266" data-permission-text="Title is private" data-url="https://github.com/universal-ctags/ctags/issues/2543" data-hovercard-type="pull_request" data-hovercard-url="/universal-ctags/ctags/pull/2543/hovercard" href="https://github.com/universal-ctags/ctags/pull/2543">universal-ctags/ctags#2543</a>, ctags can capture <code>foo</code> well:</p>
<pre><code>$ cat /tmp/foo.c
#define BLEH
struct foo BLEH { int _; };
$ u-ctags --param-CPreProcessor:_expand=1 --fields-C=+{macrodef} --fields=+S -o - /tmp/foo.c
<sor:_expand=1 --fields-C=+{macrodef} --fields=+S -o - /tmp/foo.c
BLEH    /tmp/foo.c      /^#define BLEH$/;" d       language:C      file:   macrodef:
_       /tmp/foo.c      /^struct foo BLEH { int _; };$/;"  m       language:C      struct:foo      typeref:typename:int    file:
foo     /tmp/foo.c      /^struct foo BLEH { int _; };$/;"  s       language:C      file:
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1654#issuecomment-629688887">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ7MPGC6BVMJCEWDWMDRR3MJLANCNFSM4EAHYFHA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJZNQT3MJPMOUIXHEILRR3MJLA5CNFSM4EAHYFHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEWEEUNY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/1654#issuecomment-629688887",
"url": "https://github.com/geany/geany/issues/1654#issuecomment-629688887",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>