[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cdt-dev] The best way to create IASTTranslationUnit
|
Yes, getting the AST off the CModel will be the only way going forward
as I clean up the project model.
Cheers,
Doug
> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Schorn, Markus
> Sent: Tuesday, October 14, 2008 9:16 AM
> To: CDT General developers list.
> Subject: RE: [cdt-dev] The best way to create IASTTranslationUnit
>
> I recommend to create the AST using
> ITranslationUnit.getAST(IIndex, int style).
> Doing that the parser will pick up the same configuration as
> the indexer would.
> With the 'style' argument you can choose to skip
> indexed-headers in which case they are pulled in from the
> index (style AST_SKIP_INDEXED_HEADERS).
>
> Markus.
>
> > -----Original Message-----
> > From: cdt-dev-bounces@xxxxxxxxxxx
> > [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Dmitry Smirnov
> > Sent: Tuesday, October 14, 2008 2:36 PM
> > To: CDT General developers list.
> > Subject: [cdt-dev] The best way to create IASTTranslationUnit
> > Importance: Low
> >
> > Hi,
> >
> > I'm wondering what is the best way to create the
> IASTTranslationUnit
> > from performance perspective?
> >
> > When I create it with
> > CCorePlugin.getDefault().getDOM().getTranslationUnit(file,
> > false); it takes up to few seconds.
> >
> > At the same time, it seems I do not use the index at all though my
> > project has the index. Is it possible to use it for AST?
> Will it speed
> > up the ASTTranslationUnit creation process?
> >
> > Dmitry
> > _______________________________________________
> > 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
>