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

Farzad Sadeghi via cfe-dev cfe-dev at lists.llvm.org
Fri Nov 25 04:55:06 PST 2016


I'm not sure if I understand. Could you please explain what are the
syntactic and semantic forms for initListExpr?

On 11/25/16, Olivier Goffart <olivier at woboq.com> wrote:
> 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
>
>


-- 
Farzad Sadeghi



More information about the cfe-dev mailing list