From mboxrd@z Thu Jan 1 00:00:00 1970 From: elfring@users.sourceforge.net (SF Markus Elfring) Date: Tue, 31 Mar 2015 15:15:25 +0200 Subject: [Cocci] Patching nested if's? In-Reply-To: References: Message-ID: <551A9DED.3050604@users.sourceforge.net> To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr > I've been able so far to replace the if (t also replaces lines with it (expresion < constant) elsewhere. Would you like to consider any additional SmPL constraints? > Which is why I'd like to constrain the pacth to this 3 nested > ifs pattern. Do you really want to deal only with a specific nesting level? > if ( > - t < M > + myfunc() How do you think about to add also " == 0" here? > ) > { > ... > } else { > ... > } Would you like to replace these ellipsis by metavariables of the type "statement"? Regards, Markus