Closed kaloth closed 10 months ago
_Field_size_full_
is defined in sal.h
. (Not sure if sal.h
can be automatically parsed.)
How about using -D _Field_size_full_()=
?
E.g.:
ctags -D _Field_size_full_()= d3d12.h
This was a great suggestion and it worked like a charm! I guess I'll leave it up to someone who knows ctags better to decide if ctags needs to support this usage properly or if the define stripping is the only viable workaround.
If the target source code includes sal.h and sal.h defines _Field_sizefull as a macro, ctags version 19.0 will expand the macro used in the target source code. This feature can be used with the -r option (semantic recursion).
However, the latest version is 6.1.0. -r option is not implemented yet as in 2024. The instruction that @k-takata wrote is solid.
If running ctags twice is allowed, you can expand macros automatically.
However, unlike imaginary option -r, the current version of ctags doesn't care #include and #ifdef/#elif/#else, ctags may expand macros unexpected places in the source tree.
( Thank you for contacting us.
If you are reporting an issue with the parsing output, please fill the following template. As your custom CTags configuration can affect results, please always use
--options=NONE
as the first option when runningctags
.Otherwise, delete the template and write your issue from scratch. Examples may help developers understanding your issue better.
Use GitHub web interface and markdown notation. Using mail results broken text rendering that makes the developers go crazy. )
The name of the parser: I'm not sure. C/C++?
The command line you used to run ctags:
The content of input file:
The tags output you are not satisfied with:
The tags output you expect:
The version of ctags:
How do you get ctags binary:
Downloaded from here: https://github.com/universal-ctags/ctags-win32/releases/download/v6.1.0/ctags-v6.1.0-x64.zip