From: Philippe Proulx Date: Wed, 10 Jul 2019 05:51:15 +0000 (-0400) Subject: lib: remove "For *" comments in public headers X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=959b3d46dc042fe1df34592f528f866dd200f395 lib: remove "For *" comments in public headers Those comments are very hard to maintain and are pretty much useless. There are tools to ensure that headers include exactly what they need. Signed-off-by: Philippe Proulx Change-Id: Idb7545526426e0a18e6a2fa8af20b9f22ed88407 Reviewed-on: https://review.lttng.org/c/babeltrace/+/1672 Tested-by: jenkins --- diff --git a/include/babeltrace2/current-thread.h b/include/babeltrace2/current-thread.h index 125db20e..bf4d3b91 100644 --- a/include/babeltrace2/current-thread.h +++ b/include/babeltrace2/current-thread.h @@ -29,10 +29,6 @@ #include -/* - * For bt_error, bt_self_component, bt_self_component_class, and - * bt_self_message_iterator - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/error-cause-const.h b/include/babeltrace2/error-cause-const.h index 8b4e36e0..b5f022d3 100644 --- a/include/babeltrace2/error-cause-const.h +++ b/include/babeltrace2/error-cause-const.h @@ -30,10 +30,7 @@ #include #include -/* For bt_error, bt_error_cause */ #include - -/* For bt_component_class_type */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/error-const.h b/include/babeltrace2/error-const.h index bee1b752..8148b0d1 100644 --- a/include/babeltrace2/error-const.h +++ b/include/babeltrace2/error-const.h @@ -30,7 +30,6 @@ #include #include -/* For bt_error, bt_error_cause */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/component-class-const.h b/include/babeltrace2/graph/component-class-const.h index 250b0762..c9f6fec0 100644 --- a/include/babeltrace2/graph/component-class-const.h +++ b/include/babeltrace2/graph/component-class-const.h @@ -28,7 +28,6 @@ # error "Please include instead." #endif -/* For bt_bool, bt_component_class */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/component-class-filter-const.h b/include/babeltrace2/graph/component-class-filter-const.h index df867600..908537e2 100644 --- a/include/babeltrace2/graph/component-class-filter-const.h +++ b/include/babeltrace2/graph/component-class-filter-const.h @@ -28,10 +28,6 @@ # error "Please include instead." #endif -/* - * For bt_component_class, bt_component_class_filter, - * __BT_UPCAST_CONST - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/component-class-filter.h b/include/babeltrace2/graph/component-class-filter.h index 3616b01a..47c91b3d 100644 --- a/include/babeltrace2/graph/component-class-filter.h +++ b/include/babeltrace2/graph/component-class-filter.h @@ -30,19 +30,8 @@ #include -/* For bt_component_class_*_status */ #include - -/* - * For bt_component_class, bt_component_class_filter, bt_port_input, - * bt_port_output, bt_query_executor, bt_self_component_class_filter, - * bt_self_component_filter, bt_self_component_port_input, - * bt_self_component_port_output, bt_value, bt_message_array_const, - * bt_bool, bt_self_message_iterator, __BT_UPCAST - */ #include - -/* For bt_logging_level */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/component-class-sink-const.h b/include/babeltrace2/graph/component-class-sink-const.h index d4833fbc..82d73a17 100644 --- a/include/babeltrace2/graph/component-class-sink-const.h +++ b/include/babeltrace2/graph/component-class-sink-const.h @@ -28,7 +28,6 @@ # error "Please include instead." #endif -/* For bt_component_class, bt_component_class_sink, __BT_UPCAST_CONST */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/component-class-sink.h b/include/babeltrace2/graph/component-class-sink.h index 48d647f5..609873e1 100644 --- a/include/babeltrace2/graph/component-class-sink.h +++ b/include/babeltrace2/graph/component-class-sink.h @@ -30,18 +30,8 @@ #include -/* For bt_component_class_*_status */ #include - -/* - * For bt_component_class, bt_component_class_sink, bt_port_output, - * bt_query_executor, bt_self_component_class_sink, - * bt_self_component_sink, bt_self_component_port_input, bt_value, - * __BT_UPCAST - */ #include - -/* For bt_logging_level */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/component-class-source-const.h b/include/babeltrace2/graph/component-class-source-const.h index 42181ce6..d41a33f0 100644 --- a/include/babeltrace2/graph/component-class-source-const.h +++ b/include/babeltrace2/graph/component-class-source-const.h @@ -28,10 +28,6 @@ # error "Please include instead." #endif -/* - * For bt_component_class, bt_component_class_source, - * __BT_UPCAST_CONST - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/component-class-source.h b/include/babeltrace2/graph/component-class-source.h index 3aa89cef..252698b0 100644 --- a/include/babeltrace2/graph/component-class-source.h +++ b/include/babeltrace2/graph/component-class-source.h @@ -30,19 +30,8 @@ #include -/* For bt_component_class_*_status */ #include - -/* - * For bt_component_class, bt_component_class_source, bt_port_input, - * bt_query_executor, bt_self_component_class_source, - * bt_self_component_source, bt_self_component_port_output, bt_value, - * bt_message_array_const, bt_bool, bt_self_message_iterator, - * __BT_UPCAST - */ #include - -/* For bt_logging_level */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/component-class.h b/include/babeltrace2/graph/component-class.h index b666ba93..2ad2f828 100644 --- a/include/babeltrace2/graph/component-class.h +++ b/include/babeltrace2/graph/component-class.h @@ -28,7 +28,6 @@ # error "Please include instead." #endif -/* For bt_component_class */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/component-const.h b/include/babeltrace2/graph/component-const.h index aa9f84ce..31262994 100644 --- a/include/babeltrace2/graph/component-const.h +++ b/include/babeltrace2/graph/component-const.h @@ -28,16 +28,8 @@ # error "Please include instead." #endif -/* For bt_component_class_type */ #include - -/* - * For bt_bool, bt_component_class, bt_component_graph, bt_component, - * bt_value, bt_port - */ #include - -/* For bt_logging_level */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/component-filter-const.h b/include/babeltrace2/graph/component-filter-const.h index 27011951..dee45fe2 100644 --- a/include/babeltrace2/graph/component-filter-const.h +++ b/include/babeltrace2/graph/component-filter-const.h @@ -30,10 +30,6 @@ #include -/* - * For bt_component, bt_component_filter, bt_port_input, bt_port_output, - * __BT_UPCAST_CONST, bt_component_class_filter - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/component-sink-const.h b/include/babeltrace2/graph/component-sink-const.h index d6a39254..dc0be9cd 100644 --- a/include/babeltrace2/graph/component-sink-const.h +++ b/include/babeltrace2/graph/component-sink-const.h @@ -30,10 +30,6 @@ #include -/* - * For bt_component, bt_component_filter, bt_port_input, - * __BT_UPCAST_CONST, bt_component_class_sink - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/component-source-const.h b/include/babeltrace2/graph/component-source-const.h index c0f4e926..9021571f 100644 --- a/include/babeltrace2/graph/component-source-const.h +++ b/include/babeltrace2/graph/component-source-const.h @@ -30,10 +30,6 @@ #include -/* - * For bt_component, bt_component_filter, bt_port_output, - * __BT_UPCAST_CONST, bt_component_class_source - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/connection-const.h b/include/babeltrace2/graph/connection-const.h index 9f1f2a87..a3a46105 100644 --- a/include/babeltrace2/graph/connection-const.h +++ b/include/babeltrace2/graph/connection-const.h @@ -28,7 +28,6 @@ # error "Please include instead." #endif -/* For bt_bool, bt_port_input, bt_port_output, bt_connection */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/graph-const.h b/include/babeltrace2/graph/graph-const.h index 8fd9a5d6..a172e3b5 100644 --- a/include/babeltrace2/graph/graph-const.h +++ b/include/babeltrace2/graph/graph-const.h @@ -28,7 +28,6 @@ # error "Please include instead." #endif -/* For bt_bool, bt_graph */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/graph.h b/include/babeltrace2/graph/graph.h index 4e85e427..75a9e048 100644 --- a/include/babeltrace2/graph/graph.h +++ b/include/babeltrace2/graph/graph.h @@ -28,16 +28,7 @@ # error "Please include instead." #endif -/* - * For bt_bool, bt_component, bt_component_class, - * bt_component_class_filter, bt_component_class_sink, - * bt_component_class_source, bt_component_filter, bt_component_sink, - * bt_component_source, bt_connection, bt_graph, bt_port_input, - * bt_port_output, bt_value - */ #include - -/* For bt_logging_level */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/message-const.h b/include/babeltrace2/graph/message-const.h index cd3efe40..9abf4870 100644 --- a/include/babeltrace2/graph/message-const.h +++ b/include/babeltrace2/graph/message-const.h @@ -28,7 +28,6 @@ # error "Please include instead." #endif -/* For bt_message */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/message-discarded-events-const.h b/include/babeltrace2/graph/message-discarded-events-const.h index 4f7da252..6ce8590a 100644 --- a/include/babeltrace2/graph/message-discarded-events-const.h +++ b/include/babeltrace2/graph/message-discarded-events-const.h @@ -27,7 +27,6 @@ # error "Please include instead." #endif -/* For bt_message, bt_clock_snapshot, bt_stream */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/message-discarded-events.h b/include/babeltrace2/graph/message-discarded-events.h index b2b97d6f..cbefcec0 100644 --- a/include/babeltrace2/graph/message-discarded-events.h +++ b/include/babeltrace2/graph/message-discarded-events.h @@ -29,7 +29,6 @@ #include -/* For bt_message, bt_self_message_iterator, bt_stream */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/message-discarded-packets-const.h b/include/babeltrace2/graph/message-discarded-packets-const.h index 6bfee12e..e6c74535 100644 --- a/include/babeltrace2/graph/message-discarded-packets-const.h +++ b/include/babeltrace2/graph/message-discarded-packets-const.h @@ -27,7 +27,6 @@ # error "Please include instead." #endif -/* For bt_message, bt_clock_snapshot, bt_stream */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/message-discarded-packets.h b/include/babeltrace2/graph/message-discarded-packets.h index bc1896b1..a4a9f600 100644 --- a/include/babeltrace2/graph/message-discarded-packets.h +++ b/include/babeltrace2/graph/message-discarded-packets.h @@ -29,7 +29,6 @@ #include -/* For bt_message, bt_self_message_iterator, bt_stream */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/message-event-const.h b/include/babeltrace2/graph/message-event-const.h index 933582af..d1d1ebd8 100644 --- a/include/babeltrace2/graph/message-event-const.h +++ b/include/babeltrace2/graph/message-event-const.h @@ -28,7 +28,6 @@ # error "Please include instead." #endif -/* For bt_bool, bt_message, bt_event. bt_clock_class, bt_clock_snapshot */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/message-event.h b/include/babeltrace2/graph/message-event.h index c7f48e08..115cfb87 100644 --- a/include/babeltrace2/graph/message-event.h +++ b/include/babeltrace2/graph/message-event.h @@ -30,10 +30,6 @@ #include -/* - * For bt_self_message_iterator, bt_event, bt_packet, bt_stream, - * bt_event_class, bt_message - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/message-message-iterator-inactivity-const.h b/include/babeltrace2/graph/message-message-iterator-inactivity-const.h index ceeb7f86..23a16903 100644 --- a/include/babeltrace2/graph/message-message-iterator-inactivity-const.h +++ b/include/babeltrace2/graph/message-message-iterator-inactivity-const.h @@ -27,7 +27,6 @@ # error "Please include instead." #endif -/* For bt_message, bt_clock_snapshot */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/message-message-iterator-inactivity.h b/include/babeltrace2/graph/message-message-iterator-inactivity.h index c738a6e9..909d3997 100644 --- a/include/babeltrace2/graph/message-message-iterator-inactivity.h +++ b/include/babeltrace2/graph/message-message-iterator-inactivity.h @@ -29,7 +29,6 @@ #include -/* For bt_self_message_iterator, bt_message, bt_clock_class */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/message-packet-beginning-const.h b/include/babeltrace2/graph/message-packet-beginning-const.h index f0e2a0dd..1db945de 100644 --- a/include/babeltrace2/graph/message-packet-beginning-const.h +++ b/include/babeltrace2/graph/message-packet-beginning-const.h @@ -28,7 +28,6 @@ # error "Please include instead." #endif -/* For bt_message, bt_packet, bt_clock_snapshot, bt_clock_class */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/message-packet-beginning.h b/include/babeltrace2/graph/message-packet-beginning.h index a6942469..85956f39 100644 --- a/include/babeltrace2/graph/message-packet-beginning.h +++ b/include/babeltrace2/graph/message-packet-beginning.h @@ -30,7 +30,6 @@ #include -/* For bt_message, bt_self_message_iterator, bt_packet */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/message-packet-end-const.h b/include/babeltrace2/graph/message-packet-end-const.h index feb857c3..fc0a986f 100644 --- a/include/babeltrace2/graph/message-packet-end-const.h +++ b/include/babeltrace2/graph/message-packet-end-const.h @@ -28,7 +28,6 @@ # error "Please include instead." #endif -/* For bt_message, bt_packet, bt_clock_snapshot, bt_clock_class */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/message-packet-end.h b/include/babeltrace2/graph/message-packet-end.h index 5eb25e7b..2064b70e 100644 --- a/include/babeltrace2/graph/message-packet-end.h +++ b/include/babeltrace2/graph/message-packet-end.h @@ -30,7 +30,6 @@ #include -/* For bt_message, bt_self_message_iterator, bt_packet */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/message-stream-beginning-const.h b/include/babeltrace2/graph/message-stream-beginning-const.h index 95b58f07..73466537 100644 --- a/include/babeltrace2/graph/message-stream-beginning-const.h +++ b/include/babeltrace2/graph/message-stream-beginning-const.h @@ -28,10 +28,7 @@ # error "Please include instead." #endif -/* For bt_message, bt_clock_snapshot, bt_stream */ #include - -/* For bt_message_stream_clock_snapshot_state */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/message-stream-beginning.h b/include/babeltrace2/graph/message-stream-beginning.h index b798a654..6ab84302 100644 --- a/include/babeltrace2/graph/message-stream-beginning.h +++ b/include/babeltrace2/graph/message-stream-beginning.h @@ -28,7 +28,6 @@ # error "Please include instead." #endif -/* For bt_message, bt_self_message_iterator, bt_stream */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/message-stream-end-const.h b/include/babeltrace2/graph/message-stream-end-const.h index b7bccc7d..fa75e3cf 100644 --- a/include/babeltrace2/graph/message-stream-end-const.h +++ b/include/babeltrace2/graph/message-stream-end-const.h @@ -28,10 +28,7 @@ # error "Please include instead." #endif -/* For bt_message, bt_clock_snapshot, bt_stream */ #include - -/* For bt_message_stream_clock_snapshot_state */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/message-stream-end.h b/include/babeltrace2/graph/message-stream-end.h index 948c53f5..22100d58 100644 --- a/include/babeltrace2/graph/message-stream-end.h +++ b/include/babeltrace2/graph/message-stream-end.h @@ -28,7 +28,6 @@ # error "Please include instead." #endif -/* For bt_message, bt_self_message_iterator, bt_stream */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/port-const.h b/include/babeltrace2/graph/port-const.h index 3ed54426..b381dc09 100644 --- a/include/babeltrace2/graph/port-const.h +++ b/include/babeltrace2/graph/port-const.h @@ -30,7 +30,6 @@ #include -/* For bt_bool, bt_port, bt_connection, bt_component */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/port-input-const.h b/include/babeltrace2/graph/port-input-const.h index a1b32ece..abc0b82b 100644 --- a/include/babeltrace2/graph/port-input-const.h +++ b/include/babeltrace2/graph/port-input-const.h @@ -28,11 +28,10 @@ # error "Please include instead." #endif -/* For bt_port, bt_port_input, __BT_UPCAST_CONST */ -#include - #include +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/include/babeltrace2/graph/port-output-const.h b/include/babeltrace2/graph/port-output-const.h index b923691a..a1d8d847 100644 --- a/include/babeltrace2/graph/port-output-const.h +++ b/include/babeltrace2/graph/port-output-const.h @@ -28,11 +28,10 @@ # error "Please include instead." #endif -/* For bt_port, bt_port_output, __BT_UPCAST_CONST */ -#include - #include +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/include/babeltrace2/graph/port-output-message-iterator.h b/include/babeltrace2/graph/port-output-message-iterator.h index 04bed3dc..8a34815c 100644 --- a/include/babeltrace2/graph/port-output-message-iterator.h +++ b/include/babeltrace2/graph/port-output-message-iterator.h @@ -29,14 +29,7 @@ #include -/* For bt_message_iterator_*_status */ #include - -/* - * For bt_port, bt_message, bt_message_iterator, - * bt_port_output_message_iterator, bt_graph, bt_port_output, - * bt_message_array_const, bt_bool, __BT_UPCAST - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/query-executor-const.h b/include/babeltrace2/graph/query-executor-const.h index 6fa6f332..63c21e09 100644 --- a/include/babeltrace2/graph/query-executor-const.h +++ b/include/babeltrace2/graph/query-executor-const.h @@ -27,7 +27,6 @@ # error "Please include instead." #endif -/* For bt_bool, bt_query_executor */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/query-executor.h b/include/babeltrace2/graph/query-executor.h index 2992cb47..6618f3c6 100644 --- a/include/babeltrace2/graph/query-executor.h +++ b/include/babeltrace2/graph/query-executor.h @@ -27,10 +27,7 @@ # error "Please include instead." #endif -/* For bt_query_executor, bt_component_class, bt_value */ #include - -/* For bt_logging_level */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/self-component-class-filter.h b/include/babeltrace2/graph/self-component-class-filter.h index f901c7ab..8a6d1228 100644 --- a/include/babeltrace2/graph/self-component-class-filter.h +++ b/include/babeltrace2/graph/self-component-class-filter.h @@ -28,10 +28,6 @@ # error "Please include instead." #endif -/* - * For bt_component_class_filter, bt_self_component_class_filter, - * __BT_UPCAST_CONST - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/self-component-class-sink.h b/include/babeltrace2/graph/self-component-class-sink.h index ec116f47..1a546a30 100644 --- a/include/babeltrace2/graph/self-component-class-sink.h +++ b/include/babeltrace2/graph/self-component-class-sink.h @@ -28,10 +28,6 @@ # error "Please include instead." #endif -/* - * For bt_component_class_sink, bt_self_component_class_sink, - * __BT_UPCAST_CONST - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/self-component-class-source.h b/include/babeltrace2/graph/self-component-class-source.h index 6d4dd082..35506a34 100644 --- a/include/babeltrace2/graph/self-component-class-source.h +++ b/include/babeltrace2/graph/self-component-class-source.h @@ -28,10 +28,6 @@ # error "Please include instead." #endif -/* - * For bt_component_class_source, bt_self_component_class_source, - * __BT_UPCAST_CONST - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/self-component-filter.h b/include/babeltrace2/graph/self-component-filter.h index 2d07f31f..9e6490a7 100644 --- a/include/babeltrace2/graph/self-component-filter.h +++ b/include/babeltrace2/graph/self-component-filter.h @@ -30,14 +30,7 @@ #include -/* For bt_self_component_*_status */ #include - -/* - * For bt_component_filter, bt_self_component, bt_self_component_filter, - * bt_self_component_port_input, bt_self_component_port_output, - * __BT_UPCAST, __BT_UPCAST_CONST - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/self-component-port-input-message-iterator.h b/include/babeltrace2/graph/self-component-port-input-message-iterator.h index d53353b7..2c4d262c 100644 --- a/include/babeltrace2/graph/self-component-port-input-message-iterator.h +++ b/include/babeltrace2/graph/self-component-port-input-message-iterator.h @@ -29,15 +29,7 @@ #include -/* For bt_message_iterator_*_status */ #include - -/* - * For bt_component, bt_message_iterator, - * bt_self_component_port_input_message_iterator, - * bt_self_component_port_input, bt_message_array_const, bt_bool, - * __BT_UPCAST - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/self-component-port-input.h b/include/babeltrace2/graph/self-component-port-input.h index 29bde50d..eda12caf 100644 --- a/include/babeltrace2/graph/self-component-port-input.h +++ b/include/babeltrace2/graph/self-component-port-input.h @@ -27,10 +27,6 @@ # error "Please include instead." #endif -/* - * For bt_port_input, bt_self_component_port, - * bt_self_component_port_input, __BT_UPCAST, __BT_UPCAST_CONST - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/self-component-port-output.h b/include/babeltrace2/graph/self-component-port-output.h index 8e13d7d1..e8e898e2 100644 --- a/include/babeltrace2/graph/self-component-port-output.h +++ b/include/babeltrace2/graph/self-component-port-output.h @@ -27,10 +27,6 @@ # error "Please include instead." #endif -/* - * For bt_port_output, bt_self_component_port, - * bt_self_component_port_output, __BT_UPCAST, __BT_UPCAST_CONST - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/self-component-port.h b/include/babeltrace2/graph/self-component-port.h index bd93753d..bcdbbb7e 100644 --- a/include/babeltrace2/graph/self-component-port.h +++ b/include/babeltrace2/graph/self-component-port.h @@ -27,10 +27,6 @@ # error "Please include instead." #endif -/* - * For bt_port, bt_self_component_port, bt_self_component, - * bt_connection, __BT_UPCAST_CONST - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/self-component-sink.h b/include/babeltrace2/graph/self-component-sink.h index ed9c307e..1850a597 100644 --- a/include/babeltrace2/graph/self-component-sink.h +++ b/include/babeltrace2/graph/self-component-sink.h @@ -29,13 +29,7 @@ #include -/* For bt_self_component_*_status */ #include - -/* - * For bt_component_sink, bt_self_component, bt_self_component_sink, - * bt_self_component_port_input, __BT_UPCAST, __BT_UPCAST_CONST - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/self-component-source.h b/include/babeltrace2/graph/self-component-source.h index 6dac6f64..7e470f4b 100644 --- a/include/babeltrace2/graph/self-component-source.h +++ b/include/babeltrace2/graph/self-component-source.h @@ -29,13 +29,7 @@ #include -/* For bt_self_component_*_status */ #include - -/* - * For bt_component_source, bt_self_component, bt_self_component_source, - * bt_self_component_port_output, __BT_UPCAST, __BT_UPCAST_CONST - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/self-component.h b/include/babeltrace2/graph/self-component.h index f0b02ee8..ee343d5f 100644 --- a/include/babeltrace2/graph/self-component.h +++ b/include/babeltrace2/graph/self-component.h @@ -27,7 +27,6 @@ # error "Please include instead." #endif -/* For bt_component, bt_self_component, __BT_UPCAST */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/graph/self-message-iterator.h b/include/babeltrace2/graph/self-message-iterator.h index 155542b8..c5214a77 100644 --- a/include/babeltrace2/graph/self-message-iterator.h +++ b/include/babeltrace2/graph/self-message-iterator.h @@ -27,7 +27,6 @@ # error "Please include instead." #endif -/* For bt_self_component, bt_self_message_iterator, bt_self_port_output */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/plugin/plugin-const.h b/include/babeltrace2/plugin/plugin-const.h index df82ddc0..cc151b18 100644 --- a/include/babeltrace2/plugin/plugin-const.h +++ b/include/babeltrace2/plugin/plugin-const.h @@ -33,14 +33,7 @@ #include #include -/* - * For bt_bool, bt_plugin, bt_plugin_set, bt_component_class, - * bt_component_class_source, bt_component_class_filter, - * bt_component_class_sink - */ #include - -/* For bt_property_availability */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/plugin/plugin-dev.h b/include/babeltrace2/plugin/plugin-dev.h index e2b03be0..84dca71c 100644 --- a/include/babeltrace2/plugin/plugin-dev.h +++ b/include/babeltrace2/plugin/plugin-dev.h @@ -33,15 +33,10 @@ #include -/* For bt_component_class_type */ #include - -/* For component class method type definitions */ #include #include #include - -/* For bt_self_plugin */ #include /* diff --git a/include/babeltrace2/plugin/plugin-set-const.h b/include/babeltrace2/plugin/plugin-set-const.h index 6e68b30f..c76cfdc1 100644 --- a/include/babeltrace2/plugin/plugin-set-const.h +++ b/include/babeltrace2/plugin/plugin-set-const.h @@ -30,7 +30,6 @@ #include -/* For bt_plugin, bt_plugin_set */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/trace-ir/clock-class-const.h b/include/babeltrace2/trace-ir/clock-class-const.h index efc27060..76e385e6 100644 --- a/include/babeltrace2/trace-ir/clock-class-const.h +++ b/include/babeltrace2/trace-ir/clock-class-const.h @@ -33,7 +33,6 @@ #include -/* For bt_bool, bt_uuid, bt_clock_class */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/trace-ir/clock-class.h b/include/babeltrace2/trace-ir/clock-class.h index 556366f0..49eaf721 100644 --- a/include/babeltrace2/trace-ir/clock-class.h +++ b/include/babeltrace2/trace-ir/clock-class.h @@ -33,7 +33,6 @@ #include -/* For bt_bool, bt_uuid, bt_clock_class, bt_trace_class */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/trace-ir/clock-snapshot-const.h b/include/babeltrace2/trace-ir/clock-snapshot-const.h index e0d87b92..59156f81 100644 --- a/include/babeltrace2/trace-ir/clock-snapshot-const.h +++ b/include/babeltrace2/trace-ir/clock-snapshot-const.h @@ -33,7 +33,6 @@ #include -/* For bt_clock_class, bt_clock_snapshot */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/trace-ir/event-class-const.h b/include/babeltrace2/trace-ir/event-class-const.h index 23c8acd1..ba83871a 100644 --- a/include/babeltrace2/trace-ir/event-class-const.h +++ b/include/babeltrace2/trace-ir/event-class-const.h @@ -31,15 +31,12 @@ # error "Please include instead." #endif -/* For bt_property_availability */ -#include - -/* For bt_event_class, bt_field_class, bt_stream_class */ -#include - #include #include +#include +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/include/babeltrace2/trace-ir/event-class.h b/include/babeltrace2/trace-ir/event-class.h index 9b67e943..98a95caa 100644 --- a/include/babeltrace2/trace-ir/event-class.h +++ b/include/babeltrace2/trace-ir/event-class.h @@ -33,10 +33,7 @@ #include -/* For bt_event_class_log_level */ #include - -/* For bt_event_class, bt_stream_class */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/trace-ir/event-const.h b/include/babeltrace2/trace-ir/event-const.h index ff8c0710..c617bd05 100644 --- a/include/babeltrace2/trace-ir/event-const.h +++ b/include/babeltrace2/trace-ir/event-const.h @@ -31,7 +31,6 @@ # error "Please include instead." #endif -/* For bt_event, bt_event_class, bt_field, bt_packet */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/trace-ir/event.h b/include/babeltrace2/trace-ir/event.h index 00fe64a2..0ef59e99 100644 --- a/include/babeltrace2/trace-ir/event.h +++ b/include/babeltrace2/trace-ir/event.h @@ -31,7 +31,6 @@ # error "Please include instead." #endif -/* For bt_event, bt_event_class, bt_field, bt_packet */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/trace-ir/field-class-const.h b/include/babeltrace2/trace-ir/field-class-const.h index 5a8b2b49..e7597621 100644 --- a/include/babeltrace2/trace-ir/field-class-const.h +++ b/include/babeltrace2/trace-ir/field-class-const.h @@ -31,18 +31,11 @@ # error "Please include instead." #endif -/* - * For bt_bool, bt_field_class, bt_field_path, - * bt_field_class_enumeration_mapping, - * bt_field_class_unsigned_enumeration_mapping, - * bt_field_class_signed_enumeration_mapping, - * bt_field_class_enumeration_mapping_label_array, __BT_UPCAST_CONST - */ -#include - #include #include +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/include/babeltrace2/trace-ir/field-class.h b/include/babeltrace2/trace-ir/field-class.h index f66fbb44..f0e4868d 100644 --- a/include/babeltrace2/trace-ir/field-class.h +++ b/include/babeltrace2/trace-ir/field-class.h @@ -34,10 +34,7 @@ #include #include -/* For bt_bool, bt_field_class, bt_trace_class */ #include - -/* For bt_field_class_integer_preferred_display_base */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/trace-ir/field-const.h b/include/babeltrace2/trace-ir/field-const.h index c2e39fd3..0ce68457 100644 --- a/include/babeltrace2/trace-ir/field-const.h +++ b/include/babeltrace2/trace-ir/field-const.h @@ -33,10 +33,7 @@ #include -/* For bt_field_class_type */ #include - -/* For bt_field, bt_field_class */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/trace-ir/field-path-const.h b/include/babeltrace2/trace-ir/field-path-const.h index 286450fe..cc56de10 100644 --- a/include/babeltrace2/trace-ir/field-path-const.h +++ b/include/babeltrace2/trace-ir/field-path-const.h @@ -32,7 +32,6 @@ #include -/* For bt_field_path, bt_field_path_item */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/trace-ir/field.h b/include/babeltrace2/trace-ir/field.h index 4910927f..98142405 100644 --- a/include/babeltrace2/trace-ir/field.h +++ b/include/babeltrace2/trace-ir/field.h @@ -33,7 +33,6 @@ #include -/* For bt_field, bt_field_class */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/trace-ir/packet-const.h b/include/babeltrace2/trace-ir/packet-const.h index 5390a165..f2707be6 100644 --- a/include/babeltrace2/trace-ir/packet-const.h +++ b/include/babeltrace2/trace-ir/packet-const.h @@ -32,12 +32,7 @@ #include -/* For bt_property_availability */ #include - -/* - * For bt_packet, bt_packet_context_field, bt_stream - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/trace-ir/packet-context-field.h b/include/babeltrace2/trace-ir/packet-context-field.h index 376373e6..c172261f 100644 --- a/include/babeltrace2/trace-ir/packet-context-field.h +++ b/include/babeltrace2/trace-ir/packet-context-field.h @@ -30,7 +30,6 @@ # error "Please include instead." #endif -/* For bt_stream_class, bt_packet_context_field, bt_field */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/trace-ir/packet.h b/include/babeltrace2/trace-ir/packet.h index bc45a4eb..ff473534 100644 --- a/include/babeltrace2/trace-ir/packet.h +++ b/include/babeltrace2/trace-ir/packet.h @@ -32,7 +32,6 @@ #include -/* For bt_packet, bt_packet_context_field, bt_stream */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/trace-ir/stream-class-const.h b/include/babeltrace2/trace-ir/stream-class-const.h index d8233830..e00e8398 100644 --- a/include/babeltrace2/trace-ir/stream-class-const.h +++ b/include/babeltrace2/trace-ir/stream-class-const.h @@ -33,10 +33,6 @@ #include -/* - * For bt_bool, bt_trace_class, bt_stream_class, bt_event_class, - * bt_stream_class - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/trace-ir/stream-class.h b/include/babeltrace2/trace-ir/stream-class.h index 48d50637..21c0c5ff 100644 --- a/include/babeltrace2/trace-ir/stream-class.h +++ b/include/babeltrace2/trace-ir/stream-class.h @@ -33,10 +33,6 @@ #include -/* - * For bt_bool, bt_trace_class, bt_stream_class, bt_event_class, - * bt_clock_class - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/trace-ir/stream-const.h b/include/babeltrace2/trace-ir/stream-const.h index 61da523d..b35435fd 100644 --- a/include/babeltrace2/trace-ir/stream-const.h +++ b/include/babeltrace2/trace-ir/stream-const.h @@ -31,11 +31,10 @@ # error "Please include instead." #endif -/* For bt_trace, bt_stream, bt_stream_class */ -#include - #include +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/include/babeltrace2/trace-ir/stream.h b/include/babeltrace2/trace-ir/stream.h index 8006dc59..4ec4d0a9 100644 --- a/include/babeltrace2/trace-ir/stream.h +++ b/include/babeltrace2/trace-ir/stream.h @@ -33,7 +33,6 @@ #include -/* For bt_trace, bt_stream, bt_stream_class */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/trace-ir/trace-class-const.h b/include/babeltrace2/trace-ir/trace-class-const.h index ca75bee4..f5481431 100644 --- a/include/babeltrace2/trace-ir/trace-class-const.h +++ b/include/babeltrace2/trace-ir/trace-class-const.h @@ -33,10 +33,6 @@ #include -/* - * For bt_bool, bt_uuid, bt_trace_class, bt_stream_class, - * bt_field_class, bt_value - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/trace-ir/trace-class.h b/include/babeltrace2/trace-ir/trace-class.h index 52a87bab..aceb0d6f 100644 --- a/include/babeltrace2/trace-ir/trace-class.h +++ b/include/babeltrace2/trace-ir/trace-class.h @@ -33,7 +33,6 @@ #include -/* For bt_bool, bt_trace_class, bt_stream_class, bt_self_component */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/trace-ir/trace-const.h b/include/babeltrace2/trace-ir/trace-const.h index db06dcba..45b273f6 100644 --- a/include/babeltrace2/trace-ir/trace-const.h +++ b/include/babeltrace2/trace-ir/trace-const.h @@ -33,10 +33,6 @@ #include -/* - * For bt_bool, bt_uuid, bt_trace, bt_stream, bt_stream_class, - * bt_field_class, bt_value - */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/trace-ir/trace.h b/include/babeltrace2/trace-ir/trace.h index 0e088721..33912513 100644 --- a/include/babeltrace2/trace-ir/trace.h +++ b/include/babeltrace2/trace-ir/trace.h @@ -33,7 +33,6 @@ #include -/* For bt_bool, bt_uuid, bt_trace, bt_trace_class, bt_stream */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/value-const.h b/include/babeltrace2/value-const.h index f443a755..a3760c07 100644 --- a/include/babeltrace2/value-const.h +++ b/include/babeltrace2/value-const.h @@ -30,7 +30,6 @@ #include #include -/* For bt_bool, bt_value */ #include #ifdef __cplusplus diff --git a/include/babeltrace2/value.h b/include/babeltrace2/value.h index 87190173..9fd0e95f 100644 --- a/include/babeltrace2/value.h +++ b/include/babeltrace2/value.h @@ -30,10 +30,7 @@ #include #include -/* For bt_bool, bt_value */ #include - -/* For bt_value_type */ #include #ifdef __cplusplus