Hi,<br><br>I would like to implement a set of transformations on Clang AST one after the other. Therefore I want to modify the AST by adding or removing nodes from it.<br>For example, I would like to do first loop-unrolling on the inner loop and add the unrolled copies in the AST and then make other transformations on the AST.<br>
<br>My question: is there a way to clone the stmts in the body of the loop and just go in and modify these copies and add them to the AST.<br><br><br>Best regards,<br>Moataz<br>