Hi,<br>I want to traverse source code of "C" language.<br>i want to extract all the "for loops" in given C file. After extraction loop body i want to visit its body statements.<br>then i want to extract all the functions one by one in the given source file.<br>
<br>i want to do these using clang.<br>what will be better? writing clang-plugin or separate program like whole program analysis?<br>i may need to visit each and every statement of the function.<br><br>how can i write AST walker that can walk through all the node?<br>
is there any sub type walker for loops and functions only(means that will visit only loops of functions)?<br clear="all"><br>-- <br><b style="color: rgb(0, 0, 153);">___________________________________________________________________________</b><br>
<span style="color: rgb(0, 0, 153);">-----------------------------------------------------------------------------------------------------------------------------</span><br><b>Jignesh Vasoya<br>CSE - IIT MADRAS<br>9962248684</b><br>
<br>