zephyr/scripts/coccinelle
Yasushi SHOJI 2b32e47a9a scripts: coccinelle: Fix parse error
The commit coccinelle/coccinelle@47bd4cae52 changed a behavior of
parsing right before coccinelle v1.1.0.  With the commit, the current
scripts under scripts/coccinelle/ errors out with:

   minus: parse error:
     File ".../zephyr/scripts/coccinelle/deref_null.cocci",
     line 25, column 42, charpos = 666
     around = '...',
     whole content =  (E != NULL && ...) ? <+...E->f@p1...+> : ...

I've already raised an issue upstream coccinelle/coccinelle#257.  But
Debian is already shipping v1.1.0 and we need a fix.

The proposed fix doesn't change the semantics, it just explicitly
states that the rule is an expression.

Signed-off-by: Yasushi SHOJI <yashi@spacecubics.com>
2021-04-14 14:18:02 -04:00
..
array_size.cocci
boolean.cocci coccinelle: Add script to check rule 14.4 2021-04-08 07:56:28 -04:00
const_config_info.cocci
deref_null.cocci scripts: coccinelle: Fix parse error 2021-04-14 14:18:02 -04:00
find_dev_usage.cocci
find_functions.cocci
identifier_length.cocci scripts: coccinelle: Add guideline number on a script output 2021-04-08 07:56:28 -04:00
ignore_return.cocci
int_ms_to_timeout.cocci
irq_lock.cocci
macros.h
mini_lock.cocci
ms_timeout.cocci
noderef.cocci
reserved_names.cocci
returnvar.cocci
same_identifier.cocci
semicolon.cocci
unsigned_lesser_than_zero.cocci
unsigned_shift.cocci
unsigned_suffix.cocci