Re: [llvm-dev] RecursiveASTVisitor won't visit all declarations
I think it’s more suitable to ask this question on clang mailing list (cfe-dev)
On Feb 5, 2019, at 12:29 AM, Teodor Dermendzhiev via llvm-dev <[hidden email]> wrote:
Hi all, I am having problems walking through the syntax tree of a simple header file. With llvm 4.0.1 everything works as expected but after upgrading to 7.0.0 I notice that just a small number of all declarations in the AST are being visited.
when I dump the *tu* variable I get a lot smaller dump with 7.0.0. After investigating further I updated TraverseDeclContextHelper() method in order to print the size of decls() container for every DeclContext we visit: