Reputation: 333
I have a file named common.h where all the variables and functions have been defined. Is there an easy way by which I could generate and copy the names of all the variables and functions defined ? I have more than 2,000 functions and variables defined all together and its futile to copy them one by one.
I am currently using Eclipse CDT, and it allows me to generate a list using the 'Outline' function, but unfortunately I am not able to copy them.
PS: I need this for documentation purposes.
Upvotes: 1
Views: 892
Reputation: 4671
You could use ctags. Just issue
ctags -x common.h
from a terminal. A version of ctags for Windows also exists.
Upvotes: 2