Now that we have RecursiveASTVisitor::shouldVisitImplicitCode(), it would be good to allow RAV to visit CXXCtorInitializer objects for which isWritten() returns false (i.e., the initializers that are implicitly added -- in C++98 that can happen because the user didn't mention a direct subobject that has a constructor, I'm not sure if it can also happen in C++11 when NSDMIs are used).
The change to do this is a one-liner in RecursiveASTVisitor<T>::TraverseConstructorInitializer. This is the only use of isWritten() in RAV. The attached patch includes a test for the new functionality. Comments on either style or substance would be appreciated. -- James
rav-iswritten.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
