Re: [cocci] [RFC] Detecting unchecked return values (with SmPL)?

From: Markus Elfring

Date: Mon Nov 30 2026 - 10:58:37 EST


>> Would you find the following SmPL script variant more appropriate for
>> efficient source code searches?
>>
>>
>> @display2@
>> expression e;
>> identifier i;
>> @@
>> (e = i(...)
>> |
>> *i(...)
>> );
>>
>>
>> Would you be looking for more advanced data constraints here?
>
> *i(...);
>
> seemed completely fine. There is no need to consider the other contexts
> in which a funcion call can occur.
Will such information influence the incomplete software documentation any more?

Regards,
Markus