Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Get ITranslationUnit from ASTTranslationUnit
Get ITranslationUnit from ASTTranslationUnit [message #1725627] Sat, 05 March 2016 10:22
Gabriela Stefan is currently offline Gabriela StefanFriend
Messages: 1
Registered: March 2016
Junior Member
Hi,

I have a question about getting an ITRanslationUnit from an ASTTranslationUnit using the method getOriginatingTranslationUnit(). Some nodes in the AST contain macro expansions, and when calling this method, i get the file (e.g: header files) with the macro definitions, and not the file where the macro expands.

What is the behavior of this method regarding macros, and how can i get the right ITranslationUnit ? Also, is there another solution to get ITranslationUnit, apart from this method ?

Thank you
Previous Topic:Arduino Feature Request - Support for old-style board plugins
Next Topic:Avoid auto-format on #include directives
Goto Forum:
  


Current Time: Tue Mar 19 10:37:40 GMT 2024

Powered by FUDForum. Page generated in 0.02201 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top