Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » How to collect list of functions from a C file.(CDT)
How to collect list of functions from a C file. [message #1085536] Mon, 12 August 2013 23:07 Go to next message
Eclipse UserFriend
Hello,
I am new to CDT. I want to collect the list of functions present in a given ".C" file along with the headers used by the same.
In short I want to collect, what is shown in "OUTLINE" view of eclipse, when a ".C" file is opened in eclipse.
My final goal is to develop a plugin that will take path of ".C" file as input while the list of functions and header file used as an output.
Please help me- how can I collect such information? Any code sample will be a great help.

Thanking all of you in advance.
Re: How to collect list of functions from a C file. [message #1086437 is a reply to message #1085536] Wed, 14 August 2013 03:50 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I would suggest asking this question in CDT mailing list.
https://dev.eclipse.org/mailman/listinfo/cdt-dev

Thanks,
Yevgeny
Re: How to collect list of functions from a C file. [message #1086451 is a reply to message #1086437] Wed, 14 August 2013 04:13 Go to previous messageGo to next message
Eclipse UserFriend
Thank you Yevgeny for your suggestion.
Re: How to collect list of functions from a C file. [message #1091664 is a reply to message #1086451] Wed, 21 August 2013 16:45 Go to previous message
Eclipse UserFriend
I don't know how to do it on windows, but on linux, you can do this:

> ctags -x | awk '$2 = /function/ {print $1}'

It was just a coincidence I recently needed to do this.


-rob
Previous Topic:CDT Project
Next Topic:thank u sa
Goto Forum:
  


Current Time: Sat May 24 10:11:11 EDT 2025

Powered by FUDForum. Page generated in 0.03748 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top