C++ Use the typedef name for anonymous struct / union / enum, instead of the auto-generated name #4021
Replies: 1 comment
-
Ctags cannot do it. Like #4015, this should be done in post-process. Let's assume we have already implemented such a feature in a ctags implementation named "Ideal Ctags". The feature isn't enabled by default. To turn it on, specify
Implementing this one may be easy.
It is harder to implement. However, it may be possible. |
Beta Was this translation helpful? Give feedback.
-
Hello
Consider an anonymous structure in a typdef declaration:
ctags generates an anonymous name like
__anon9f26d2460108
for the structure, and also references it for the members:Can ctags use the typedef name
PluginList
as the structure name for this case ?In C++ this is already specified as a special case by the language, where the typedef is used to denote the class or enum type for linkage purposes (and the name receives the same linkage as the class or namespace of which it is a member).
This means objects declared "extern" (or static), of this struct type, receive the class type PluginList directly.
However I think ctags should do the same thing C as well.
Beta Was this translation helpful? Give feedback.
All reactions