Please sign in to comment.
Add convenience casting for NodeWalker
Summary: It can be a pain to have to cast subclasses of NodeWalker all the time using static_cast and dynamic_cast, especially with auto_ptr's. This adds an overloaded template cast() function for use in subclasses of NodeWalker; so you can do `cast(MyNodeWalkerClass).some_var` to cast your class. It will throw if you pass an invalid class so you can just all NodeWalker* instances without error-checking. Test Plan: Compiles Reviewed By: epriestley
- Loading branch information...