<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Mon, Jun 27, 2016 at 3:15 PM Farzad Sadeghi via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My question is regarding the actual return value of<br>
`ASTContext::getParents`. the Doxygen documentation says it returns<br>
the parents of a given `Node`. How can one `Node` have more than one<br>
parent? or does it just mean ancestors?<br>
I also tested it and it only returns one parent node for each given<br>
node and those nodes all have only one parent.<br></blockquote><div><br></div><div>Both in lambdas and template instantiations a node can have more than one parent (as multiple nodes share subexpressions).</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
--<br>
Farzad Sadeghi<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">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/mailman/listinfo/cfe-dev</a><br>
</blockquote></div></div>