Re: [Ctags] ctags unable to recognize non standard C function declaration
Brought to you by:
dhiebert
|
From: JohnJiming L. <jjl...@gm...> - 2021-03-04 00:20:39
|
The C language parser actually parses the code. It doesn’t use regex’s. If you want to fix the issue outside of ctags, I think you would have to preprocess the file to remove the __THROW. John > On Mar 3, 2021, at 2:45 PM, Peng Yu <pen...@gm...> wrote: > > Hi, > > https://github.com/bminor/glibc/blob/21c3f4b5368686ade28d90d8c7d79c4c95c72c1b/socket/sys/socket.h#L215 > > ctags is unable to recognize function declaration like the above one > because there is a throw at the end. How does ctags recognize a > function declaration? Is there an equivalent regex or something > similar so that I can fix the bug outside ctags in order to recognize > the function declaration? > > $ ctags --c-kinds=+p -R -o - | grep '^setsockopt\>' | wc -l > 0 > > -- > Regards, > Peng > > > _______________________________________________ > Ctags-users mailing list > Cta...@li... > https://lists.sourceforge.net/lists/listinfo/ctags-users |