[cfe-dev] ASTContext::getParents() - ancestors or parents?

Manuel Klimek via cfe-dev cfe-dev at lists.llvm.org
Mon Jun 27 06:26:40 PDT 2016


On Mon, Jun 27, 2016 at 3:15 PM Farzad Sadeghi via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> My question is regarding the actual return value of
> `ASTContext::getParents`. the Doxygen documentation says it returns
> the parents of a given `Node`. How can one `Node` have more than one
> parent? or does it just mean ancestors?
> I also tested it and it only returns one parent node for each given
> node and those nodes all have only one parent.
>

Both in lambdas and template instantiations a node can have more than one
parent (as multiple nodes share subexpressions).


>
> --
> Farzad Sadeghi
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160627/d1c43815/attachment.html>


More information about the cfe-dev mailing list