Clean-up: clang-tidy: missing headers prevent analysis
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 22 Mar 2024 19:33:57 +0000 (15:33 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 22 Mar 2024 19:33:57 +0000 (15:33 -0400)
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 <jeremie.galarneau@efficios.com>
Change-Id: Ic6d51e82c5f5536c0d421c38a97afddbe64a16ef

include/lttng/channel-internal.hpp
include/lttng/ref-internal.hpp
src/bin/lttng-sessiond/agent.hpp
src/common/snapshot.hpp

index ec17e8a19bc7dafeb69038a324697c76b8fa90ae..bcf3225ed6ed3f5b7fca5a64caaee715b644c213 100644 (file)
@@ -8,6 +8,7 @@
 #ifndef LTTNG_CHANNEL_INTERNAL_H
 #define LTTNG_CHANNEL_INTERNAL_H
 
+#include <common/error.hpp>
 #include <common/macros.hpp>
 
 struct lttng_channel_extended {
index 13c1a69eedb89ee9e8191f0a337a88b17721cc49..8416d6bcff29f4526836a7b3682c688cf12e26c4 100644 (file)
@@ -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 <common/macros.hpp>
+
+#include <urcu/urcu.h>
+
 using lttng_release_func = void (*)(void *);
 
 struct lttng_ref {
index 258517b5d16185772426a6504acc4f4546976755..f9d3cb656140c233f7c401de93368091857150d0 100644 (file)
@@ -14,6 +14,7 @@
 #include <lttng/lttng.h>
 
 #include <inttypes.h>
+#include <urcu/urcu.h>
 
 /* Agent protocol version that is verified during the agent registration. */
 #define AGENT_MAJOR_VERSION 2
index 3018fb813034043798ba0f4f65d73643a2e0245c..1465fbd4d1a6fd5d9a9da6a52db5f7e34d08ddfa 100644 (file)
@@ -8,6 +8,7 @@
 #ifndef COMMON_SNAPSHOT_H
 #define COMMON_SNAPSHOT_H
 
+#include <common/error.hpp>
 #include <common/macros.hpp>
 
 #include <stdbool.h>
This page took 0.027541 seconds and 4 git commands to generate.