Open quickfur opened 2 years ago
Hmm in fact, it seems no function-scope identifiers are tagged at all:
void main() {
enum LocalEnum { A, B, C };
void helperFunc() {}
helperFunc();
}
helperFunc
is not tagged.
This is intentional. ctags
does the same thing:
$ cat test.c
int main()
{
int n;
return 0;
}
$ ctags -o - test.c
main test.c /^int main()$/;" f typeref:typename:int
My justification for copying this behavior is twofold:
That said, universal-ctags does provide local-symbol tags as an opt-in feature, enabled with a command-line option. So adding a similar feature to dmdtags
would be reasonable.
A command-line option for this would be nice.
dmdtags does not seem to generate tags for enums declared in function scope, even when the enum name is unique. Example:
The generated tags file does not contain
LocalEnum
.