From 289ee542f0c89202003b4b618bf690632ce89452 Mon Sep 17 00:00:00 2001 From: Sarah Gilmore Date: Wed, 20 Sep 2023 16:58:57 -0400 Subject: [PATCH] try using formatter --- matlab/src/cpp/arrow/matlab/formatting.cc | 28 +++++++++++++++++++ .../cmake/BuildMatlabArrowInterface.cmake | 3 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 matlab/src/cpp/arrow/matlab/formatting.cc diff --git a/matlab/src/cpp/arrow/matlab/formatting.cc b/matlab/src/cpp/arrow/matlab/formatting.cc new file mode 100644 index 0000000000000..c4397b1aef0ac --- /dev/null +++ b/matlab/src/cpp/arrow/matlab/formatting.cc @@ -0,0 +1,28 @@ +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. + + +#include "arrow/util/formatting.h" + +#include "arrow/type.h" + +namespace arrow::matlab::formatting { + + void test() { + arrow::internal::StringFormatter fmt; + } +} diff --git a/matlab/tools/cmake/BuildMatlabArrowInterface.cmake b/matlab/tools/cmake/BuildMatlabArrowInterface.cmake index 294612dda370f..ab1ca0ea845b6 100644 --- a/matlab/tools/cmake/BuildMatlabArrowInterface.cmake +++ b/matlab/tools/cmake/BuildMatlabArrowInterface.cmake @@ -72,7 +72,8 @@ set(MATLAB_ARROW_LIBMEXCLASS_CLIENT_PROXY_SOURCES "${CMAKE_SOURCE_DIR}/src/cpp/a "${CMAKE_SOURCE_DIR}/src/cpp/arrow/matlab/io/feather/proxy/reader.cc" "${CMAKE_SOURCE_DIR}/src/cpp/arrow/matlab/io/csv/proxy/table_writer.cc" "${CMAKE_SOURCE_DIR}/src/cpp/arrow/matlab/io/csv/proxy/table_reader.cc" - "${CMAKE_SOURCE_DIR}/src/cpp/arrow/matlab/index/validate.cc") + "${CMAKE_SOURCE_DIR}/src/cpp/arrow/matlab/index/validate.cc" + "${CMAKE_SOURCE_DIR}/src/cpp/arrow/matlab/formatting.cc") set(MATLAB_ARROW_LIBMEXCLASS_CLIENT_PROXY_FACTORY_INCLUDE_DIR "${CMAKE_SOURCE_DIR}/src/cpp/arrow/matlab/proxy") set(MATLAB_ARROW_LIBMEXCLASS_CLIENT_PROXY_FACTORY_SOURCES "${CMAKE_SOURCE_DIR}/src/cpp/arrow/matlab/proxy/factory.cc")