include/babeltrace2: add `noexcept` specifier for C++ ≥ 11
[babeltrace.git] / include / babeltrace2 / trace-ir / event.h
index 474f0c9cb5b76ee3ca7dc0446d6d4615abd510ed..bcb2af3deca25384ab3d4b72b082c30c4cd127a7 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef BABELTRACE2_TRACE_IR_EVENT_H
 #define BABELTRACE2_TRACE_IR_EVENT_H
 
+/* IWYU pragma: private, include <babeltrace2/babeltrace.h> */
+
 #ifndef __BT_IN_BABELTRACE_H
 # error "Please include <babeltrace2/babeltrace.h> instead."
 #endif
@@ -167,7 +169,7 @@ An event has the following properties:
 @sa bt_event_borrow_class_const() &mdash;
     \c const version of this function.
 */
-extern bt_event_class *bt_event_borrow_class(bt_event *event);
+extern bt_event_class *bt_event_borrow_class(bt_event *event) __BT_NOEXCEPT;
 
 /*!
 @brief
@@ -177,7 +179,7 @@ extern bt_event_class *bt_event_borrow_class(bt_event *event);
 See bt_event_borrow_class().
 */
 extern const bt_event_class *bt_event_borrow_class_const(
-               const bt_event *event);
+               const bt_event *event) __BT_NOEXCEPT;
 
 /*! @} */
 
@@ -203,7 +205,7 @@ extern const bt_event_class *bt_event_borrow_class_const(
 @sa bt_event_borrow_stream_const() &mdash;
     \c const version of this function.
 */
-extern bt_stream *bt_event_borrow_stream(bt_event *event);
+extern bt_stream *bt_event_borrow_stream(bt_event *event) __BT_NOEXCEPT;
 
 /*!
 @brief
@@ -213,7 +215,7 @@ extern bt_stream *bt_event_borrow_stream(bt_event *event);
 See bt_event_borrow_stream().
 */
 extern const bt_stream *bt_event_borrow_stream_const(
-               const bt_event *event);
+               const bt_event *event) __BT_NOEXCEPT;
 
 /*! @} */
 
@@ -243,7 +245,7 @@ extern const bt_stream *bt_event_borrow_stream_const(
 @sa bt_event_borrow_packet_const() &mdash;
     \c const version of this function.
 */
-extern bt_packet *bt_event_borrow_packet(bt_event *event);
+extern bt_packet *bt_event_borrow_packet(bt_event *event) __BT_NOEXCEPT;
 
 /*!
 @brief
@@ -253,7 +255,7 @@ extern bt_packet *bt_event_borrow_packet(bt_event *event);
 See bt_event_borrow_packet().
 */
 extern const bt_packet *bt_event_borrow_packet_const(
-               const bt_event *event);
+               const bt_event *event) __BT_NOEXCEPT;
 
 /*! @} */
 
@@ -280,7 +282,7 @@ See the \ref api-tir-ev-prop-payload "payload field" property.
 @sa bt_event_borrow_payload_field_const() &mdash;
     \c const version of this function.
 */
-extern bt_field *bt_event_borrow_payload_field(bt_event *event);
+extern bt_field *bt_event_borrow_payload_field(bt_event *event) __BT_NOEXCEPT;
 
 /*!
 @brief
@@ -290,7 +292,7 @@ extern bt_field *bt_event_borrow_payload_field(bt_event *event);
 See bt_event_borrow_payload_field().
 */
 extern const bt_field *bt_event_borrow_payload_field_const(
-               const bt_event *event);
+               const bt_event *event) __BT_NOEXCEPT;
 
 /*!
 @brief
@@ -311,7 +313,7 @@ See the \ref api-tir-ev-prop-spec-ctx "specific context field" property.
     \c const version of this function.
 */
 extern bt_field *
-bt_event_borrow_specific_context_field(bt_event *event);
+bt_event_borrow_specific_context_field(bt_event *event) __BT_NOEXCEPT;
 
 /*!
 @brief
@@ -321,7 +323,7 @@ bt_event_borrow_specific_context_field(bt_event *event);
 See bt_event_borrow_specific_context_field().
 */
 extern const bt_field *bt_event_borrow_specific_context_field_const(
-               const bt_event *event);
+               const bt_event *event) __BT_NOEXCEPT;
 
 /*!
 @brief
@@ -342,7 +344,7 @@ See the \ref api-tir-ev-prop-common-ctx "common context field" property.
     \c const version of this function.
 */
 extern bt_field *
-bt_event_borrow_common_context_field(bt_event *event);
+bt_event_borrow_common_context_field(bt_event *event) __BT_NOEXCEPT;
 
 /*!
 @brief
@@ -352,7 +354,7 @@ bt_event_borrow_common_context_field(bt_event *event);
 See bt_event_borrow_common_context_field().
 */
 extern const bt_field *bt_event_borrow_common_context_field_const(
-               const bt_event *event);
+               const bt_event *event) __BT_NOEXCEPT;
 
 /*! @} */
 
This page took 0.025287 seconds and 4 git commands to generate.