Re: [Cocci] qualified function rule

2021-01-29 Thread Mansour Moufid
On Wed, Jan 27, 2021 at 3:23 PM James K. Lowden wrote: > > I don't understand how, if it's possible, to qualify a function in a > rule. I want the class of all functions having a parameter of a > particular type. > > The code I'm working with has hundreds of unnecessary casts. Many > functions

Re: [Cocci] qualified function rule

2021-01-27 Thread Julia Lawall
On Wed, 27 Jan 2021, James K. Lowden wrote: > I don't understand how, if it's possible, to qualify a function in a > rule. I want the class of all functions having a parameter of a > particular type. > > The code I'm working with has hundreds of unnecessary casts. Many > functions take a

[Cocci] qualified function rule

2021-01-27 Thread James K. Lowden
I don't understand how, if it's possible, to qualify a function in a rule. I want the class of all functions having a parameter of a particular type. The code I'm working with has hundreds of unnecessary casts. Many functions take a void* parameter, but are nonetheless called by casting the