From mboxrd@z Thu Jan 1 00:00:00 1970 From: elfring@users.sourceforge.net (SF Markus Elfring) Date: Thu, 19 Feb 2015 19:30:09 +0100 Subject: [Cocci] Finding several type qualifiers with SmPL? In-Reply-To: <34d433ed87a248168742bdfe249d4951@BN1BFFO11FD053.protection.gbl> References: <54E5A820.1030001@users.sourceforge.net> <34d433ed87a248168742bdfe249d4951@BN1BFFO11FD053.protection.gbl> Message-ID: <54E62BB1.6000705@users.sourceforge.net> To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr >> Another source code example: >> static const struct data const* my_pointer; > > That would still be just a duplicate, wouldn't it. Would it make sense that the semantic patch language can also handle such misplaced stars or type qualifiers? > To actually make sense it would have to be: > static const struct data * const my_pointer; This kind of source code will be more useful together with an initialisation expression, won't it? Can you imagine more nice transformations here? Regards, Markus