<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">I have been looking for a way to give traverse nodes in DFS using ast matchers and libtooling. For example I have a below AST -</div><div class=""><br class=""></div><div class=""><font color="#000000" face="arial, sans-serif" size="2" class="">-BinaryOperator-</font></div><div class=""><font color="#000000" face="arial, sans-serif" size="2" class="">   -BinaryOperator-</font></div><div class=""><font color="#000000" face="arial, sans-serif" size="2" class="">      -<span style="font-variant-ligatures: no-common-ligatures;" class="">IntegerLiteral</span></font></div><div class=""><font color="#000000" face="arial, sans-serif" size="2" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">  -</span><span style="font-variant-ligatures: no-common-ligatures;" class="">IntegerLiteral</span></font></div><div class=""><font color="#000000" face="arial, sans-serif" size="2" class=""> -<span style="font-variant-ligatures: no-common-ligatures;" class="">IntegerLiteral</span></font></div><div class=""><font color="#000000" face="arial, sans-serif" size="2" class=""><span style="font-variant-ligatures: no-common-ligatures;" class=""><br class=""></span></font></div><div class=""><font color="#000000" face="arial, sans-serif" size="2" class=""><span style="font-variant-ligatures: no-common-ligatures;" class="">Before matching above binaryOperator Node, I want to match the inner binaryOperator node. Depth could be any, I want to handle innermost node first. Is there any</span></font><span style="font-variant-ligatures: no-common-ligatures; font-family: arial, sans-serif; font-size: small;" class=""> way to achieve this using clang ast matchers and libtooling. </span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures; font-family: arial, sans-serif; font-size: small;" class=""><br class=""></span></div></body></html>