From c0bfb03af6e85d89f684497bea6e099e8d18216e Mon Sep 17 00:00:00 2001 From: parmeet Date: Tue, 30 Mar 2021 17:20:59 -0400 Subject: [PATCH] Fix .clang-tidy (#1412) --- .clang-tidy | 57 ++++++++++++++++++++++++++++------------------------- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index a3a40b5907..e2d7eb387d 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,32 +1,35 @@ --- -# NOTE there must be no spaces before the '-', so put the comma first. +# NOTE there must be no spaces before the '-' and check name. +# If you edit this list, please verify list of enabled check with +# clang-tidy --list-checks +InheritParentConfig: true Checks: ' - -* - ,bugprone-* - ,-bugprone-forward-declaration-namespace - ,-bugprone-macro-parentheses - ,cppcoreguidelines-* - ,-cppcoreguidelines-interfaces-global-init - ,-cppcoreguidelines-owning-memory - ,-cppcoreguidelines-pro-bounds-array-to-pointer-decay - ,-cppcoreguidelines-pro-bounds-constant-array-index - ,-cppcoreguidelines-pro-bounds-pointer-arithmetic - ,-cppcoreguidelines-pro-type-cstyle-cast - ,-cppcoreguidelines-pro-type-reinterpret-cast - ,-cppcoreguidelines-pro-type-static-cast-downcast - ,-cppcoreguidelines-pro-type-union-access - ,-cppcoreguidelines-pro-type-vararg - ,-cppcoreguidelines-special-member-functions - ,hicpp-exception-baseclass - ,hicpp-avoid-goto - ,modernize-* - ,-modernize-return-braced-init-list - ,-modernize-use-auto - ,-modernize-use-default-member-init - ,-modernize-use-using - ,performance-unnecessary-value-param - ' -WarningsAsErrors: '*' +bugprone-*, +-bugprone-forward-declaration-namespace, +-bugprone-macro-parentheses, +-clang-analyzer-*, +cppcoreguidelines-*, +-cppcoreguidelines-interfaces-global-init, +-cppcoreguidelines-owning-memory, +-cppcoreguidelines-pro-bounds-array-to-pointer-decay, +-cppcoreguidelines-pro-bounds-constant-array-index, +-cppcoreguidelines-pro-bounds-pointer-arithmetic, +-cppcoreguidelines-pro-type-cstyle-cast, +-cppcoreguidelines-pro-type-reinterpret-cast, +-cppcoreguidelines-pro-type-static-cast-downcast, +-cppcoreguidelines-pro-type-union-access, +-cppcoreguidelines-pro-type-vararg, +-cppcoreguidelines-special-member-functions, +-facebook-hte-RelativeInclude, +hicpp-exception-baseclass, +hicpp-avoid-goto, +modernize-*, +-modernize-return-braced-init-list, +-modernize-use-auto, +-modernize-use-default-member-init, +-modernize-use-using, +performance-unnecessary-value-param, +' HeaderFilterRegex: 'torchaudio/.*' AnalyzeTemporaryDtors: false CheckOptions: