From: julia.lawall@lip6.fr (Julia Lawall) Date: Wed, 8 Oct 2014 14:48:37 +0200 (CEST) Subject: [Cocci] Searching for pass-through functions In-Reply-To: <54352C21.3050309@users.sourceforge.net> References: <54303340.3090901@users.sourceforge.net> <54305719.1050304@users.sourceforge.net> <54312F70.3080809@users.sourceforge.net> <54313662.8000402@users.sourceforge.net> <543522B0.9020700@users.sourceforge.net> <5435279E.2070901@users.sourceforge.net> <54352C21.3050309@users.sourceforge.net> Message-ID: To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr On Wed, 8 Oct 2014, SF Markus Elfring wrote: > > I see no reason why a regular expression would be more usefu than a simple > > list of names. > > Would you like to suggest an approach for a search pattern that will work better > to exclude (!) some functions with a SmPL disjunction instead of a construction > with a long regular expression in a constraint? @@ identifier other_functions; @@ ( \(function\|names\|that\|are\|of\|no\|interest\) | * other_functions ) (...) > > That is, I would expect that the names have nothing to do with each other. > > Their relationship was determined by the shown analysis. Sure, but the only interest of a regular expression is to express, eg all of the functions that have a name that ends in "alloc" in a concise way. julia