From: Denton Liu Date: Tue, 23 Apr 2019 23:40:48 GMT Subject: [PATCH v4 4/4] cocci: prevent extern function declarations Message-ID: <23ed6ad679bb0e631872f229702934cd9ea55e20.1556062365.git.liu.denton@gmail.com> In-Reply-To: Since function declarations already implicitly imply extern, create a Coccinelle rule which removes the redundant extern. Signed-off-by: Denton Liu --- contrib/coccinelle/noextern.cocci | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 contrib/coccinelle/noextern.cocci diff --git a/contrib/coccinelle/noextern.cocci b/contrib/coccinelle/noextern.cocci new file mode 100644 index 0000000000..8cb39ac947 --- /dev/null +++ b/contrib/coccinelle/noextern.cocci @@ -0,0 +1,6 @@ +@@ +type T; +identifier f; +@@ +- extern + T f(...); -- 2.21.0.1000.g7817e26e80