From 199ca9050dee02dcf2a00e0705c9d2164102da7c Mon Sep 17 00:00:00 2001 From: shining Date: Fri, 14 Feb 2020 11:37:53 +0800 Subject: [PATCH] Update the .clang-tidy to add cast rules Add the cast rules for clang-tidy, andd them into the .clang-tidy. This patch add three cast check rules. --- .clang-tidy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.clang-tidy b/.clang-tidy index bc73e01913..1c7a085346 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' + readability-magic-numbers,modernize-use-nullptr,performance-move-const-arg, + cppcoreguidelines-pro-type-cstyle-cast,cppcoreguidelines-pro-type-reinterpret-cast, + cppcoreguidelines-pro-type-const-cast' CheckOptions: - key: readability-identifier-naming.ClassCase value: CamelCase -- Gitee