From mboxrd@z Thu Jan 1 00:00:00 1970 From: julia.lawall@lip6.fr (Julia Lawall) Date: Thu, 19 Feb 2015 17:54:32 +0100 (CET) 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: To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr > My personal view, if gcc can parse&compile it, spatch should correctly parse > it. There seem to be some discrepancies currently. Parsing is hard. Currently, our view is if it is in the Linux kernel source code, we would like to try to parse it maybe. There will be some work on the parser in the next few months, however. Actually, the current issue is not a parsing problem but a matching problem. I guess it could become a parsing problem by just considering the second const to be a comment. julia