[cfe-dev] how to match AST nodes in order
SANGEETA CHOWDHARY via cfe-dev
cfe-dev at lists.llvm.org
Thu Sep 5 14:17:32 PDT 2019
Hello,
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 -
-BinaryOperator-
-BinaryOperator-
-IntegerLiteral
-IntegerLiteral
-IntegerLiteral
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 way to achieve this using clang ast matchers and libtooling.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190905/76f48054/attachment.html>
More information about the cfe-dev
mailing list