I am developing an IDE which supports c programming language.
i want to implement a autocomplete feature by pressing ctrl+space.
For that i need to extract all function prototypes from header files.
Please suggest me the way
Thanks
suchetan
I am developing an IDE which supports c programming language.
i want to implement a autocomplete feature by pressing ctrl+space.
For that i need to extract all function prototypes from header files.
Please suggest me the way
Thanks
suchetan
2
Answers
As @jww said in a comment: have a look at ctags or the more elaborate: cscope, both of which are usable for completion in vim.
Specifically have a look at cscope’s scanner which uses flex to create a scanner that identifies token types.
shell script to extract all functions except constructor and destructor from XYZ.cpp: