You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am learning the excellent tutorial, and I have some confusion in UnusedForLoopVar Tool. In UnusedForLoopVar especially in the implementation of RecursiveASTVisitor, the TraverseForStmt() is used to visit the ForStmt in AST, rather than VisitForStmt(). What's the difference between these two methods on visiting the AST nodes? Why would UnusedForLoopVar use TraverseForStmt() rather than VisitForStmt()?
Thank you very much!!!
The text was updated successfully, but these errors were encountered:
Hi,
I am learning the excellent tutorial, and I have some confusion in UnusedForLoopVar Tool. In UnusedForLoopVar especially in the implementation of RecursiveASTVisitor, the
TraverseForStmt()
is used to visit the ForStmt in AST, rather thanVisitForStmt()
. What's the difference between these two methods on visiting the AST nodes? Why would UnusedForLoopVar useTraverseForStmt()
rather thanVisitForStmt()
?Thank you very much!!!
The text was updated successfully, but these errors were encountered: