Coccinelle: doubletest: reduce side effect false positives
authorJulia Lawall <Julia.Lawall@lip6.fr>
Fri, 3 Aug 2018 16:32:11 +0000 (18:32 +0200)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 13 Aug 2018 23:58:49 +0000 (08:58 +0900)
commit09d4d9648bd01a4c124fcc30dd0c31503975e8c2
tree8060cb4a4b28c630f6afc8fc5a9be1307e14b58a
parentd6c6ab93e17f139c9b7f9b077307ebddc05a7990
Coccinelle: doubletest: reduce side effect false positives

Ensure that the cited expression is not a function call or an
assignment to reduce the chance of false positives.

Slightly modify the warning message to indicate another source
of false positves.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/coccinelle/tests/doubletest.cocci