.clang-tidy: enable cppcoreguidelines-avoid-const-or-ref-data-members
[babeltrace.git] / src / plugins / ctf / common / metadata / objstack.cpp
index 4828de9a1332b1646f69035d714ea40326fccf08..bdf31e02bc3ac15b620fe0cc391a8eb6a692db9c 100644 (file)
@@ -6,16 +6,16 @@
  * Common Trace Format Object Stack.
  */
 
+#include <stdlib.h>
+
 #define BT_LOG_OUTPUT_LEVEL ctf_plugin_metadata_log_level
 #define BT_LOG_TAG          "PLUGIN/CTF/META/OBJSTACK"
 #include "logging.hpp"
 
-#include "objstack.hpp"
-
-#include <stdlib.h>
-#include "common/list.h"
-#include "common/macros.h"
 #include "common/align.h"
+#include "common/list.h"
+
+#include "objstack.hpp"
 
 #define OBJSTACK_ALIGN    8 /* Object stack alignment */
 #define OBJSTACK_INIT_LEN 128
@@ -34,7 +34,6 @@ struct objstack_node
     char __attribute__((aligned(OBJSTACK_ALIGN))) data[];
 };
 
-BT_HIDDEN
 struct objstack *objstack_create(void)
 {
     struct objstack *objstack;
@@ -71,7 +70,6 @@ static void objstack_node_free(struct objstack_node *node)
     free(node);
 }
 
-BT_HIDDEN
 void objstack_destroy(struct objstack *objstack)
 {
     struct objstack_node *node, *p;
@@ -104,7 +102,6 @@ static struct objstack_node *objstack_append_node(struct objstack *objstack)
     return new_node;
 }
 
-BT_HIDDEN
 void *objstack_alloc(struct objstack *objstack, size_t len)
 {
     struct objstack_node *last_node;
This page took 0.024071 seconds and 4 git commands to generate.