[cfe-dev] AST Matcher matches InitListExpr child twice

Ben Liblit via cfe-dev cfe-dev at lists.llvm.org
Tue Jun 13 05:12:03 PDT 2017


Manuel Klimek <klimek at google.com> wrote:
> Generally, there are many reasons you might visit the same node twice - 
> after all, the AST is not a tree, but a graph :)

OK, fair enough.  Thank you for correcting my assumptions about this.

> Generally, use the fact that many nodes have pointer identity (you can 
> deduplicate with a simple set on the pointers).

Understood.  Thanks!



More information about the cfe-dev mailing list