From: Erica Bugden Date: Mon, 11 Nov 2024 21:40:26 +0000 (-0500) Subject: cleanup: fix header include guards X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=7baafa609201eee4a5558bf8d5944cb6234545c8;p=babeltrace.git cleanup: fix header include guards ...to resolve the following linter errors: $ tools/check-include-guards.sh ... src/bindings/python/bt2/bt2/native_bt_log_and_append_error.hpp: In `#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_LOG_AND_APPEND_ERROR_H` include guard line: expecting `#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_LOG_AND_APPEND_ERROR_HPP` ... src/bindings/python/bt2/bt2/native_bt_bt2_objects.hpp: In `#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_BT2_OBJECTS_H` include guard line: expecting `#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_BT2_OBJECTS_HPP` ... These errors were introduced in commit c217058f798d ("bt2: some more .h -> .hpp") where the headers were converted to .hpp but the include guards were not updated. Change-Id: I2f422c3c8ab1a5ad1f3854fb90ca7163d61f6b04 Signed-off-by: Erica Bugden Reviewed-on: https://review.lttng.org/c/babeltrace/+/13528 Reviewed-by: Philippe Proulx Reviewed-by: Simon Marchi --- diff --git a/src/bindings/python/bt2/bt2/native_bt_bt2_objects.hpp b/src/bindings/python/bt2/bt2/native_bt_bt2_objects.hpp index 7c4ebe77..26caa53e 100644 --- a/src/bindings/python/bt2/bt2/native_bt_bt2_objects.hpp +++ b/src/bindings/python/bt2/bt2/native_bt_bt2_objects.hpp @@ -4,8 +4,8 @@ * Copyright (c) 2017 Philippe Proulx */ -#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_BT2_OBJECTS_H -#define BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_BT2_OBJECTS_H +#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_BT2_OBJECTS_HPP +#define BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_BT2_OBJECTS_HPP #include "logging/comp-logging.h" @@ -66,4 +66,4 @@ static void bt_bt2_exit_handler(void) Py_XDECREF(py_mod_bt2_exc_unknown_object_type); } -#endif /* BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_BT2_OBJECTS_H */ +#endif /* BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_BT2_OBJECTS_HPP */ diff --git a/src/bindings/python/bt2/bt2/native_bt_log_and_append_error.hpp b/src/bindings/python/bt2/bt2/native_bt_log_and_append_error.hpp index b57e789b..095cb100 100644 --- a/src/bindings/python/bt2/bt2/native_bt_log_and_append_error.hpp +++ b/src/bindings/python/bt2/bt2/native_bt_log_and_append_error.hpp @@ -4,8 +4,8 @@ * Copyright (c) 2017 Philippe Proulx */ -#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_LOG_AND_APPEND_ERROR_H -#define BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_LOG_AND_APPEND_ERROR_H +#ifndef BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_LOG_AND_APPEND_ERROR_HPP +#define BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_LOG_AND_APPEND_ERROR_HPP #include @@ -230,4 +230,4 @@ static inline void logw_exception_clear(int active_log_level) PyErr_Clear(); } -#endif /* BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_LOG_AND_APPEND_ERROR_H */ +#endif /* BABELTRACE_BINDINGS_PYTHON_BT2_BT2_NATIVE_BT_LOG_AND_APPEND_ERROR_HPP */