debug-info: cleanup: Remove clangd unused includes
authorErica Bugden <ebugden@efficios.com>
Thu, 22 Aug 2024 18:32:22 +0000 (14:32 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 11 Nov 2024 18:37:53 +0000 (13:37 -0500)
Remove header files that are reported as unused by clangd.

Change-Id: I408b88e14392a728a211480dcfe1f481df0675ab
Signed-off-by: Erica Bugden <ebugden@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/13228
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
src/plugins/lttng-utils/debug-info/bin-info.cpp
src/plugins/lttng-utils/debug-info/bin-info.hpp
src/plugins/lttng-utils/debug-info/debug-info.cpp
src/plugins/lttng-utils/debug-info/debug-info.hpp
src/plugins/lttng-utils/debug-info/trace-ir-data-copy.hpp
src/plugins/lttng-utils/debug-info/trace-ir-mapping.cpp
src/plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.cpp

index 3931684eb69d6546a236b6ecd8a14e7bf7a06253..ee10a5a42b5889e647fc204d7b7a5cfbdc3ba226 100644 (file)
 #define BT_LOG_OUTPUT_LEVEL   (bin->log_level)
 #define BT_LOG_TAG            "PLUGIN/FLT.LTTNG-UTILS.DEBUG-INFO/BIN-INFO"
 
-#include <dwarf.h>
-#include <errno.h>
 #include <fcntl.h>
 #include <glib.h>
 #include <inttypes.h>
 #include <libgen.h>
-#include <math.h>
 #include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 
 #include "logging/comp-logging.h"
 
-#include "common/common.h"
-
 #include "bin-info.hpp"
 #include "crc32.h"
 #include "dwarf.hpp"
-#include "utils.hpp"
 
 /*
  * An address printed in hex is at most 20 bytes (16 for 64-bits +
index 0cee8aee12587eff3f23d6146fd8427ddf1a842e..d3c19c21064f8ecc390509de5b98994a4e7a0e62 100644 (file)
@@ -16,7 +16,6 @@
 
 #include <babeltrace2/babeltrace.h>
 
-#include "common/macros.h"
 #include "fd-cache/fd-cache.hpp"
 
 #define DEFAULT_DEBUG_DIR       "/usr/lib/debug"
index 08974257c48749dd051612ad6e4260a809c999f4..cca1892b9134c518771fa096e3af5d28639ea576 100644 (file)
@@ -28,7 +28,6 @@
 #include "debug-info.hpp"
 #include "trace-ir-data-copy.hpp"
 #include "trace-ir-mapping.hpp"
-#include "trace-ir-metadata-copy.hpp"
 #include "utils.hpp"
 
 #define DEFAULT_DEBUG_INFO_FIELD_NAME "debug_info"
index 65d67af888adb20e02b658a7d04a563d935aef51..7c43700f42bbeadd28017aa2c502ad9eee8f19d1 100644 (file)
@@ -16,8 +16,6 @@
 
 #include <babeltrace2/babeltrace.h>
 
-#include "common/macros.h"
-
 #define VPID_FIELD_NAME     "vpid"
 #define IP_FIELD_NAME       "ip"
 #define BADDR_FIELD_NAME    "baddr"
index 2f01adfc062075af6d2c09d7eb9d76064278379b..3174ab212a83fe6132aaf8fa672fd7a8836ba68e 100644 (file)
@@ -12,8 +12,6 @@
 
 #include <babeltrace2/babeltrace.h>
 
-#include "common/macros.h"
-
 #include "trace-ir-mapping.hpp"
 
 enum debug_info_trace_ir_mapping_status copy_trace_content(const bt_trace *in_trace,
index e56599b4b72effb08027ad0e4fb84a43a8a7a140..3e1699609a1265de15d43b912841e913e4e84d19 100644 (file)
@@ -18,7 +18,6 @@
 
 #include "common/assert.h"
 
-#include "debug-info.hpp"
 #include "trace-ir-data-copy.hpp"
 #include "trace-ir-mapping.hpp"
 #include "trace-ir-metadata-copy.hpp"
index 01319ccc5d3794c618c738229447baf389e22392..09e5aad375f59b6c243ade49dd016028ce8e5823 100644 (file)
@@ -17,7 +17,6 @@
 
 #include "common/assert.h"
 #include "common/common.h"
-#include "compat/compiler.h"
 
 #include "trace-ir-metadata-copy.hpp"
 #include "trace-ir-metadata-field-class-copy.hpp"
This page took 0.02854 seconds and 4 git commands to generate.