[Ctags] two declarations of the same function with different names separated by #if #else #endif
Brought to you by:
dhiebert
From: Alexander B. <ae...@li...> - 2006-12-28 09:23:58
|
Good day! Happy New Year to all! I have a question. There is a *.c file with following content: /* c.c */ #if VAR int func1(){ #else int func2(){ #endif return 0; } if I try to generate tags file with command # ctags c.c than result will be ================= tags file generated from c.c ========================= !_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 /dhi...@us.../ !_TAG_PROGRAM_NAME Exuberant Ctags // !_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/ !_TAG_PROGRAM_VERSION 5.5.4 // func1 c.c /^int func1(){$/;" f ======================================================================== Could you please help me to find solution to generate tags file with both of functions, func1 and func2? I would like the tags file looks like ======================================================================== !_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 /dhi...@us.../ !_TAG_PROGRAM_NAME Exuberant Ctags // !_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/ !_TAG_PROGRAM_VERSION 5.5.4 // func1 c.c /^int func1(){$/;" f func2 c.c /^int func2(){$/;" f ======================================================================== Thanks in advance. /BR, Alexander |