summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2023-11-28 15:16:40 +0100
committerBenBE <BenBE@geshi.org>2023-12-26 15:14:19 +0100
commit9ee8a7ca64799c01f5aed9c421178e65bcfb3204 (patch)
tree93303ade9a63d49f7ae90227476ae7c2f25f313f
parente56089e1fa880064999ed6881e93f500445eacfb (diff)
Force to keep explicit forward declarations
-rw-r--r--Process.h4
-rw-r--r--Row.h6
-rw-r--r--Settings.h4
-rw-r--r--Table.h6
4 files changed, 10 insertions, 10 deletions
diff --git a/Process.h b/Process.h
index bcafc81a..3903a407 100644
--- a/Process.h
+++ b/Process.h
@@ -44,8 +44,8 @@ typedef enum ProcessState_ {
SLEEPING
} ProcessState;
-struct Machine_;
-struct Settings_;
+struct Machine_; // IWYU pragma: keep
+struct Settings_; // IWYU pragma: keep
/* Holds information about regions of the cmdline that should be
* highlighted (e.g. program basename, delimiter, comm). */
diff --git a/Row.h b/Row.h
index c3ae56f0..951f998c 100644
--- a/Row.h
+++ b/Row.h
@@ -26,9 +26,9 @@ extern uint8_t Row_fieldWidths[LAST_RESERVED_FIELD];
extern int Row_pidDigits;
extern int Row_uidDigits;
-struct Machine_;
-struct Settings_;
-struct Table_;
+struct Machine_; // IWYU pragma: keep
+struct Settings_; // IWYU pragma: keep
+struct Table_; // IWYU pragma: keep
/* Class representing entities (such as processes) that can be
* represented in a tabular form in the lower half of the htop
diff --git a/Settings.h b/Settings.h
index d3ee57a2..61696064 100644
--- a/Settings.h
+++ b/Settings.h
@@ -23,8 +23,8 @@ in the source distribution for its full text.
#define CONFIG_READER_MIN_VERSION 3
-struct DynamicScreen_;
-struct Table_;
+struct DynamicScreen_; // IWYU pragma: keep
+struct Table_; // IWYU pragma: keep
typedef struct {
const char* name;
diff --git a/Table.h b/Table.h
index aec66c49..ac6cc361 100644
--- a/Table.h
+++ b/Table.h
@@ -19,9 +19,9 @@ in the source distribution for its full text.
#include "Vector.h"
-struct Machine_;
-struct Panel_;
-struct Row_;
+struct Machine_; // IWYU pragma: keep
+struct Panel_; // IWYU pragma: keep
+struct Row_; // IWYU pragma: keep
typedef struct Table_ {
/* Super object for emulated OOP */

© 2014-2024 Faster IT GmbH | imprint | privacy policy