cleanup: fix header include guards
authorErica Bugden <ebugden@efficios.com>
Mon, 11 Nov 2024 21:40:26 +0000 (16:40 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 14 Nov 2024 20:26:31 +0000 (15:26 -0500)
...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 <ebugden@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/13528
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
src/bindings/python/bt2/bt2/native_bt_bt2_objects.hpp
src/bindings/python/bt2/bt2/native_bt_log_and_append_error.hpp

index 7c4ebe770b7763eb50f695f7f6ea31107d4224aa..26caa53e2a35fdd126b84f1cc12a949dd0cdb944 100644 (file)
@@ -4,8 +4,8 @@
  * Copyright (c) 2017 Philippe Proulx <pproulx@efficios.com>
  */
 
-#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 */
index b57e789befad302766bc1627b2f66ae321f85141..095cb100c8d536a9f5259cdab90c9202070b44ce 100644 (file)
@@ -4,8 +4,8 @@
  * Copyright (c) 2017 Philippe Proulx <pproulx@efficios.com>
  */
 
-#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 <stdbool.h>
 
@@ -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 */
This page took 0.025832 seconds and 4 git commands to generate.