[cfe-dev] A question on initListExpr() matcher

Olivier Goffart via cfe-dev cfe-dev at lists.llvm.org
Fri Nov 25 04:22:10 PST 2016


On Mittwoch, 23. November 2016 07:34:02 CET Manuel Klimek via cfe-dev wrote:
> Adding Richard,
> 
> this is indeed a good question.
> Looking at the dumps, it seems like match 2-4 have InitListExpr nodes that
> do not show up in the larger InitListExpr.
> Richard, is that intentional in the AST?

That's because InitListExpr has booth a semantic and syntactic form.
Things like the RecursiveASTVisitor visit both forms. 

-- 
Olivier




More information about the cfe-dev mailing list