The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to return the value from the called shell script to the calling sh script gp_singh Shell Programming and Scripting 2 05-05-2009 02:17 AM
script to find function names samantha grace Shell Programming and Scripting 2 12-22-2008 07:31 AM
Protect shell script source code jkkstar Shell Programming and Scripting 6 10-06-2008 09:24 AM
Passing global variable to a function which is called by another function sars Shell Programming and Scripting 4 06-30-2008 12:39 PM
source code for a shell zlatan005 Shell Programming and Scripting 2 06-18-2008 07:10 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 07-16-2009
frozensmilz's Avatar
frozensmilz frozensmilz is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 28
Shell Script to display function names (called & defined) in a C++ Source Code

Hello to all,

I am looking for a way to display only the names of function (calls & definition) of a C++ source code.There is already a post related to this, but the script is to find the functions using a specific variable, and the replies are not that convincing since they cannot be used for all combinations of function calls/definitions. Kindly help me.

Is there any command in linux that can print the function calls/definitions, variables etc used in a C++ source code ?

Input
-----
File:Sample.cpp

Content:
void display_here() {
cdef
}

int sample() {
abcd
process_somewhere(nowhere(abc),
abc)
display_here()
rstuv
}

Output
-------
void display_here()
int sample()
process_somewhere(nowhere(abc),
abc)
display_here()


Thanks.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:29 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0