Cracking ctags issue on Mac OS X

I am trying to create tags for C Standard Lib using Exuberant Ctags 5.8, however it seems that the headers are not completely parsed ... For example, when I generate tags for /usr/include/string.h, I get the following:

!_TAG_FILE_FORMAT   2   /extended format; --format=1 will not append ;" to lines/
!_TAG_FILE_SORTED   1   /0=unsorted, 1=sorted, 2=foldcase/
!_TAG_PROGRAM_AUTHOR    Darren Hiebert  /dhiebert@users.sourceforge.net/
!_TAG_PROGRAM_NAME  Exuberant Ctags //
!_TAG_PROGRAM_URL   http://ctags.sourceforge.net    /official site/
!_TAG_PROGRAM_VERSION   5.8 //
NULL    /usr/include/string.h   /^#define NULL /;"  d
_SIZE_T /usr/include/string.h   /^#define   _SIZE_T$/;" d
_SSIZE_T    /usr/include/string.h   /^#define _SSIZE_T$/;"  d
_STRING_H_  /usr/include/string.h   /^#define   _STRING_H_$/;"  d
size_t  /usr/include/string.h   /^typedef   __darwin_size_t     size_t;$/;" t
ssize_t /usr/include/string.h   /^typedef __darwin_ssize_t  ssize_t;$/;"    t
strerror    /usr/include/string.h   /^char  *strerror(int) __DARWIN_ALIAS(strerror);$/;"    v

Obviously, many functions are missing (strcpy, strlen, strcmp, etc.). Here's a link to the actual header file: http://pastie.org/private/lvgvtg1lmzaenidg0rvq

I just ran. ctags /usr/include/string.hAm I doing something wrong? Any help would be appreciated ...

+3
source share
2 answers

I believe that ctags does not include prototypes of functions by default, but only function implementations.

ctags --c-kinds=+px /usr/include/string.h, ?

( ctags −−list−kinds=c, , ctags .)

+4
+3

Source: https://habr.com/ru/post/1750543/


All Articles