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

-I option handling in C parser #945

Closed
masatake opened this issue May 21, 2016 · 1 comment
Closed

-I option handling in C parser #945

masatake opened this issue May 21, 2016 · 1 comment
Assignees

Comments

@masatake
Copy link
Member

masatake commented May 21, 2016

input.c:

struct packet_type edsa_packet_type __read_mostly = {
    .type   = cpu_to_be16(ETH_P_EDSA),
    .func   = edsa_rcv,
};

New C parser output:

$ ./ctags -o - -I __read_mostly foo.c
edsa_packet_type    foo.c   /^struct packet_type edsa_packet_type __read_mostly = {$/;" s   file:

Old C parser output:

$ ./ctags --languages=+OldC,-C -o - -I __read_mostly foo.c
edsa_packet_type    foo.c   /^struct packet_type edsa_packet_type __read_mostly = {$/;" v   typeref:struct:packet_type

OldC parser tags edsa_packet_type as a variable. This is my expected behaviour.

@pragmaware
Copy link
Contributor

Fixed via #962

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

No branches or pull requests

2 participants