summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-12-15 18:18:10 +0100
committerDavid Robillard <d@drobilla.net>2020-12-15 19:32:03 +0100
commite9fccb983f4eb0fde2ffc7f25302da08eb5e8853 (patch)
treed619f1c93f7057ec286a84f3bdbf4a6d72115d2f
parenteba98a8e4a228e28f693fb5048c109ee423e3e46 (diff)
downloadganv-e9fccb983f4eb0fde2ffc7f25302da08eb5e8853.tar.gz
ganv-e9fccb983f4eb0fde2ffc7f25302da08eb5e8853.tar.bz2
ganv-e9fccb983f4eb0fde2ffc7f25302da08eb5e8853.zip
Suppress include warnings in headers when used in other projects
-rw-r--r--ganv/Node.hpp2
-rw-r--r--ganv/box.h2
-rw-r--r--ganv/circle.h2
-rw-r--r--ganv/edge.h2
-rw-r--r--ganv/group.h2
-rw-r--r--ganv/module.h2
-rw-r--r--ganv/node.h2
-rw-r--r--ganv/port.h2
-rw-r--r--ganv/widget.h2
-rw-r--r--ganv/wrap.hpp10
10 files changed, 27 insertions, 1 deletions
diff --git a/ganv/Node.hpp b/ganv/Node.hpp
index 311385e..95c66a4 100644
--- a/ganv/Node.hpp
+++ b/ganv/Node.hpp
@@ -28,7 +28,7 @@
#include <gobject/gclosure.h>
#include <sigc++/signal.h>
-GANV_GLIB_WRAP(Node)
+GANV_GLIB_WRAP(Node) // IWYU pragma: keep
namespace Ganv {
diff --git a/ganv/box.h b/ganv/box.h
index c4a15b4..11e0662 100644
--- a/ganv/box.h
+++ b/ganv/box.h
@@ -13,6 +13,8 @@
* with Ganv. If not, see <http://www.gnu.org/licenses/>.
*/
+// IWYU pragma: no_include "ganv-private.h"
+
#ifndef GANV_BOX_H
#define GANV_BOX_H
diff --git a/ganv/circle.h b/ganv/circle.h
index 6f4a301..23bfa2d 100644
--- a/ganv/circle.h
+++ b/ganv/circle.h
@@ -13,6 +13,8 @@
* with Ganv. If not, see <http://www.gnu.org/licenses/>.
*/
+// IWYU pragma: no_include "ganv-private.h"
+
#ifndef GANV_CIRCLE_H
#define GANV_CIRCLE_H
diff --git a/ganv/edge.h b/ganv/edge.h
index a8f7657..8bf8ad0 100644
--- a/ganv/edge.h
+++ b/ganv/edge.h
@@ -13,6 +13,8 @@
* with Ganv. If not, see <http://www.gnu.org/licenses/>.
*/
+// IWYU pragma: no_include "ganv-private.h"
+
#ifndef GANV_EDGE_H
#define GANV_EDGE_H
diff --git a/ganv/group.h b/ganv/group.h
index d21a8ed..72efa3c 100644
--- a/ganv/group.h
+++ b/ganv/group.h
@@ -13,6 +13,8 @@
* with Ganv. If not, see <http://www.gnu.org/licenses/>.
*/
+// IWYU pragma: no_include "ganv-private.h"
+
#ifndef GANV_GROUP_H
#define GANV_GROUP_H
diff --git a/ganv/module.h b/ganv/module.h
index 59c1909..969965b 100644
--- a/ganv/module.h
+++ b/ganv/module.h
@@ -13,6 +13,8 @@
* with Ganv. If not, see <http://www.gnu.org/licenses/>.
*/
+// IWYU pragma: no_include "ganv-private.h"
+
#ifndef GANV_MODULE_H
#define GANV_MODULE_H
diff --git a/ganv/node.h b/ganv/node.h
index 03cce5f..03c5982 100644
--- a/ganv/node.h
+++ b/ganv/node.h
@@ -13,6 +13,8 @@
* with Ganv. If not, see <http://www.gnu.org/licenses/>.
*/
+// IWYU pragma: no_include "ganv-private.h"
+
#ifndef GANV_NODE_H
#define GANV_NODE_H
diff --git a/ganv/port.h b/ganv/port.h
index bfcd9da..8bf4a80 100644
--- a/ganv/port.h
+++ b/ganv/port.h
@@ -13,6 +13,8 @@
* with Ganv. If not, see <http://www.gnu.org/licenses/>.
*/
+// IWYU pragma: no_include "ganv-private.h"
+
#ifndef GANV_PORT_H
#define GANV_PORT_H
diff --git a/ganv/widget.h b/ganv/widget.h
index 213e669..af31576 100644
--- a/ganv/widget.h
+++ b/ganv/widget.h
@@ -13,6 +13,8 @@
* with Ganv. If not, see <http://www.gnu.org/licenses/>.
*/
+// IWYU pragma: no_include "ganv-private.h"
+
/* Based on GnomeCanvasWidget, by Federico Mena <federico@nuclecu.unam.mx>
* Copyright 1997-2000 Free Software Foundation
*/
diff --git a/ganv/wrap.hpp b/ganv/wrap.hpp
index a71be41..0d99308 100644
--- a/ganv/wrap.hpp
+++ b/ganv/wrap.hpp
@@ -13,9 +13,19 @@
* with Ganv. If not, see <http://www.gnu.org/licenses/>.
*/
+// IWYU pragma: no_include "gettext.h"
+
#ifndef GANV_WRAP_HPP
#define GANV_WRAP_HPP
+#include "ganv/item.h"
+
+#include <glib-object.h> // IWYU pragma: keep
+#include <glib.h> // IWYU pragma: keep
+#include <gobject/gclosure.h> // IWYU pragma: keep
+#include <sigc++/functors/mem_fun.h> // IWYU pragma: keep
+#include <sigc++/signal.h> // IWYU pragma: keep
+
#define CONNECT_PROP_SIGNAL(gobj, name, notify, handler) \
g_signal_connect(gobj, "notify::" #name, \
G_CALLBACK(notify), &_signal_##name); \