Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] PDOM, IBinding, IAST object madness

Thanks! I'll look into these.

On Tue, Jul 3, 2012 at 4:52 PM, Sergey Prigogin
<eclipse.sprigogin@xxxxxxxxx> wrote:
> The key methods are
> org.eclipse.cdt.core.dom.ast.IASTTranslationUnit.getDeclarationsInAST(IBinding)
> and
> org.eclipse.cdt.core.dom.ast.IASTTranslationUnit.getDefinitionsInAST(IBinding).
> There are also
> org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.SemanticUtil.mapToAST(IType,
> IASTNode),
> org.eclipse.cdt.internal.core.dom.parser.cpp.CPPASTTranslationUnit.mapToASTScope(IIndexScope),
> and
> org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPSemantics.isSameFunction(ICPPFunction,
> IASTDeclarator).
>
> -sergey
>
> On Tue, Jul 3, 2012 at 12:20 PM, Joe <jcccnet.cl@xxxxxxxxx> wrote:
>>
>> Is there a document that explains how to go back and forth between
>> these models?
>>
>> I've reverse engineered (commentless code) how to get from an IAST to
>> an IBinding to a  PDOM object.
>>
>> Now I'm looking at how to go back from a PDOM to an IAST node/name.
>> Before I start asking about specific use cases is there some
>> documentation I've been missing?
>>
>> I've read these:
>>
>> http://wiki.eclipse.org/CDT/designs/PDOM/Overview
>>
>> http://wiki.eclipse.org/CDT/designs/PDOM/History
>>
>> http://wiki.eclipse.org/CDT/designs/PDOM
>>
>> http://wiki.eclipse.org/CDT/designs/Overview_of_Parsing
>>
>> http://lnu.diva-portal.org/smash/get/diva2:220298/FULLTEXT01
>>
>>
>> http://www.eclipsecon.org/2008/sub/attachments/Static_Analysis_in_PTP_with_CDT.pdf
>>
>> http://wiki.eclipse.org/images/c/c7/CDT_APIs_for_code_introspection.pdf
>>
>>
>> http://www.slideshare.net/dschaefer/code-analysis-and-refactoring-with-cdt-presentation
>>
>> http://wiki.eclipse.org/CDT/designs/StaticAnalysis
>>
>> http://cdt-devel-faq.wikidot.com/#toc4
>> _______________________________________________
>> 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
>


Back to the top