RecursiveASTVisitor and extensibility


So I’m curious what the rationale is for having the bool Traverse*Helper(T *);, etc. methods in RecursiveASTVisitor be private might be. Because these cannot be overloaded nor accessed by a derived visitor, it necessitates code duplication to define a custom traversal.

Bottom line is whether the access spec can be changed to protected or not.