From 72d5972cfb2ffecfe424327d22a616655d996674 Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Wed, 6 Mar 2024 10:27:55 +0000 Subject: [PATCH] Fix format --- CMake/resolve_dependency_modules/folly/CMakeLists.txt | 5 +++-- CMakeLists.txt | 2 +- velox/core/PlanNode.h | 7 +++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CMake/resolve_dependency_modules/folly/CMakeLists.txt b/CMake/resolve_dependency_modules/folly/CMakeLists.txt index 94a00c7e9dde7..ce94132f672da 100644 --- a/CMake/resolve_dependency_modules/folly/CMakeLists.txt +++ b/CMake/resolve_dependency_modules/folly/CMakeLists.txt @@ -32,8 +32,9 @@ if(VELOX_ENABLE_GPU) set(cudacc_patch && git apply ${CMAKE_CURRENT_LIST_DIR}/folly-cudacc.patch) endif() -set(VELOX_FOLLY_PATCH_COMMAND git apply ${CMAKE_CURRENT_LIST_DIR}/folly-no-export.patch - ${glog_patch} ${cudacc_patch}) +set(VELOX_FOLLY_PATCH_COMMAND + git apply ${CMAKE_CURRENT_LIST_DIR}/folly-no-export.patch ${glog_patch} + ${cudacc_patch}) FetchContent_Declare( folly diff --git a/CMakeLists.txt b/CMakeLists.txt index 090a9ce3dde47..07be995dd3931 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -373,7 +373,7 @@ if(${VELOX_ENABLE_GPU}) enable_language(CUDA) # Determine CUDA_ARCHITECTURES automatically. cmake_policy(SET CMP0104 NEW) - if (NOT DEFINED CMAKE_CUDA_ARCHITECTURES) + if(NOT DEFINED CMAKE_CUDA_ARCHITECTURES) # it will fail later in the build otherwise message(FATAL_ERROR "-DCMAKE_CUDA_ARCHITECTURES= must be set") endif() diff --git a/velox/core/PlanNode.h b/velox/core/PlanNode.h index f002a7244e6ac..e74922cca9202 100644 --- a/velox/core/PlanNode.h +++ b/velox/core/PlanNode.h @@ -2406,8 +2406,11 @@ struct fmt::formatter : formatter { }; template <> -struct fmt::formatter : formatter { - auto format(facebook::velox::core::AggregationNode::Step s, format_context& ctx) { +struct fmt::formatter + : formatter { + auto format( + facebook::velox::core::AggregationNode::Step s, + format_context& ctx) { return formatter::format( facebook::velox::core::mapAggregationStepToName(s), ctx); }