Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Mapping Macro Function Calls to Actual function Name(CDT)
Mapping Macro Function Calls to Actual function Name [message #726737] Mon, 19 September 2011 11:54
Paranthaman  is currently offline Paranthaman Friend
Messages: 1
Registered: September 2011
Junior Member
I am actually a new to Eclipse plugin development and I am currently working on a project which involves parsing of the C-files to build the Call heirarchy.

I am able to get the functions in a C-file and the function calls within them. But I have a problem when a function call appears as a MACRO. Can anyonegive me a hint on how I can actually map the MACRO function call to the actual name of the function?

Sample Code would be as follows:
---------------------------------------------
#define macroFunc(a,b) actualFunc(a,b)

int actualFunc(int a, int b)
{
return(a+b);
}

int main()
{
macroFunc(10,20); /* Function called using macro*/
}
----------------------------------------------
I have a requirement where in I should be able to map macroFunc(...) call to actualFunc(..) defintion.
Could anyone please let me know how this can be acheived?
Previous Topic:Eclipse Helios crash in Fedora 14
Next Topic:Fortran code profiling with TAU
Goto Forum:
  


Current Time: Thu Apr 25 23:42:45 GMT 2024

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

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

Back to the top