Re: How do I extract a list of function prototypes from C++ …

Top Page
Attachments:
Message as email
+ (text/plain)
+ use-GNU-ctags-to-find-functions.sh (application/x-sh)
+ (text/plain)
Delete this message
Reply to this message
Author: kitepilot@kitepilot.com
Date:  
To: Main PLUG discussion list
Subject: Re: How do I extract a list of function prototypes from C++ code?
This is how I did it... :)
THANKS EVERYONE!!!
ET



Matt Graham writes:

> From: X Y <>
>> I assume that by "every function prototype" you mean that you want to have
>> a list of all functions of every class. If my assumption is correct I can
> help you.
>> I do not know Perl or similar stuff, the best way to do such a job is to use
> C.
>
> Seriously? I'm thinking that's overkill of an insane degree. If you have
> exuberant-ctags installed (many people will), then go into the root dir of
> the project. Run ctags -R . "grep 'f$' tags | sed -e 's#.*/\^##' -e
> 's#\$/.*##' > functions.txt" . You may have to sort that and pipe it
> through uniq to get a better list. At least, that should get you a first
> approximation with minimal effort, and a ctags guru could probably get a
> better solution. This is what I came up with in 5 minutes.
>
> --
> Matt G / Dances With Crows
> The Crow202 Blog: http://crow202.org/wordpress/
> There is no Darkness in Eternity/But only Light too dim for us to see
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss