UPSTREAM: Coccinelle: noderef: Add new rules and correct the old rule
authorVaishali Thakkar <vaishali.thakkar@oracle.com>
Tue, 24 May 2016 04:19:17 +0000 (09:49 +0530)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 12 Jul 2017 13:17:10 +0000 (21:17 +0800)
commit24b3eaac3a58df83dde048310994b4570d5ea3d8
tree3ca0081ebc7c1a01be60d777eaa36a3f8b5a7015
parent265269d9da5cf3de93ae2bc0d0449f06f6a40a8d
UPSTREAM: Coccinelle: noderef: Add new rules and correct the old rule

Add new rules to detect the cases where sizeof is used in
function calls as a argument.

Also, for the patch mode third rule should behave same as
second rule with arguments reversed. So, change that as well.

Change-Id: Id50b413c43d1c7f8c17a8cd784aa4d9d90046e62
Signed-off-by: Vaishali Thakkar <vaishali.thakkar@oracle.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Michal Marek <mmarek@suse.com>
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
(cherry picked from commit bf56cc04ef97c8ec536e3fcd16fc57902cba339f)
scripts/coccinelle/misc/noderef.cocci