From f38da6ca0cd474d9451c24b8de2e926c8578817f Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Thu, 7 Dec 2023 22:08:22 +0000 Subject: [PATCH] include: add IWYU pragmas in private header files Add Include What You Use "private" pragmas in the private header files exported by babeltrace 2, indicating that should be used instead. Change-Id: I7b7bdde4ab52012b4b57d5c7739e7910a5321f9c Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/11491 Tested-by: jenkins Reviewed-by: Philippe Proulx --- include/babeltrace2/error-reporting.h | 2 ++ include/babeltrace2/func-status.h | 2 ++ include/babeltrace2/graph/component-class-dev.h | 2 ++ include/babeltrace2/graph/component-class.h | 2 ++ include/babeltrace2/graph/component-descriptor-set.h | 2 ++ include/babeltrace2/graph/component.h | 2 ++ include/babeltrace2/graph/connection.h | 2 ++ include/babeltrace2/graph/graph.h | 2 ++ include/babeltrace2/graph/interrupter.h | 2 ++ include/babeltrace2/graph/message-iterator-class.h | 2 ++ include/babeltrace2/graph/message-iterator.h | 2 ++ include/babeltrace2/graph/message.h | 2 ++ include/babeltrace2/graph/port.h | 2 ++ include/babeltrace2/graph/private-query-executor.h | 2 ++ include/babeltrace2/graph/query-executor.h | 2 ++ include/babeltrace2/graph/self-component-class.h | 2 ++ include/babeltrace2/graph/self-component-port.h | 2 ++ include/babeltrace2/graph/self-component.h | 2 ++ include/babeltrace2/graph/self-message-iterator.h | 2 ++ include/babeltrace2/integer-range-set.h | 2 ++ include/babeltrace2/logging-defs.h | 2 ++ include/babeltrace2/logging.h | 2 ++ include/babeltrace2/plugin/plugin-dev.h | 2 ++ include/babeltrace2/plugin/plugin-loading.h | 2 ++ include/babeltrace2/trace-ir/clock-class.h | 2 ++ include/babeltrace2/trace-ir/clock-snapshot.h | 2 ++ include/babeltrace2/trace-ir/event-class.h | 2 ++ include/babeltrace2/trace-ir/event.h | 2 ++ include/babeltrace2/trace-ir/field-class.h | 2 ++ include/babeltrace2/trace-ir/field-path.h | 2 ++ include/babeltrace2/trace-ir/field.h | 2 ++ include/babeltrace2/trace-ir/packet.h | 2 ++ include/babeltrace2/trace-ir/stream-class.h | 2 ++ include/babeltrace2/trace-ir/stream.h | 2 ++ include/babeltrace2/trace-ir/trace-class.h | 4 +++- include/babeltrace2/trace-ir/trace.h | 2 ++ include/babeltrace2/types.h | 2 ++ include/babeltrace2/util.h | 2 ++ include/babeltrace2/value.h | 2 ++ include/babeltrace2/version.h | 2 ++ 40 files changed, 81 insertions(+), 1 deletion(-) diff --git a/include/babeltrace2/error-reporting.h b/include/babeltrace2/error-reporting.h index 43922e23..7c4b1541 100644 --- a/include/babeltrace2/error-reporting.h +++ b/include/babeltrace2/error-reporting.h @@ -4,6 +4,8 @@ * Copyright (C) 2010-2019 EfficiOS Inc. and Linux Foundation */ +/* IWYU pragma: private, include */ + #ifndef BABELTRACE2_ERROR_REPORTING_H #define BABELTRACE2_ERROR_REPORTING_H diff --git a/include/babeltrace2/func-status.h b/include/babeltrace2/func-status.h index bba3882a..806e4bcb 100644 --- a/include/babeltrace2/func-status.h +++ b/include/babeltrace2/func-status.h @@ -4,6 +4,8 @@ * Copyright (C) 2010-2019 EfficiOS Inc. and Linux Foundation */ +/* IWYU pragma: private, include */ + /* * No include guards here: it is safe to include this file multiple * times. diff --git a/include/babeltrace2/graph/component-class-dev.h b/include/babeltrace2/graph/component-class-dev.h index 20ac581a..eaf288f9 100644 --- a/include/babeltrace2/graph/component-class-dev.h +++ b/include/babeltrace2/graph/component-class-dev.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_GRAPH_COMPONENT_CLASS_DEV_H #define BABELTRACE2_GRAPH_COMPONENT_CLASS_DEV_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/graph/component-class.h b/include/babeltrace2/graph/component-class.h index 66036c22..e08334db 100644 --- a/include/babeltrace2/graph/component-class.h +++ b/include/babeltrace2/graph/component-class.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_GRAPH_COMPONENT_CLASS_H #define BABELTRACE2_GRAPH_COMPONENT_CLASS_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/graph/component-descriptor-set.h b/include/babeltrace2/graph/component-descriptor-set.h index 41e132bf..9c929a34 100644 --- a/include/babeltrace2/graph/component-descriptor-set.h +++ b/include/babeltrace2/graph/component-descriptor-set.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_GRAPH_COMPONENT_DESCRIPTOR_SET_H #define BABELTRACE2_GRAPH_COMPONENT_DESCRIPTOR_SET_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/graph/component.h b/include/babeltrace2/graph/component.h index 7999d524..8d2a0a4e 100644 --- a/include/babeltrace2/graph/component.h +++ b/include/babeltrace2/graph/component.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_GRAPH_COMPONENT_H #define BABELTRACE2_GRAPH_COMPONENT_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/graph/connection.h b/include/babeltrace2/graph/connection.h index 3e6d45fe..53e6c890 100644 --- a/include/babeltrace2/graph/connection.h +++ b/include/babeltrace2/graph/connection.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_GRAPH_CONNECTION_H #define BABELTRACE2_GRAPH_CONNECTION_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/graph/graph.h b/include/babeltrace2/graph/graph.h index f3d0ffb5..f9359dda 100644 --- a/include/babeltrace2/graph/graph.h +++ b/include/babeltrace2/graph/graph.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_GRAPH_GRAPH_H #define BABELTRACE2_GRAPH_GRAPH_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/graph/interrupter.h b/include/babeltrace2/graph/interrupter.h index 00b9512f..4290dca7 100644 --- a/include/babeltrace2/graph/interrupter.h +++ b/include/babeltrace2/graph/interrupter.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_GRAPH_INTERRUPTER_H #define BABELTRACE2_GRAPH_INTERRUPTER_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/graph/message-iterator-class.h b/include/babeltrace2/graph/message-iterator-class.h index 05c58987..94daac09 100644 --- a/include/babeltrace2/graph/message-iterator-class.h +++ b/include/babeltrace2/graph/message-iterator-class.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_GRAPH_MESSAGE_ITERATOR_CLASS_H #define BABELTRACE2_GRAPH_MESSAGE_ITERATOR_CLASS_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/graph/message-iterator.h b/include/babeltrace2/graph/message-iterator.h index 123e4771..0b6d102c 100644 --- a/include/babeltrace2/graph/message-iterator.h +++ b/include/babeltrace2/graph/message-iterator.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_GRAPH_MESSAGE_ITERATOR_H #define BABELTRACE2_GRAPH_MESSAGE_ITERATOR_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/graph/message.h b/include/babeltrace2/graph/message.h index c5a75bda..00d7dba0 100644 --- a/include/babeltrace2/graph/message.h +++ b/include/babeltrace2/graph/message.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_GRAPH_MESSAGE_H #define BABELTRACE2_GRAPH_MESSAGE_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/graph/port.h b/include/babeltrace2/graph/port.h index 3b210f2d..aa3d7691 100644 --- a/include/babeltrace2/graph/port.h +++ b/include/babeltrace2/graph/port.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_GRAPH_PORT_H #define BABELTRACE2_GRAPH_PORT_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/graph/private-query-executor.h b/include/babeltrace2/graph/private-query-executor.h index 9c6e97c4..756f5eec 100644 --- a/include/babeltrace2/graph/private-query-executor.h +++ b/include/babeltrace2/graph/private-query-executor.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_GRAPH_PRIVATE_QUERY_EXECUTOR_H #define BABELTRACE2_GRAPH_PRIVATE_QUERY_EXECUTOR_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/graph/query-executor.h b/include/babeltrace2/graph/query-executor.h index 999aa0ab..89432934 100644 --- a/include/babeltrace2/graph/query-executor.h +++ b/include/babeltrace2/graph/query-executor.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_GRAPH_QUERY_EXECUTOR_H #define BABELTRACE2_GRAPH_QUERY_EXECUTOR_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/graph/self-component-class.h b/include/babeltrace2/graph/self-component-class.h index c5de3037..994367f4 100644 --- a/include/babeltrace2/graph/self-component-class.h +++ b/include/babeltrace2/graph/self-component-class.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_GRAPH_SELF_COMPONENT_CLASS_H #define BABELTRACE2_GRAPH_SELF_COMPONENT_CLASS_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/graph/self-component-port.h b/include/babeltrace2/graph/self-component-port.h index 8532d270..cb13127c 100644 --- a/include/babeltrace2/graph/self-component-port.h +++ b/include/babeltrace2/graph/self-component-port.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_GRAPH_SELF_COMPONENT_PORT_H #define BABELTRACE2_GRAPH_SELF_COMPONENT_PORT_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/graph/self-component.h b/include/babeltrace2/graph/self-component.h index f37346d1..c6276116 100644 --- a/include/babeltrace2/graph/self-component.h +++ b/include/babeltrace2/graph/self-component.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_GRAPH_SELF_COMPONENT_H #define BABELTRACE2_GRAPH_SELF_COMPONENT_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/graph/self-message-iterator.h b/include/babeltrace2/graph/self-message-iterator.h index 452f33a9..43d9464e 100644 --- a/include/babeltrace2/graph/self-message-iterator.h +++ b/include/babeltrace2/graph/self-message-iterator.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_GRAPH_SELF_MESSAGE_ITERATOR_H #define BABELTRACE2_GRAPH_SELF_MESSAGE_ITERATOR_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/integer-range-set.h b/include/babeltrace2/integer-range-set.h index 7e87fe9d..f4984b2e 100644 --- a/include/babeltrace2/integer-range-set.h +++ b/include/babeltrace2/integer-range-set.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_INTEGER_RANGE_SET_H #define BABELTRACE2_INTEGER_RANGE_SET_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/logging-defs.h b/include/babeltrace2/logging-defs.h index acb75303..884957ef 100644 --- a/include/babeltrace2/logging-defs.h +++ b/include/babeltrace2/logging-defs.h @@ -9,6 +9,8 @@ * times. */ +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/logging.h b/include/babeltrace2/logging.h index 2b5da45c..f8ac11fb 100644 --- a/include/babeltrace2/logging.h +++ b/include/babeltrace2/logging.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_LOGGING_H #define BABELTRACE2_LOGGING_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/plugin/plugin-dev.h b/include/babeltrace2/plugin/plugin-dev.h index f4444f92..88b872c8 100644 --- a/include/babeltrace2/plugin/plugin-dev.h +++ b/include/babeltrace2/plugin/plugin-dev.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_PLUGIN_PLUGIN_DEV_H #define BABELTRACE2_PLUGIN_PLUGIN_DEV_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/plugin/plugin-loading.h b/include/babeltrace2/plugin/plugin-loading.h index b3836436..a2615da6 100644 --- a/include/babeltrace2/plugin/plugin-loading.h +++ b/include/babeltrace2/plugin/plugin-loading.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_PLUGIN_PLUGIN_LOADING_H #define BABELTRACE2_PLUGIN_PLUGIN_LOADING_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/trace-ir/clock-class.h b/include/babeltrace2/trace-ir/clock-class.h index b28a6c5e..129df37a 100644 --- a/include/babeltrace2/trace-ir/clock-class.h +++ b/include/babeltrace2/trace-ir/clock-class.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_TRACE_IR_CLOCK_CLASS_H #define BABELTRACE2_TRACE_IR_CLOCK_CLASS_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/trace-ir/clock-snapshot.h b/include/babeltrace2/trace-ir/clock-snapshot.h index 554131c0..f04204c9 100644 --- a/include/babeltrace2/trace-ir/clock-snapshot.h +++ b/include/babeltrace2/trace-ir/clock-snapshot.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_TRACE_IR_CLOCK_SNAPSHOT_H #define BABELTRACE2_TRACE_IR_CLOCK_SNAPSHOT_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/trace-ir/event-class.h b/include/babeltrace2/trace-ir/event-class.h index 845b64f1..31a61fc2 100644 --- a/include/babeltrace2/trace-ir/event-class.h +++ b/include/babeltrace2/trace-ir/event-class.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_TRACE_IR_EVENT_CLASS_H #define BABELTRACE2_TRACE_IR_EVENT_CLASS_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/trace-ir/event.h b/include/babeltrace2/trace-ir/event.h index 474f0c9c..c571ca0b 100644 --- a/include/babeltrace2/trace-ir/event.h +++ b/include/babeltrace2/trace-ir/event.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_TRACE_IR_EVENT_H #define BABELTRACE2_TRACE_IR_EVENT_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/trace-ir/field-class.h b/include/babeltrace2/trace-ir/field-class.h index 4d862482..c13e6e5e 100644 --- a/include/babeltrace2/trace-ir/field-class.h +++ b/include/babeltrace2/trace-ir/field-class.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_TRACE_IR_FIELD_CLASS_H #define BABELTRACE2_TRACE_IR_FIELD_CLASS_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/trace-ir/field-path.h b/include/babeltrace2/trace-ir/field-path.h index f58a454c..4119f541 100644 --- a/include/babeltrace2/trace-ir/field-path.h +++ b/include/babeltrace2/trace-ir/field-path.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_TRACE_IR_FIELD_PATH_H #define BABELTRACE2_TRACE_IR_FIELD_PATH_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/trace-ir/field.h b/include/babeltrace2/trace-ir/field.h index 1f7847d5..e52edfba 100644 --- a/include/babeltrace2/trace-ir/field.h +++ b/include/babeltrace2/trace-ir/field.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_TRACE_IR_FIELD_H #define BABELTRACE2_TRACE_IR_FIELD_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/trace-ir/packet.h b/include/babeltrace2/trace-ir/packet.h index 813d75ef..ce7aba22 100644 --- a/include/babeltrace2/trace-ir/packet.h +++ b/include/babeltrace2/trace-ir/packet.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_TRACE_IR_PACKET_H #define BABELTRACE2_TRACE_IR_PACKET_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/trace-ir/stream-class.h b/include/babeltrace2/trace-ir/stream-class.h index 92df5159..0df1f197 100644 --- a/include/babeltrace2/trace-ir/stream-class.h +++ b/include/babeltrace2/trace-ir/stream-class.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_TRACE_IR_STREAM_CLASS_H #define BABELTRACE2_TRACE_IR_STREAM_CLASS_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/trace-ir/stream.h b/include/babeltrace2/trace-ir/stream.h index 95f17a7f..1695c96f 100644 --- a/include/babeltrace2/trace-ir/stream.h +++ b/include/babeltrace2/trace-ir/stream.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_TRACE_IR_STREAM_H #define BABELTRACE2_TRACE_IR_STREAM_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/trace-ir/trace-class.h b/include/babeltrace2/trace-ir/trace-class.h index fd01d32b..579dd5fe 100644 --- a/include/babeltrace2/trace-ir/trace-class.h +++ b/include/babeltrace2/trace-ir/trace-class.h @@ -4,9 +4,11 @@ * Copyright (C) 2010-2019 EfficiOS Inc. and Linux Foundation */ - #ifndef BABELTRACE2_TRACE_IR_TRACE_CLASS_H +#ifndef BABELTRACE2_TRACE_IR_TRACE_CLASS_H #define BABELTRACE2_TRACE_IR_TRACE_CLASS_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/trace-ir/trace.h b/include/babeltrace2/trace-ir/trace.h index e36a5fd3..811936fd 100644 --- a/include/babeltrace2/trace-ir/trace.h +++ b/include/babeltrace2/trace-ir/trace.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_TRACE_IR_TRACE_H #define BABELTRACE2_TRACE_IR_TRACE_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/types.h b/include/babeltrace2/types.h index 2f9e6496..3f571fa9 100644 --- a/include/babeltrace2/types.h +++ b/include/babeltrace2/types.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_TYPES_H #define BABELTRACE2_TYPES_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/util.h b/include/babeltrace2/util.h index 8426a0ad..adece55d 100644 --- a/include/babeltrace2/util.h +++ b/include/babeltrace2/util.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_UTIL_H #define BABELTRACE2_UTIL_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/value.h b/include/babeltrace2/value.h index ae60e652..ac95bafc 100644 --- a/include/babeltrace2/value.h +++ b/include/babeltrace2/value.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_VALUE_H #define BABELTRACE2_VALUE_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif diff --git a/include/babeltrace2/version.h b/include/babeltrace2/version.h index 06742712..c3689eba 100644 --- a/include/babeltrace2/version.h +++ b/include/babeltrace2/version.h @@ -7,6 +7,8 @@ #ifndef BABELTRACE2_VERSION_H #define BABELTRACE2_VERSION_H +/* IWYU pragma: private, include */ + #ifndef __BT_IN_BABELTRACE_H # error "Please include instead." #endif -- 2.34.1