We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ctags does not skip preprocessor branches if we are not inside {}.
{}
Input:
#ifdef A int a; #else int b; #endif
Output:
a test.cpp /^int a;$/;" kind:variable line:2 typeref:typename:int end:2 b test.cpp /^int b;$/;" kind:variable line:4 typeref:typename:int end:4
But, if preprocessor branches are inside {} then the second branch is skipped.
extern "C" { #ifdef A int a; #else int b; #endif }
a test.cpp /^int a;$/;" kind:variable line:3 typeref:typename:int end:3
This looks inconsistent and the problem is here: https://github.com/universal-ctags/ctags/blob/master/parsers/cxx/cxx_parser_block.c#L262
I think that we can remove cppBeginStatement() call here because:
cppBeginStatement()
The text was updated successfully, but these errors were encountered:
Sorry, seems it's duplicate of #2647
Sorry, something went wrong.
No branches or pull requests
ctags does not skip preprocessor branches if we are not inside
{}
.Input:
Output:
But, if preprocessor branches are inside
{}
then the second branch is skipped.Input:
Output:
This looks inconsistent and the problem is here:
https://github.com/universal-ctags/ctags/blob/master/parsers/cxx/cxx_parser_block.c#L262
I think that we can remove
cppBeginStatement()
call here because:The text was updated successfully, but these errors were encountered: