https://github.com/5chmidti commented:

> Side note, for future knowledge, what do you mean by
> 
> > it is technically not in the format of the RecursiveASTVisitor and may be 
> > confusing
> 
> ? Is there a guide that can point out what format Visit... should have?

My bad, it actually was named correct. But, the format is: `Traverse<Name>`, 
`WalkUpFrom<Name>` and `Visit<Name>`, where `<Name>` is replaced with AST nodes.
https://clang.llvm.org/doxygen/classclang_1_1RecursiveASTVisitor.html

However, https://clang.llvm.org/doxygen/classclang_1_1RecursiveASTVisitor.html 
says that
> These three method groups are tiered (Traverse* > WalkUpFrom* > Visit*). A 
> method (e.g. Traverse*) may call methods from the same tier (e.g. other 
> Traverse*) or one tier lower (e.g. WalkUpFrom*).

So, calling `Visit` from `Traverse` may result in some issues.

> Any updated feedback on this?

I reviewed the code again, but which of the two approaches to take is still in 
question. (ping for reviewers)

https://github.com/llvm/llvm-project/pull/102299
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to