From e9fccb983f4eb0fde2ffc7f25302da08eb5e8853 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 15 Dec 2020 18:18:10 +0100 Subject: Suppress include warnings in headers when used in other projects --- ganv/Node.hpp | 2 +- ganv/box.h | 2 ++ ganv/circle.h | 2 ++ ganv/edge.h | 2 ++ ganv/group.h | 2 ++ ganv/module.h | 2 ++ ganv/node.h | 2 ++ ganv/port.h | 2 ++ ganv/widget.h | 2 ++ ganv/wrap.hpp | 10 ++++++++++ 10 files changed, 27 insertions(+), 1 deletion(-) 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 #include -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 . */ +// 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 . */ +// 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 . */ +// 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 . */ +// 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 . */ +// 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 . */ +// 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 . */ +// 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 . */ +// IWYU pragma: no_include "ganv-private.h" + /* Based on GnomeCanvasWidget, by Federico Mena * 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 . */ +// IWYU pragma: no_include "gettext.h" + #ifndef GANV_WRAP_HPP #define GANV_WRAP_HPP +#include "ganv/item.h" + +#include // IWYU pragma: keep +#include // IWYU pragma: keep +#include // IWYU pragma: keep +#include // IWYU pragma: keep +#include // IWYU pragma: keep + #define CONNECT_PROP_SIGNAL(gobj, name, notify, handler) \ g_signal_connect(gobj, "notify::" #name, \ G_CALLBACK(notify), &_signal_##name); \ -- cgit v1.2.1