From d052a3a3ec3be09a255d81e54f9828e375c34cac Mon Sep 17 00:00:00 2001 From: shining Date: Mon, 17 Feb 2020 17:01:03 +0800 Subject: [PATCH] Update the .clang-tidy to add check rules Add the check rules of clang-tidy into .clang-tidy. Sort the rules. --- .clang-tidy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 1c7a085346..b41ec6b295 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,5 +1,7 @@ -Checks: '-*,readability-identifier-naming,readability-function-size,misc-unused-parameters, - readability-magic-numbers,modernize-use-nullptr,performance-move-const-arg, +Checks: '-*,readability-identifier-naming,readability-function-size, + readability-braces-around-statements,readability-magic-numbers, + misc-unused-parameters,modernize-use-nullptr,modernize-replace-auto-ptr, + modernize-use-noexcept,modernize-use-override,performance-move-const-arg, cppcoreguidelines-pro-type-cstyle-cast,cppcoreguidelines-pro-type-reinterpret-cast, cppcoreguidelines-pro-type-const-cast' CheckOptions: -- Gitee