[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cdt-dev] Discouraged Access
|
Again, climb the parent hierarchy. IASTName is a leaf node, climbing its
parents you should find the function definition. This is how resolveBinding
works. That is the intended mechanism for walking around the AST.
Bindings are only intended for linking (or binding) related names together
and for providing type information. The whole physical node concept was a
heuristic intended to speed up resolveBinding. It is incomplete, violates
the architecture, and as such is not intended for public consumption. And it
could disappear if we find a better way to cache and look up information.
Doug Schaefer, QNX Software Systems
Eclipse CDT Project Lead, http://cdtdoug.blogspot.com
> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On
> Behalf Of Beth Tibbitts
> Sent: Monday, May 07, 2007 8:13 AM
> To: CDT General developers list.
> Subject: RE: [cdt-dev] Discouraged Access
>
> I already have the IASTName. That's where I got the binding.
> I need the IASTNode.
>
> ...Beth
>
> Beth Tibbitts (859) 243-4981 (TL 545-4981)
> High Productivity Tools / Parallel Tools http://eclipse.org/ptp
> IBM T.J.Watson Research Center
> Mailing Address: IBM Corp., 455 Park Place, Lexington, KY 40511
>
>
>
> "Schorn, Markus"
> <Markus.Schorn@wi
> ndriver.com> To
> Sent by: "CDT General developers list."
> cdt-dev-bounces@e <cdt-dev@xxxxxxxxxxx>
> clipse.org cc
>
> Subject
> 05/02/2007 05:19 **RE: [cdt-dev] Discouraged Access
> AM
>
>
> Please respond to
> "CDT General
> developers list."
> <cdt-dev@eclipse.
> org>
>
>
>
>
>
>
> IFunction is a binding so you can find all of its definitions by:
>
> IASTTranslationUnit ast= ...;
> IFunction func= ...;
>
> IASTName[] defs= ast.getDefinitionsInAST(func);
>
> Markus.
>
> > -----Original Message-----
> > From: cdt-dev-bounces@xxxxxxxxxxx
> > [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Beth Tibbitts
> > Sent: Freitag, 27. April 2007 18:54
> > To: CDT General developers list.
> > Subject: RE: [cdt-dev] Discouraged Access
> >
> > >Are there things missing from IFunction?
> > Yes.
> > CFunction.getPhysicalNode() exists but
> > IFunction.getPhysicalNode() does
> > not.
> >
> >
> >
> > ...Beth
> >
> > Beth Tibbitts (859) 243-4981 (TL 545-4981)
> > High Productivity Tools / Parallel Tools http://eclipse.org/ptp
> > IBM T.J.Watson Research Center
> > Mailing Address: IBM Corp., 455 Park Place, Lexington, KY 40511
> >
> >
> >
> >
> > Doug Schaefer
> >
> > <DSchaefer@xxxxxx
> >
> > m>
> > To
> > Sent by: "CDT General
> > developers list."
> > cdt-dev-bounces@e <cdt-dev@xxxxxxxxxxx>
> >
> > clipse.org
> > cc
> >
> >
> >
> > Subject
> > 04/27/2007 11:37 RE: [cdt-dev]
> > Discouraged Access
> > AM
> >
> >
> >
> >
> >
> > Please respond to
> >
> > "CDT General
> >
> > developers list."
> >
> > <cdt-dev@eclipse.
> >
> > org>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Are there things missing from IFunction? If so we should
> > expand that. In
> > general, no one should be using the internal classes, only
> > the DOM itself.
> >
> > Doug Schaefer, QNX Software Systems
> > Eclipse CDT Project Lead, http://cdtdoug.blogspot.com
> >
> >
> > > -----Original Message-----
> > > From: cdt-dev-bounces@xxxxxxxxxxx
> > [mailto:cdt-dev-bounces@xxxxxxxxxxx] On
> > > Behalf Of Beth Tibbitts
> > > Sent: Friday, April 27, 2007 11:34 AM
> > > To: CDT General developers list.
> > > Subject: RE: [cdt-dev] Discouraged Access
> > >
> > > How do I do static analysis without accessing things like this?
> > > Do I just do it anyway and consider myself "internally
> > privileged" ?? :)
> > >
> > > What audience is "internal" aimed at?
> > >
> > > ...Beth
> > >
> > > Beth Tibbitts (859) 243-4981 (TL 545-4981)
> > > High Productivity Tools / Parallel Tools http://eclipse.org/ptp
> > > IBM T.J.Watson Research Center
> > > Mailing Address: IBM Corp., 455 Park Place, Lexington, KY 40511
> > >
> > >
> > >
> > > Doug Schaefer
> > > <DSchaefer@xxxxxx
> > > m>
> > To
> > > Sent by: "CDT General
> > developers list."
> > > cdt-dev-bounces@e <cdt-dev@xxxxxxxxxxx>
> > > clipse.org
> > cc
> > >
> > >
> > Subject
> > > 04/27/2007 11:26 RE: [cdt-dev]
> > Discouraged Access
> > > AM
> > >
> > >
> > > Please respond to
> > > "CDT General
> > > developers list."
> > > <cdt-dev@eclipse.
> > > org>
> > >
> > >
> > >
> > >
> > >
> > >
> > > CFunction is internal, no?
> > >
> > > Doug Schaefer, QNX Software Systems
> > > Eclipse CDT Project Lead, http://cdtdoug.blogspot.com
> > >
> > >
> > > > -----Original Message-----
> > > > From: cdt-dev-bounces@xxxxxxxxxxx
> > [mailto:cdt-dev-bounces@xxxxxxxxxxx]
> > > On
> > > > Behalf Of Beth Tibbitts
> > > > Sent: Friday, April 27, 2007 11:25 AM
> > > > To: cdt-dev@xxxxxxxxxxx
> > > > Subject: [cdt-dev] Discouraged Access
> > > >
> > > >
> > > > The code I appended for my previous problem solution
> > > > (http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg09602.html)
> > > > exhibits what I've seen various (many, many) other places
> > in my use of
> > > CDT
> > > > 4.0:
> > > >
> > > > Discouraged access: The type CFunction is not accessible due to
> > > > restriction
> > > > on required library C:
> > > > \ecl\eclipse-3.3M6cdt40M6\eclipse\plugins
> > > > \org.eclipse.cdt.core_4.0.0.200703302000.jar
> > > >
> > > > Since I'm using the CDT APIs for my analysis, why
> > shouldn't I be using
> > > > these APIs?.
> > > >
> > > > ...Beth
> > > >
> > > > Beth Tibbitts (859) 243-4981 (TL 545-4981)
> > > > High Productivity Tools / Parallel Tools http://eclipse.org/ptp
> > > > IBM T.J.Watson Research Center
> > > > Mailing Address: IBM Corp., 455 Park Place, Lexington, KY 40511
> > > >
> > > > _______________________________________________
> > > > cdt-dev mailing list
> > > > cdt-dev@xxxxxxxxxxx
> > > > https://dev.eclipse.org/mailman/listinfo/cdt-dev
> > > _______________________________________________
> > > cdt-dev mailing list
> > > cdt-dev@xxxxxxxxxxx
> > > https://dev.eclipse.org/mailman/listinfo/cdt-dev
> > >
> > >
> > > _______________________________________________
> > > cdt-dev mailing list
> > > cdt-dev@xxxxxxxxxxx
> > > https://dev.eclipse.org/mailman/listinfo/cdt-dev
> > _______________________________________________
> > cdt-dev mailing list
> > cdt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-dev
> >
> >
> > _______________________________________________
> > cdt-dev mailing list
> > cdt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-dev
> >
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev