#285 Ctags doesn't handle multiline function prototypes?

open
nobody
None
5
2013-11-11
2010-07-25
Cyker Way
No

Source file:
//pear.c
int main(int argc,
char *argv[])
{
return 0;
}

//tags
main pear.c /^int main(int argc,$/;" f

The char* argv[] is left out.

Discussion

  • Chris H
    Chris H
    2010-10-06

    if you add --fields=+S to your command, ctags will print the whole parameter list in the extension fields

     
  • As @hergi said, just add the appropriate field.

    What you see here (/^int main(int argc,$/) is a Vi command to go to the position this tag was found in the file (pear.c). This is not the function signature nor anything, just regex to match the line.

     
  • skrell
    skrell
    2013-11-11

    how and where do you add the +S command in the notepad++ plugin ?