how to get the function declaration or definitions using regex

后端 未结 7 980
野的像风
野的像风 2020-12-16 06:43

I want to get only function prototypes like

int my_func(char, int, float)
void my_func1(void)
my_func2()

from C files using regex and pytho

相关标签:
7条回答
  • 2020-12-16 07:20

    See if your C compiler has an option to output a file of just the prototypes of what it is compiling. For gcc, it's -aux-info FILENAME

    0 讨论(0)
提交回复
热议问题