From 9ee8a7ca64799c01f5aed9c421178e65bcfb3204 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Tue, 28 Nov 2023 15:16:40 +0100 Subject: Force to keep explicit forward declarations --- Process.h | 4 ++-- Row.h | 6 +++--- Settings.h | 4 ++-- Table.h | 6 +++--- 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 */ -- cgit v1.2.3