From mboxrd@z Thu Jan 1 00:00:00 1970 From: elfring@users.sourceforge.net (SF Markus Elfring) Date: Sat, 8 Aug 2015 10:41:12 +0200 Subject: [Cocci] Finding designated initialisers with SmPL In-Reply-To: References: <55A62135.90206@users.sourceforge.net> <55AA3B1F.5020807@users.sourceforge.net> <55ACDC1C.1040005@users.sourceforge.net> <55ACF739.4020802@users.sourceforge.net> <55AD58A7.6030507@users.sourceforge.net> <55ADDD03.6020401@users.sourceforge.net> <55C5B85A.8060508@users.sourceforge.net> Message-ID: <55C5C0A8.3020500@users.sourceforge.net> To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr >>> @show_designated_initialisers@ >>> identifier allocation, element, structure_type, structure_var; >>> @@ >>> <+... >>> *struct structure_type structure_var = { ..., .element = allocation(...), ... }; >>> ...+> > > Why do you have <+... ...+> around the pattern? I tried to express that the special case "nothing found" should be excluded here. I do also not get the expected analysis result if I omit the SmPL ellipsis for such an use case. How should I improve this approach then? Regards, Markus