qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 04/30] checkpatch.pl: add common glib defines to type


From: Paolo Bonzini
Subject: [Qemu-devel] [PULL 04/30] checkpatch.pl: add common glib defines to typelist
Date: Wed, 9 May 2018 00:14:21 +0200

From: Peter Xu <address@hidden>

Otherwise it can warn this:

  ERROR: space prohibited between function name and open parenthesis '('

When with things like this:

  typedef gboolean (*it_tree_iterator)(ITValue start, ITValue end);

CC: Paolo Bonzini <address@hidden>
CC: "Daniel P. Berrangé" <address@hidden>
CC: Vladimir Sementsov-Ogievskiy <address@hidden>
CC: Fam Zheng <address@hidden>
Signed-off-by: Peter Xu <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
 scripts/checkpatch.pl | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 5b8735d..e73b4ef 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -265,8 +265,36 @@ our @typeList = (
        qr{${Ident}_handler_fn},
        qr{target_(?:u)?long},
        qr{hwaddr},
+        # external libraries
        qr{xml${Ident}},
        qr{xendevicemodel_handle},
+       # Glib definitions
+       qr{gchar},
+       qr{gshort},
+       qr{glong},
+       qr{gint},
+       qr{gboolean},
+       qr{guchar},
+       qr{gushort},
+       qr{gulong},
+       qr{guint},
+       qr{gfloat},
+       qr{gdouble},
+       qr{gpointer},
+       qr{gconstpointer},
+       qr{gint8},
+       qr{guint8},
+       qr{gint16},
+       qr{guint16},
+       qr{gint32},
+       qr{guint32},
+       qr{gint64},
+       qr{guint64},
+       qr{gsize},
+       qr{gssize},
+       qr{goffset},
+       qr{gintptr},
+       qr{guintptr},
 );
 
 # This can be modified by sub possible.  Since it can be empty, be careful
-- 
1.8.3.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]