Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-core-dev] How to get the function calls from a c/cpp pro ject

Actually, Norbert’s reply was better. Thanks, Norbert!

 

Doug Schaefer, QNX Software Systems

Eclipse CDT Project Lead, http://cdtdoug.blogspot.com

 


From: cdt-core-dev-bounces@xxxxxxxxxxx [mailto:cdt-core-dev-bounces@xxxxxxxxxxx] On Behalf Of Doug Schaefer
Sent: Wednesday, January 18, 2006 9:45 AM
To: CDT Core developers list.
Subject: RE: [cdt-core-dev] How to get the function calls from a c/cpp pro ject

 

You can not get functional call information from ICElements.

 

You can get it from the DOM by getting an instance of IASTTranslationUnit from the CDOM and navigating through it.

 

Doug Schaefer, QNX Software Systems

Eclipse CDT Project Lead, http://cdtdoug.blogspot.com

 


From: cdt-core-dev-bounces@xxxxxxxxxxx [mailto:cdt-core-dev-bounces@xxxxxxxxxxx] On Behalf Of jamsheer pk
Sent: Wednesday, January 18, 2006 6:42 AM
To: cdt-core-dev@xxxxxxxxxxx
Subject: [cdt-core-dev] How to get the function calls from a c/cpp project

 

I am writing a code to parse the c/cpp project.  I have the c projetc name as ICProject. Now I want to parse  this project to get all the function calls. But when I am using the statement

  List functions = translationUnit.getChildrenOfType(ICElement.C_FUNCTION);
 I am getting all the childrens of type function definitions. Not function call. Can anybody tell me how to get that
--
"Our Greatest Glory is Not in Never Failing, But in Rising Every Step We Fall "


Back to the top