-
Notifications
You must be signed in to change notification settings - Fork 0
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
CMake: implement scope and end fields for functions and macros #1
Conversation
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Yup, they can. Unfortunately your changes almost double the time it takes:
Let me work on it a bit to see if I can improve it. |
I can get it down to about only a 10% impact on previous performance:
Is it worth it? (I'm not sure how popular the |
Thank you for the optimization. I think you cannot accept the 10% impact for unused information.
The pattern is inserted to the "main" table only when "end" field is enabled when starting ctags. I think I cannot implement such feature quickly. So I would like to withdraw this PR. |
I started modifying the cmake.ctags file to reference the scope info for variables when they're in functions, and doing that you get the If so, I can update the PR with that change. |
The worth is really up to the client tools. I don't know client tools well. However, I believe such informations are useful. One of the well known complaints about ctags is name confliction; an editor shows multiple tags for a name specified by a user. The user wants to jump to the definition for the name directly, but the client show candidates instead. scope info and end info helps the developers of client tools implement the direct jump or reducing the candidates.
Though I opened this #1, I would like to merge universal-ctags#1818 first. |
Sure no problem. |
I was actually trying something similar a while back: I tried controlling whether a But yes some way to disable specific regex lines might be useful. (as a side note, I saw the function API for the matching functions in As a side note: the reason I wanted it was I was thinking it would be cool to let users extend the tables created by But really for something like that they can just copy/paste the |
end: field is implemented. Could you consider merge this change to your pull request IF there is no critical performance impact?
I'm not sure whether function (and/or macro) can be nested.