From 07b7753216530e1b90afaeeda045ae6333af2145 Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Wed, 12 Aug 2020 11:22:16 +0200 Subject: [PATCH] Enable "trivial" modernize clang-tidy checks This is a bunch of modernize checks which we don't hit at all. This is an easy win and also make sure those old constructs won't creep up behind our back. Note that some of them won't trigger until we bump our C++ baseline standard to C++17. But I'd say that's OK, that'll force our hand to do those C++17 related cleanups when the time comes. Signed-off-by: Kevin Ottens --- .clang-tidy | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.clang-tidy b/.clang-tidy index 4c03e129d..cda2510ad 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,16 +1,23 @@ Checks: '-*, cppcoreguidelines-init-variables, + modernize-avoid-bind, + modernize-concat-nested-namespaces, + modernize-deprecated-ios-base-aliases, modernize-make-*, modernize-raw-string-literal, modernize-redundant-void-arg, modernize-replace-*, modernize-return-braced-init-list, modernize-shrink-to-fit, + modernize-unary-static-assert, modernize-use-auto, modernize-use-bool-literals, modernize-use-default-member-init, modernize-use-emplace, + modernize-use-equals-delete, + modernize-use-nodiscard, modernize-use-noexcept, + modernize-user-override, modernize-use-transparent-functors, modernize-use-uncaught-exceptions, ' -- 2.30.2