<p dir="ltr">This relationship isn't tracked in the it. If you're interested in sibling relationships, you'd need an iterator over the children of the parent. Same as with any c++ container.</p>
<div class="gmail_quote">On Sep 20, 2013 6:46 AM, "Madhur Amilkanthwar" <<a href="mailto:madhur13490@gmail.com">madhur13490@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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" target="_blank">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>
<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>
<br></blockquote></div>