Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] How to identify the called function?

I recommend using the index to find declarations, definitions or
references for a binding.
If you do need to work with multiple ASTs you need to compare the
bindings yourself. For that in plain C, it is suficient to check whether
the two functions have the same name.


> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx 
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of manivannan_pk
> Sent: Thursday, May 28, 2009 10:46 AM
> To: cdt-dev@xxxxxxxxxxx
> Subject: [cdt-dev] How to identify the called function?
> Importance: Low
> Hi
> Say a function foo is declared in foo.h, defined in foo.c and 
> used in use.c; The function has 3 different bindings in the 
> ASTs of these 3 files. Then how does one identify which 
> function is being called in use.c and where its definition is?
> Thanks,
> mani
> --
> View this message in context: 
> 3757709p23757709.html
> Sent from the Eclipse CDT - Development mailing list archive 
> at
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx

Back to the top