<div dir="ltr">Plus one for this question...<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Sep 19, 2013 at 2:32 PM, Vladimir <span dir="ltr"><<a href="mailto:VladimirPlyashkun@yandex.ru" target="_blank">VladimirPlyashkun@yandex.ru</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone! Maybe is there some method like currNode->nextNode() ?<br>
For example, i have this code:<br>
<br>
//some code here<br>
for(int i = 0; i < 10; ++i) { /* some code */ }<br>
int var2;<br>
//some code here<br>
<br>
For example, i have an overriden method<br>
<br>
bool TraverseForStmt(clang::ForStmt* forStmt)<br>
{<br>
š š // here i could get a forBody by calling forStmt->getBody().<br>
š š // i could get šparents by calling method on ASTContext<br>
š š// but how to get next node (get node after forStmt i.e. get 'int var2'<br>
node)?<br>
š š//My task is to know that some nodes comes after forStmt.<br>
}<br>
I read documentation, but have not found an answear.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://clang-developers.42468.n3.nabble.com/How-get-next-node-from-current-node-in-AST-tp4034572.html" target="_blank">http://clang-developers.42468.n3.nabble.com/How-get-next-node-from-current-node-in-AST-tp4034572.html</a><br>


Sent from the Clang Developers mailing list archive at Nabble.com.<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Thank You.<br>Madhur D. Amilkanthwar<br>RISE lab,<br>IIT Madras.<br>
</div>