From: Jérémie Galarneau Date: Fri, 22 Mar 2024 19:33:57 +0000 (-0400) Subject: Clean-up: clang-tidy: missing headers prevent analysis X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=13d03b1e7e910dc0197275764efb6caeed6642aa;p=lttng-tools.git Clean-up: clang-tidy: missing headers prevent analysis clang-tidy complains that some headers omit the inclusion of their dependencies, which prevents the analysis from completing. Signed-off-by: Jérémie Galarneau Change-Id: Ic6d51e82c5f5536c0d421c38a97afddbe64a16ef --- diff --git a/include/lttng/channel-internal.hpp b/include/lttng/channel-internal.hpp index ec17e8a19..bcf3225ed 100644 --- a/include/lttng/channel-internal.hpp +++ b/include/lttng/channel-internal.hpp @@ -8,6 +8,7 @@ #ifndef LTTNG_CHANNEL_INTERNAL_H #define LTTNG_CHANNEL_INTERNAL_H +#include #include struct lttng_channel_extended { diff --git a/include/lttng/ref-internal.hpp b/include/lttng/ref-internal.hpp index 13c1a69ee..8416d6bcf 100644 --- a/include/lttng/ref-internal.hpp +++ b/include/lttng/ref-internal.hpp @@ -1,6 +1,3 @@ -#ifndef LTTNG_REF_INTERNAL_H -#define LTTNG_REF_INTERNAL_H - /* * LTTng - Non thread-safe reference counting * @@ -10,6 +7,13 @@ * */ +#ifndef LTTNG_REF_INTERNAL_H +#define LTTNG_REF_INTERNAL_H + +#include + +#include + using lttng_release_func = void (*)(void *); struct lttng_ref { diff --git a/src/bin/lttng-sessiond/agent.hpp b/src/bin/lttng-sessiond/agent.hpp index 258517b5d..f9d3cb656 100644 --- a/src/bin/lttng-sessiond/agent.hpp +++ b/src/bin/lttng-sessiond/agent.hpp @@ -14,6 +14,7 @@ #include #include +#include /* Agent protocol version that is verified during the agent registration. */ #define AGENT_MAJOR_VERSION 2 diff --git a/src/common/snapshot.hpp b/src/common/snapshot.hpp index 3018fb813..1465fbd4d 100644 --- a/src/common/snapshot.hpp +++ b/src/common/snapshot.hpp @@ -8,6 +8,7 @@ #ifndef COMMON_SNAPSHOT_H #define COMMON_SNAPSHOT_H +#include #include #include