-
Notifications
You must be signed in to change notification settings - Fork 624
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++ parser does not tag member variable if type is template with forward declared class #2867
Comments
It looks like this is the case that causes the parser to try to handle it like a class instead of a member variable. Based on the name and the switch statement cases around it, I imagine this happens for unions and structs as well. |
Thank you for reporting. It seems that our maintainer of C/C++ parsers is busy now.
|
I must consider not only
|
drichardson
pushed a commit
to drichardson/ctags
that referenced
this issue
Feb 15, 2021
drichardson
pushed a commit
to drichardson/ctags
that referenced
this issue
Feb 15, 2021
drichardson
added a commit
to drichardson/ctags
that referenced
this issue
Feb 16, 2021
Fixes universal-ctags#2867. Co-authored-by: Masatake YAMATO <yamato@redhat.com>
drichardson
added a commit
to drichardson/ctags
that referenced
this issue
Feb 16, 2021
Fixes universal-ctags#2867. Co-authored-by: Masatake YAMATO <yamato@redhat.com>
drichardson
added a commit
to drichardson/ctags
that referenced
this issue
Apr 1, 2021
Fixes universal-ctags#2867. Co-authored-by: Masatake YAMATO <yamato@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The name of the parser: C++
I wrote a unit test that I believe should pass in this branch:
The content of input file:
Running ctags with the options
--sort=no --kinds-C++=m
produces tags output that is missing an entry fora_c_forward
.The tags output you expect:
The version of ctags:
How do you get ctags binary: Built locally.
Additional Info
Here is a ctags trace. You can see that the
class
token is what is causing the parser to not treat the reset of the line as a variable declaration.The text was updated successfully, but these errors were encountered: