Add some includes in C++ header files
authorSimon Marchi <simon.marchi@efficios.com>
Sun, 10 Dec 2023 04:35:00 +0000 (23:35 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 14 Dec 2023 15:57:04 +0000 (10:57 -0500)
Add some includes to fix errors shown by clangd when editing header
files.  These don't fix compilation errors.

Change-Id: I1792b50c5808d9a9c3f045decea97745aac6a77f
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11496
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/cpp-common/bt2/common-iter.hpp
src/cpp-common/bt2/message.hpp
src/plugins/ctf/common/bfcr/bfcr.hpp
src/plugins/ctf/common/metadata/ctf-meta-configure-ir-trace.hpp
src/plugins/ctf/common/metadata/decoder-packetized-file-stream-to-buf.hpp
src/plugins/ctf/common/metadata/objstack.hpp
src/plugins/ctf/fs-src/lttng-index.hpp

index 553282f871219fb4a77ac4d5d0a93d1dd36a4803..2ac9e57ce00cfe33882196c3a5aa29d0904b1219 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef BABELTRACE_CPP_COMMON_BT2_COMMON_ITER_HPP
 #define BABELTRACE_CPP_COMMON_BT2_COMMON_ITER_HPP
 
+#include <cstdint>
 #include <iterator>
 
 #include "cpp-common/optional.hpp"
index 36ea68a3e74dde7d3ec51536c48dd49e14a8a686..fe476dc6dd7081fb935971a652a8e9ed6bbe6d80 100644 (file)
@@ -13,6 +13,7 @@
 #include <babeltrace2/babeltrace.h>
 
 #include "common/assert.h"
+#include "cpp-common/bt2/clock-snapshot.hpp"
 #include "cpp-common/bt2/trace-ir.hpp"
 #include "cpp-common/optional.hpp"
 
index 8a7864e3478afa03322e95383697ccaf18b659b0..f2fe879605b78038445a9e3dc1a7190b0e938caa 100644 (file)
@@ -15,6 +15,8 @@
 
 #include <babeltrace2/babeltrace.h>
 
+#include "common/common.h"
+
 /**
  * @file bfcr.h
  *
index 0f9c8795f5a4bd8e064b7f820270bd83d7f4fca3..f94f19e66beb475f3eab33d839e2335e4379d1d3 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef _CTF_META_CONFIGURE_IR_TRACE_H
 #define _CTF_META_CONFIGURE_IR_TRACE_H
 
+#include <babeltrace2/babeltrace.h>
+
 int ctf_trace_class_configure_ir_trace(struct ctf_trace_class *tc, bt_trace *ir_trace);
 
 #endif /* _CTF_META_CONFIGURE_IR_TRACE_H */
index 1f2b9b927e02687ddba62c8589b7901ffa4e1154..8d8315365791bdb4ea06b31d8ead2d66a4610edb 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef SRC_PLUGINS_CTF_COMMON_METADATA_DECODER_PACKETIZED_FILE_STREAM_TO_BUF
 #define SRC_PLUGINS_CTF_COMMON_METADATA_DECODER_PACKETIZED_FILE_STREAM_TO_BUF
 
+#include <cstdio>
+
 #include <stdint.h>
 
 #include <babeltrace2/babeltrace.h>
index 93154b10971e9c37c03175c092120f2e3b4a5d6c..2c91e1409d0a73e59ad91d3fb57e397dcefff760 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef _OBJSTACK_H
 #define _OBJSTACK_H
 
+#include <cstddef>
+
 struct objstack *objstack_create(void);
 void objstack_destroy(struct objstack *objstack);
 
index 1542679de3d00b557fd3239726e455384185cd65..e07d87bc9d4789a2676a2972f010a8a1c1dd58c9 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef LTTNG_INDEX_H
 #define LTTNG_INDEX_H
 
+#include <cstdint>
+
 #include "compat/limits.h"
 
 #define CTF_INDEX_MAGIC    0xC1F1DCC1
This page took 0.027775 seconds and 4 git commands to generate.