diff --git a/.clang-tidy b/.clang-tidy index d5fa39a223055683526564a12e68b9c8eb1625d5..e96d8ac8ea75c8565a381bda269ddbf6fea7bb06 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -11,7 +11,7 @@ # As we are not aware of an official way to insert comments in a long string literal, # we do a dirty little trick: we write comments as if they were no-check specifiers. # -Checks: ' +Checks: '*, -SectionComment_We_disagree_with_the_following_checks__They_shall_remain_permanently_disabled, @@ -77,6 +77,9 @@ Checks: ' -readability-isolate-declaration, -performance-inefficient-vector-operation, -performance-unnecessary-copy-initialization, +-*-move-const-arg, +-modernize-use-default-member-init, +-readability-redundant-member-init, -SectionComment_Disabled_unless_3rdparty_libraries_are_improved, @@ -103,27 +106,25 @@ Checks: ' -SectionComment_Temporarily_disabled_checks__We_need_to_investigate_them_one_by_one, +-bugprone-copy-constructor-init, -bugprone-exception-escape, -bugprone-misplaced-widening-cast, --bugprone-copy-constructor-init, -clang-analyzer-core.CallAndMessage, +-clang-analyzer-optin.cplusplus.VirtualCall, -cppcoreguidelines-pro-type-const-cast, +-cppcoreguidelines-pro-type-static-cast-downcast, -google-runtime-references, --modernize-loop-convert, --modernize-use-default-member-init, -misc-non-private-member-variables-in-classes, +-modernize-loop-convert, -SectionComment_Automizable__To_be_kept_satisfied, *-use-auto, -*-move-const-arg, *-use-emplace, *-use-equals-default, *-use-nullptr, *-use-override, -clang-analyzer-optin.cplusplus.VirtualCall, cppcoreguidelines-explicit-virtual-functions, -cppcoreguidelines-pro-type-static-cast-downcast, google-readability-avoid-underscore-in-googletest-name, hicpp-noexcept-move, llvm-qualified-auto, @@ -141,7 +142,6 @@ readability-container-size-empty, readability-delete-null-pointer, readability-inconsistent-declaration-parameter-name, readability-qualified-auto, -readability-redundant-member-init, readability-simplify-boolean-expr, diff --git a/Core/Scan/ScanResolution.cpp b/Core/Scan/ScanResolution.cpp index 3db8c612edfd833684708879687fe950df4d34f5..9eb82986e626528a2c6818115c365393e273bbe1 100644 --- a/Core/Scan/ScanResolution.cpp +++ b/Core/Scan/ScanResolution.cpp @@ -135,7 +135,7 @@ private: class ScanEmptyResolution : public ScanResolution { public: - ScanEmptyResolution() {} + ScanEmptyResolution() = default; ~ScanEmptyResolution() override = default;