You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have a question: is it possible to extract the location of C macro used in code (for example the usage of list_for_each_head() macro in Linux kernel)? I'm able to extract their definition but not the usage locations. It seems that Cscope is able to identify them but I didn't find a flag for them in ctags (the only way that I have found is to define them using -I sintax)
Thanks
The text was updated successfully, but these errors were encountered:
I have tried to distinguish tags for names defining something (definition tags) and names referencing something(reference tags). You are talking about reference tags.
In my understanding, the original ctags was a tool for extracting definition tags.
I added an infrastructure for handling reference tags to the main part; the code part commonly used in parsers provides a way to emit reference tags.
Some parsers utilize the framework
The first ACONDITION is a definition tag; it defines a macro.
The second one is a reference tag; it is used as a part of a condition.
Please, read ctags(1) (https://docs.ctags.io/en/latest/man/ctags.1.html) if you are interested in the complicated command line.
Though I introduced the infrastructure, parsers in ctags utilize it in very limited areas.
If you are interested in the area, see the output of ctags --list-roles=all.
One of the reasons is that extracting reference tags can make too large tags (> 8G for linux kernel). I wonder if users really want such a large output.
If you are interested in extracting reference tags more aggressively in C language, see #3535 .
Thanks a lot again :)
Sorry I started to use this fantastic tool only from some weeks and I don't understand all the options and its capabilities
Thanks again
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I have a question: is it possible to extract the location of C macro used in code (for example the usage of
list_for_each_head()
macro in Linux kernel)? I'm able to extract their definition but not the usage locations. It seems that Cscope is able to identify them but I didn't find a flag for them in ctags (the only way that I have found is to define them using -I sintax)Thanks
The text was updated successfully, but these errors were encountered: