Commit 339e0b26 authored by test's avatar test
Browse files

MS-575 Add Clang-format & Clang-tidy & Cpplint


Former-commit-id: 34d2b3b1abae216df63f8296b9f57bbf797fc041
parent d0e07fb0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ struct BufferDeleter {
        free((void*)buffer->data());
    }
};
}
}  // namespace internal

inline BufferPtr
MakeBufferSmart(uint8_t* data, const int64_t size) {
+1 −1
Original line number Diff line number Diff line
@@ -43,9 +43,9 @@ namespace kn = knowhere;

}  // namespace

using ::testing::Combine;
using ::testing::TestWithParam;
using ::testing::Values;
using ::testing::Combine;

constexpr int device_id = 0;
constexpr int64_t DIM = 128;
+1 −1
Original line number Diff line number Diff line
@@ -34,9 +34,9 @@ namespace kn = knowhere;

}  // namespace

using ::testing::Combine;
using ::testing::TestWithParam;
using ::testing::Values;
using ::testing::Combine;

class KDTTest : public DataGen, public ::testing::Test {
 protected:
+1 −1
Original line number Diff line number Diff line
@@ -32,9 +32,9 @@ namespace kn = knowhere;

}  // namespace

using ::testing::Combine;
using ::testing::TestWithParam;
using ::testing::Values;
using ::testing::Combine;

constexpr int64_t DEVICE_ID = 1;

+3 −3
Original line number Diff line number Diff line
@@ -55,9 +55,9 @@ MemTableFile::CreateTableFile() {
Status
MemTableFile::Add(const VectorSourcePtr& source, IDNumbers& vector_ids) {
    if (table_file_schema_.dimension_ <= 0) {
        std::string err_msg = "MemTableFile::Add: table_file_schema dimension = " +
                              std::to_string(table_file_schema_.dimension_) + ", table_id = " +
                              table_file_schema_.table_id_;
        std::string err_msg =
            "MemTableFile::Add: table_file_schema dimension = " + std::to_string(table_file_schema_.dimension_) +
            ", table_id = " + table_file_schema_.table_id_;
        ENGINE_LOG_ERROR << err_msg;
        return Status(DB_ERROR, "Not able to create table file");
    }
Loading