<div dir="ltr">There is not, but it is very easy to do one, the same way as you said:<div><br></div><div>forStmt(unless(hasDescendant(forStmt()))) and forStmt(unless(hasAncestor(forStmt()))) should do the work</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-29 12:33 GMT-07:00 alireza nazari via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi,<br><br></div>Is there any way to use statement matcher that can directly result nodes which are innermost loops? Basically I want to add a piece of code inside the inner most loops and outside of the outermost loops(loops which have no forstmt descendent and loops which have no forstmt ancestor.) Is any StatementMatcher that can result any of them?<br><br></div>Thank you,<br></div>Alireza<br></div>
<br>______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>