Mapping Macro Function Calls to Actual function Name [message #726737] |
Mon, 19 September 2011 11:54 |
Paranthaman 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?
|
|
|
Powered by
FUDForum. Page generated in 0.02518 seconds