Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C: report parameters in a prototype with anonymous tags #3045

Closed
masatake opened this issue Jun 1, 2021 · 2 comments · Fixed by #3063
Closed

C: report parameters in a prototype with anonymous tags #3045

masatake opened this issue Jun 1, 2021 · 2 comments · Fixed by #3063

Comments

@masatake
Copy link
Member

masatake commented Jun 1, 2021

C: report parameters in a prototype with anonymous tags

input.h

MyStruct_t add(MyStruct_t, MyStruct_t);

expected.tags

anon1 ... typeref:typename:MyStruct_t ...scope:protoype:add...
anon2 ... typeref:typename:MyStruct_t ...scope:protoype:add...

This feature helps using tags for code generation as reported in #3043.

Originally posted by @masatake in #3043 (comment)

@masatake
Copy link
Member Author

masatake commented Jun 8, 2021

I have to think about how to handle "...". The signature field of the prototype kind tag may include "...".

@masatake
Copy link
Member Author

masatake commented Jun 8, 2021

Arity and/or nth fields may be useful.

masatake added a commit to masatake/ctags that referenced this issue Jun 10, 2021
Close universal-ctags#3045.

If types of parameters are declared in a prototype, this change
generates anonymous names for them and makes tags.
masatake added a commit to masatake/ctags that referenced this issue Jun 11, 2021
Close universal-ctags#3045.

If types of parameters are declared in a prototype, this change
generates anonymous names for them and makes tags.
masatake added a commit to masatake/ctags that referenced this issue Jun 11, 2021
Close universal-ctags#3045.

If types of parameters are declared in a prototype, this change
generates anonymous names for them and makes tags.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant