Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] How to find find the scope of a function/variable usage.

I am using CModel
Given a function usage (org.eclipse.cdt.core.model.IFunction) within some translation unit, how does one obtain the scope within which this function is called?
SomeScope::someMemberFunction {
foo();
}
2) Given a function usage, where the function is called explicitly on an object, how does one obtain the scope of this function call, i.e. the type of the variable that the function is called on?
SomeScope::someMemberFunction {
someVariable->foo();
someVariable2.foo();
}
 
 
Regards
Jagan


Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.

Back to the top