Community
Participate
Working Groups
Build Identifier: Ecliupse 3.7.1 - CDT 8.0.0.201106081058 I built a AST visitor, enabling only "shouldVisitStatements". The "public int visit(IASTStatement statement)" is called for "while statements", but the "public int leave(IASTStatement statement)" is not called. This happens only in C++ code (not C). I believe the problem is caused by a typo in the "CPPASTWhileStatement" class, in the function "accept(ASTVisitor action)" (line 117, in my source version). It states "if (action.shouldVisitExpressions)" instead of "if (action.shouldVisitStatements)". Reproducible: Always
Thanks!
*** cdt git genie on behalf of Markus Schorn *** Bug 370637: Visiting while statements. [*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=105de6f15d2ff84d16616098e43ed76ba93d1ef5