From 28d4e2faa39ab85b9b32c52f3f1c1f3e39b713bb Mon Sep 17 00:00:00 2001 From: Nikita Grigorian Date: Wed, 5 Nov 2025 11:54:57 -0800 Subject: [PATCH] Fix linting with new clang version GH CI runners now use clang-format 18.1.8 --- dpctl/tensor/libtensor/include/kernels/accumulators.hpp | 4 ++-- dpctl/tensor/libtensor/include/utils/offset_utils.hpp | 2 +- .../external_usm_allocation/_usm_alloc_example.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dpctl/tensor/libtensor/include/kernels/accumulators.hpp b/dpctl/tensor/libtensor/include/kernels/accumulators.hpp index 407ea9e19a..f0d2e145fc 100644 --- a/dpctl/tensor/libtensor/include/kernels/accumulators.hpp +++ b/dpctl/tensor/libtensor/include/kernels/accumulators.hpp @@ -114,7 +114,7 @@ template class stack_t : src_(src), size_(sz), local_scans_(local_scans) { } - ~stack_t(){}; + ~stack_t() {}; T *get_src_ptr() const { return src_; } @@ -140,7 +140,7 @@ template class stack_strided_t local_stride_(local_stride) { } - ~stack_strided_t(){}; + ~stack_strided_t() {}; T *get_src_ptr() const { return src_; } diff --git a/dpctl/tensor/libtensor/include/utils/offset_utils.hpp b/dpctl/tensor/libtensor/include/utils/offset_utils.hpp index 84222d83ac..1657f6eb0c 100644 --- a/dpctl/tensor/libtensor/include/utils/offset_utils.hpp +++ b/dpctl/tensor/libtensor/include/utils/offset_utils.hpp @@ -51,7 +51,7 @@ namespace detail struct sink_t { - sink_t(){}; + sink_t() {}; template sink_t(T &&){}; }; diff --git a/examples/pybind11/external_usm_allocation/external_usm_allocation/_usm_alloc_example.cpp b/examples/pybind11/external_usm_allocation/external_usm_allocation/_usm_alloc_example.cpp index b982fcaa20..f92a99026e 100644 --- a/examples/pybind11/external_usm_allocation/external_usm_allocation/_usm_alloc_example.cpp +++ b/examples/pybind11/external_usm_allocation/external_usm_allocation/_usm_alloc_example.cpp @@ -49,7 +49,7 @@ struct DMatrix : n_(rows), m_(columns), q_(q), alloc_(q), vec_(n_ * m_, alloc_) { } - ~DMatrix(){}; + ~DMatrix() {}; DMatrix(const DMatrix &) = default; DMatrix(DMatrix &&) = default;