From 82593156989fd04c1265a6d1217417d17164659c Mon Sep 17 00:00:00 2001 From: Alexis Placet Date: Fri, 7 Jun 2024 14:29:47 +0200 Subject: [PATCH] Coding rules --- include/sparrow/c_interface.hpp | 6 +++--- test/test_c_data_interface.cpp | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/sparrow/c_interface.hpp b/include/sparrow/c_interface.hpp index a5ef0893..94cceaaf 100644 --- a/include/sparrow/c_interface.hpp +++ b/include/sparrow/c_interface.hpp @@ -383,7 +383,7 @@ namespace sparrow return schema; }; - struct ArrowArrayCustomDeleter + struct arrow_array_custom_deleter { void operator()(ArrowArray* array) const { @@ -416,7 +416,7 @@ namespace sparrow */ template class Allocator, std::ranges::input_range R> requires sparrow::allocator> && std::is_integral_v> - std::unique_ptr make_arrow_array( + std::unique_ptr make_arrow_array( int64_t length, int64_t null_count, int64_t offset, @@ -436,7 +436,7 @@ namespace sparrow } )) - std::unique_ptr array(new ArrowArray()); + std::unique_ptr array(new ArrowArray()); array->private_data = new arrow_array_private_data( std::move(children), diff --git a/test/test_c_data_interface.cpp b/test/test_c_data_interface.cpp index d702beb9..2fea1ede 100644 --- a/test/test_c_data_interface.cpp +++ b/test/test_c_data_interface.cpp @@ -12,15 +12,16 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include #include #include #include -#include #include "sparrow/c_interface.hpp" #include "doctest/doctest.h" + TEST_SUITE("C Data Interface") { TEST_CASE("ArrowArray")