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

MAINT: (re-)enable some linter checks

parent 26b3d9e5
No related branches found
No related tags found
2 merge requests!42Release 0.2.0,!39F remove boost rdep
Pipeline #24631 passed
Pipeline: caosdb-cppinttest

#24632

    ...@@ -323,7 +323,7 @@ if(_LINTING) ...@@ -323,7 +323,7 @@ if(_LINTING)
    else() else()
    message(STATUS "clang-tidy: ${clang_tidy}") message(STATUS "clang-tidy: ${clang_tidy}")
    set(_CMAKE_CXX_CLANG_TIDY_CHECKS set(_CMAKE_CXX_CLANG_TIDY_CHECKS
    "--checks=*,-fuchsia-*,-llvmlibc-*,-readability-convert-member-functions-to-static,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-hicpp-no-array-decay,-llvm-else-after-return,-readability-else-after-return,-modernize-use-trailing-return-type,-bugprone-branch-clone,-altera-*,-cppcoreguidelines-macro-usage") "--checks=*,-fuchsia-*,-llvmlibc-*,-readability-convert-member-functions-to-static,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-hicpp-no-array-decay,-llvm-else-after-return,-readability-else-after-return,-modernize-use-trailing-return-type,-bugprone-branch-clone,-altera-*")
    set(_CMAKE_C_CLANG_TIDY_CHECKS "${_CMAKE_CXX_CLANG_TIDY_CHECKS}") set(_CMAKE_C_CLANG_TIDY_CHECKS "${_CMAKE_CXX_CLANG_TIDY_CHECKS}")
    set(_CMAKE_CXX_CLANG_TIDY "${clang_tidy}" set(_CMAKE_CXX_CLANG_TIDY "${clang_tidy}"
    "--header-filter=caosdb/.*[^\(\.pb\.h\)]$" "--header-filter=caosdb/.*[^\(\.pb\.h\)]$"
    ......
    ...@@ -45,9 +45,11 @@ ...@@ -45,9 +45,11 @@
    #include <string> // for string, operator+ #include <string> // for string, operator+
    #include <utility> // for move #include <utility> // for move
    // NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
    #define WRAPPED_JSON_CONFIGURATION(obj) \ #define WRAPPED_JSON_CONFIGURATION(obj) \
    (static_cast<value *>((obj)->json_configuration.wrapped.get())) (static_cast<value *>((obj)->json_configuration.wrapped.get()))
    // NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
    #define GET_CONNECTIONS \ #define GET_CONNECTIONS \
    if (!this->json_configuration.wrapped) { \ if (!this->json_configuration.wrapped) { \
    throw ConfigurationError("This CaosDB client has not been configured."); \ throw ConfigurationError("This CaosDB client has not been configured."); \
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment