Re: Life time of AST elements.

2015-10-12 Thread Frank Redeker
Am 12.10.2015 um 14:37 schrieb Frank Redeker: > Hello all, > > I'm writing a tool to analyze the call hierarchy of functions (methods) > using ClangTool. > > My idea is to collect the TranslationUnitDecls given to my own > ASTCosumer's HandleTranslationUnit method and traverse them later when > C

Life time of AST elements.

2015-10-12 Thread Frank Redeker
Hello all, I'm writing a tool to analyze the call hierarchy of functions (methods) using ClangTool. My idea is to collect the TranslationUnitDecls given to my own ASTCosumer's HandleTranslationUnit method and traverse them later when ClangTool.run() has finished. But it seems that the AST nodes