Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Getting ITranslationUnit from IASTTranslationUnit

I was waiting for the IBM guys to respond since I thought they had a requirement to be able to run the parser and AST outside the CDT and without the ICElement hierarchy. But since they didn’t respond, I must be mistaken.


getCElement() or getCTranslationUnit()?


Too bad we didn’t make these PlatformObjects. Then you’d just use getAdapter().





From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Sergey Prigogin
Sent: Monday, March 07, 2011 2:05 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Getting ITranslationUnit from IASTTranslationUnit


Since nobody responded I assume that there is no good reason not to have a method in IASTTranslationUnit returning the corresponding ITranslationUnit. I'm going to add such method. Any suggestions for the name?



On Fri, Mar 4, 2011 at 5:12 PM, Sergey Prigogin <eclipse.sprigogin@xxxxxxxxx> wrote:

Does anybody know why IASTTranslationUnit doesn't provide a method returning the ITranslationUnit from which the AST was built? Such method would be handy in many places, for example in CodanCReconciler.reconciled method.




Back to the top