Skip to content
Snippets Groups Projects
Verified Commit 8dbcd0c3 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

fix linting errors

parent 1acc4428
No related branches found
No related tags found
1 merge request!27F move entity
Pipeline #14869 passed
Pipeline: caosdb-cppinttest

#14871

    ...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
    #include <boost/filesystem/fstream.hpp> // for ifstream #include <boost/filesystem/fstream.hpp> // for ifstream
    #include <boost/filesystem/operations.hpp> // for exists #include <boost/filesystem/operations.hpp> // for exists
    #include <boost/filesystem/path.hpp> // for path #include <boost/filesystem/path.hpp> // for path
    #include <cstddef> // for size_t
    #include <fstream> // for ifstream, size_t #include <fstream> // for ifstream, size_t
    #include <string> // for string #include <string> // for string
    ......
    ...@@ -41,7 +41,7 @@ set(test_cases ...@@ -41,7 +41,7 @@ set(test_cases
    # special linting for tests # special linting for tests
    set(_CMAKE_CXX_CLANG_TIDY_TEST_CHECKS set(_CMAKE_CXX_CLANG_TIDY_TEST_CHECKS
    "${_CMAKE_CXX_CLANG_TIDY_CHECKS},-cert-err58-cpp,-cppcoreguidelines-avoid-non-const-global-variables,-cppcoreguidelines-owning-memory,-modernize-use-trailing-return-type,-google-readability-avoid-underscore-in-googletest-name,-cppcoreguidelines-avoid-magic-numbers,-readability-magic-numbers,-cppcoreguidelines-avoid-goto,-hicpp-avoid-goto,-readability-function-cognitive-complexity,-cppcoreguidelines-non-private-member-variables-in-classes,-misc-non-private-member-variables-in-classes" "${_CMAKE_CXX_CLANG_TIDY_CHECKS},-cert-err58-cpp,-cppcoreguidelines-avoid-non-const-global-variables,-cppcoreguidelines-owning-memory,-modernize-use-trailing-return-type,-google-readability-avoid-underscore-in-googletest-name,-cppcoreguidelines-avoid-magic-numbers,-readability-magic-numbers,-cppcoreguidelines-avoid-goto,-hicpp-avoid-goto,-readability-function-cognitive-complexity,-cppcoreguidelines-non-private-member-variables-in-classes,-misc-non-private-member-variables-in-classes,-clang-analyzer-cplusplus.Move"
    ) )
    # add special cmake functions for gtest # add special cmake functions for gtest
    ......
    ...@@ -134,7 +134,7 @@ TEST(test_data_type, data_type_copy_constructor) { ...@@ -134,7 +134,7 @@ TEST(test_data_type, data_type_copy_constructor) {
    const auto dt_string = data_type.ToString(); const auto dt_string = data_type.ToString();
    // copy // copy
    const DataType copy_data_type(data_type); const DataType copy_data_type(data_type); // NOLINT (explicit copy)
    EXPECT_EQ(copy_data_type, data_type); EXPECT_EQ(copy_data_type, data_type);
    EXPECT_EQ(dt_string, copy_data_type.ToString()); EXPECT_EQ(dt_string, copy_data_type.ToString());
    } }
    ...@@ -146,7 +146,7 @@ TEST(test_data_type, data_type_move_constructor) { ...@@ -146,7 +146,7 @@ TEST(test_data_type, data_type_move_constructor) {
    // copy for testing // copy for testing
    const DataType copy_data_type(data_type); const DataType copy_data_type(data_type);
    // move // move
    const DataType move_data_type(std::move(data_type)); const DataType move_data_type(std::move(data_type)); // NOLINT
    EXPECT_NE(data_type, copy_data_type); // NOLINT EXPECT_NE(data_type, copy_data_type); // NOLINT
    EXPECT_NE(data_type.ToString(), dt_string); // NOLINT EXPECT_NE(data_type.ToString(), dt_string); // NOLINT
    ...@@ -159,7 +159,7 @@ TEST(test_data_type, data_type_copy_assignment) { ...@@ -159,7 +159,7 @@ TEST(test_data_type, data_type_copy_assignment) {
    const auto dt_string = data_type.ToString(); const auto dt_string = data_type.ToString();
    // copy // copy
    DataType copy_data_type = data_type; DataType copy_data_type = data_type; // NOLINT (explicit copy)
    EXPECT_EQ(copy_data_type, data_type); EXPECT_EQ(copy_data_type, data_type);
    EXPECT_EQ(dt_string, copy_data_type.ToString()); EXPECT_EQ(dt_string, copy_data_type.ToString());
    } }
    ...@@ -171,7 +171,7 @@ TEST(test_data_type, data_type_move_assignment) { ...@@ -171,7 +171,7 @@ TEST(test_data_type, data_type_move_assignment) {
    // copy for testing // copy for testing
    const DataType copy_data_type(data_type); const DataType copy_data_type(data_type);
    // move // move
    DataType move_data_type = std::move(data_type); DataType move_data_type = std::move(data_type); // NOLINT
    EXPECT_NE(data_type, copy_data_type); // NOLINT EXPECT_NE(data_type, copy_data_type); // NOLINT
    EXPECT_NE(data_type.ToString(), dt_string); // NOLINT EXPECT_NE(data_type.ToString(), dt_string); // NOLINT
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment