Update clang-tidy configuration.
The previous clang-tidy file had some issues where the check configuration wasn't working correctly. This CL switches to disabling all checks, enabling specific categories and then disabling specific failing tests in those categories. Bug: dawn:1414 Change-Id: Id43cabfc57807991df652284a169e4733c70e632 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/91722 Auto-Submit: Dan Sinclair <dsinclair@chromium.org> Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
parent
aa25d7ed2b
commit
d7d55e4859
121
.clang-tidy
121
.clang-tidy
|
@ -1,116 +1,107 @@
|
||||||
FormatStyle: file
|
FormatStyle: file
|
||||||
Checks: "+*,\
|
Checks: "-*,\
|
||||||
-bugprone-argument-comment,\
|
abseil-*,\
|
||||||
|
-abseil-string-find-startswith,\
|
||||||
|
-abseil-string-find-str-contains,\
|
||||||
|
bugprone-*,\
|
||||||
-bugprone-branch-clone,\
|
-bugprone-branch-clone,\
|
||||||
-bugprone-copy-constructor-init,\
|
-bugprone-copy-constructor-init,\
|
||||||
-bugprone-easily-swappable-parameters,\
|
-bugprone-easily-swappable-parameters,\
|
||||||
-bugprone-exception-escape,\
|
|
||||||
-bugprone-fold-init-type,\
|
|
||||||
-bugprone-forward-declaration-namespace,\
|
-bugprone-forward-declaration-namespace,\
|
||||||
-bugprone-forwarding-reference-overload,\
|
-bugprone-forwarding-reference-overload,\
|
||||||
-bugprone-implicit-widening-of-multiplication-result,\
|
-bugprone-implicit-widening-of-multiplication-result,\
|
||||||
-bugprone-incorrect-roundings,\
|
|
||||||
-bugprone-infinite-loop,\
|
|
||||||
-bugprone-integer-division,\
|
|
||||||
-bugprone-lambda-function-name,\
|
-bugprone-lambda-function-name,\
|
||||||
-bugprone-macro-parentheses,\
|
-bugprone-macro-parentheses,\
|
||||||
-bugprone-misplaced-widening-cast,\
|
-bugprone-misplaced-widening-cast,\
|
||||||
-bugprone-move-forwarding-reference,\
|
|
||||||
-bugprone-multiple-statement-macro,\
|
|
||||||
-bugprone-narrowing-conversions,\
|
-bugprone-narrowing-conversions,\
|
||||||
-bugprone-not-null-terminated-result,\
|
|
||||||
-bugprone-parent-virtual-call,\
|
-bugprone-parent-virtual-call,\
|
||||||
-bugprone-redundant-branch-condition,\
|
|
||||||
-bugprone-reserved-identifier,\
|
-bugprone-reserved-identifier,\
|
||||||
-bugprone-signed-char-misuse,\
|
-bugprone-signed-char-misuse,\
|
||||||
-bugprone-sizeof-expression,\
|
-bugprone-sizeof-expression,\
|
||||||
-bugprone-string-constructor,\
|
-bugprone-string-constructor,\
|
||||||
-bugprone-suspicious-enum-usage,\
|
|
||||||
-bugprone-suspicious-include,\
|
-bugprone-suspicious-include,\
|
||||||
-bugprone-suspicious-memory-comparison,\
|
|
||||||
-bugprone-suspicious-string-compare,\
|
|
||||||
-bugprone-terminating-continue,\
|
|
||||||
-bugprone-throw-keyword-missing,\
|
|
||||||
-bugprone-too-small-loop-variable,\
|
-bugprone-too-small-loop-variable,\
|
||||||
-bugprone-undefined-memory-manipulation,\
|
|
||||||
-bugprone-unhandled-self-assignment,\
|
-bugprone-unhandled-self-assignment,\
|
||||||
-bugprone-unused-raii,\
|
|
||||||
-bugprone-unused-return-value,\
|
|
||||||
-bugprone-use-after-move,\
|
-bugprone-use-after-move,\
|
||||||
-bugprone-virtual-near-miss,\
|
cert-*,\
|
||||||
-cert-dcl03-c,\
|
|
||||||
-cert-dcl16-c,\
|
-cert-dcl16-c,\
|
||||||
-cert-dcl21-cpp,\
|
-cert-dcl21-cpp,\
|
||||||
|
-cert-dcl37-c,\
|
||||||
-cert-dcl50-cpp,\
|
-cert-dcl50-cpp,\
|
||||||
|
-cert-dcl51-cpp,\
|
||||||
-cert-dcl54-cpp,\
|
-cert-dcl54-cpp,\
|
||||||
-cert-dcl58-cpp,\
|
-cert-dcl58-cpp,\
|
||||||
-cert-dcl59-cpp,\
|
|
||||||
-cert-err09-cpp,\
|
|
||||||
-cert-err33-c,\
|
-cert-err33-c,\
|
||||||
-cert-err34-c,\
|
|
||||||
-cert-err52-cpp,\
|
|
||||||
-cert-err58-cpp,\
|
|
||||||
-cert-msc30-c,\
|
-cert-msc30-c,\
|
||||||
-cert-msc32-c,\
|
-cert-msc32-c,\
|
||||||
-cert-oop11-cpp,\
|
-cert-msc50-cpp,\
|
||||||
|
-cert-msc51-cpp,\
|
||||||
-cert-oop54-cpp,\
|
-cert-oop54-cpp,\
|
||||||
-cert-oop57-cpp,\
|
-cert-str34-c,\
|
||||||
-clang-analyzer-core.CallAndMessage,\
|
-cert-str34-c,\
|
||||||
-clang-analyzer-core.DivideZero,\
|
-cert-str34-c,\
|
||||||
-clang-analyzer-core.NonNullParamChecker,\
|
-cert-str34-c,\
|
||||||
-clang-analyzer-core.NullDereference,\
|
-clang-analyzer-*,\
|
||||||
-clang-analyzer-core.UndefinedBinaryOperatorResult,\
|
concurrency-*,\
|
||||||
-clang-analyzer-core.uninitialized.Assign,\
|
|
||||||
-clang-analyzer-core.uninitialized.Branch,\
|
|
||||||
-clang-analyzer-core.uninitialized.UndefReturn,\
|
|
||||||
-clang-analyzer-cplusplus.Move,\
|
|
||||||
-clang-analyzer-cplusplus.NewDelete,\
|
|
||||||
-clang-analyzer-cplusplus.NewDeleteLeaks,\
|
|
||||||
-clang-analyzer-cplusplus.PlacementNew,\
|
|
||||||
-clang-analyzer-deadcode.DeadStores,\
|
|
||||||
-clang-analyzer-optin.cplusplus.UninitializedObject,\
|
|
||||||
-clang-analyzer-optin.cplusplus.VirtualCall,\
|
|
||||||
-clang-analyzer-optin.performance.Padding,\
|
|
||||||
-clang-analyzer-optin.portability.UnixAPI,\
|
|
||||||
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,\
|
|
||||||
-clang-analyzer-security.insecureAPI.strcpy,\
|
|
||||||
-clang-analyzer-unix.Malloc,\
|
|
||||||
-clang-analyzer-valist.Unterminated,\
|
|
||||||
-concurrency-mt-unsafe,\
|
-concurrency-mt-unsafe,\
|
||||||
-google-build-using-namespace,\
|
cppcoreguidelines-*,\
|
||||||
|
-concurrency-mt-unsafe,\
|
||||||
|
-cppcoreguidelines-avoid-c-arrays,\
|
||||||
|
-cppcoreguidelines-avoid-goto,\
|
||||||
|
-cppcoreguidelines-avoid-magic-numbers,\
|
||||||
|
-cppcoreguidelines-avoid-non-const-global-variables,\
|
||||||
|
-cppcoreguidelines-c-copy-assignment-signature,\
|
||||||
|
-cppcoreguidelines-explicit-virtual-functions,\
|
||||||
|
-cppcoreguidelines-init-variables,\
|
||||||
|
-cppcoreguidelines-interfaces-global-init,\
|
||||||
|
-cppcoreguidelines-macro-usage,\
|
||||||
|
-cppcoreguidelines-narrowing-conversions,\
|
||||||
|
-cppcoreguidelines-no-malloc,\
|
||||||
|
-cppcoreguidelines-non-private-member-variables-in-classes,\
|
||||||
|
-cppcoreguidelines-owning-memory,\
|
||||||
|
-cppcoreguidelines-prefer-member-initializer,\
|
||||||
|
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,\
|
||||||
|
-cppcoreguidelines-pro-bounds-constant-array-index,\
|
||||||
|
-cppcoreguidelines-pro-bounds-pointer-arithmetic,\
|
||||||
|
-cppcoreguidelines-pro-type-const-cast,\
|
||||||
|
-cppcoreguidelines-pro-type-member-init,\
|
||||||
|
-cppcoreguidelines-pro-type-reinterpret-cast,\
|
||||||
|
-cppcoreguidelines-pro-type-static-cast-downcast,\
|
||||||
|
-cppcoreguidelines-pro-type-union-access,\
|
||||||
|
-cppcoreguidelines-pro-type-vararg,\
|
||||||
|
-cppcoreguidelines-slicing,\
|
||||||
|
-cppcoreguidelines-special-member-functions,\
|
||||||
|
-cppcoreguidelines-virtual-class-destructor,\
|
||||||
|
google-*,\
|
||||||
-google-default-arguments,\
|
-google-default-arguments,\
|
||||||
-google-explicit-constructor,\
|
-google-explicit-constructor,\
|
||||||
-google-global-names-in-headers,\
|
|
||||||
-google-readability-avoid-underscore-in-googletest-name,\
|
-google-readability-avoid-underscore-in-googletest-name,\
|
||||||
-google-readability-braces-around-statements,\
|
-google-readability-braces-around-statements,\
|
||||||
-google-readability-casting,\
|
-google-readability-casting,\
|
||||||
-google-readability-function-size,\
|
|
||||||
-google-readability-namespace-comments,\
|
-google-readability-namespace-comments,\
|
||||||
-google-readability-todo,\
|
-google-readability-todo,\
|
||||||
-google-runtime-int,\
|
-google-runtime-int,\
|
||||||
-google-runtime-operator,\
|
|
||||||
-google-upgrade-googletest-case,\
|
-google-upgrade-googletest-case,\
|
||||||
-misc-definitions-in-headers,\
|
misc-*,\
|
||||||
-misc-misplaced-const,\
|
-misc-misplaced-const,\
|
||||||
|
-misc-new-delete-overloads,\
|
||||||
-misc-non-private-member-variables-in-classes,\
|
-misc-non-private-member-variables-in-classes,\
|
||||||
-misc-no-recursion,\
|
-misc-no-recursion,\
|
||||||
-misc-redundant-expression,\
|
-misc-redundant-expression,\
|
||||||
-misc-unconventional-assign-operator,\
|
|
||||||
-misc-uniqueptr-reset-release,\
|
-misc-uniqueptr-reset-release,\
|
||||||
|
-misc-unconventional-assign-operator,\
|
||||||
-misc-unused-parameters,\
|
-misc-unused-parameters,\
|
||||||
-misc-unused-using-decls,\
|
-misc-unused-using-decls,\
|
||||||
-modernize-avoid-bind,\
|
modernize-*,\
|
||||||
-modernize-avoid-c-arrays,\
|
-modernize-avoid-c-arrays,\
|
||||||
-modernize-concat-nested-namespaces,\
|
-modernize-concat-nested-namespaces,\
|
||||||
-modernize-deprecated-headers,\
|
-modernize-deprecated-headers,\
|
||||||
-modernize-loop-convert,\
|
-modernize-loop-convert,\
|
||||||
-modernize-macro-to-enum,\
|
-modernize-macro-to-enum,\
|
||||||
-modernize-make-shared,\
|
|
||||||
-modernize-make-unique,\
|
-modernize-make-unique,\
|
||||||
-modernize-pass-by-value,\
|
-modernize-pass-by-value,\
|
||||||
-modernize-raw-string-literal,\
|
-modernize-raw-string-literal,\
|
||||||
-modernize-redundant-void-arg,\
|
-modernize-redundant-void-arg,\
|
||||||
-modernize-replace-disallow-copy-and-assign-macro,\
|
|
||||||
-modernize-return-braced-init-list,\
|
-modernize-return-braced-init-list,\
|
||||||
-modernize-unary-static-assert,\
|
-modernize-unary-static-assert,\
|
||||||
-modernize-use-auto,\
|
-modernize-use-auto,\
|
||||||
|
@ -120,12 +111,12 @@ Checks: "+*,\
|
||||||
-modernize-use-equals-default,\
|
-modernize-use-equals-default,\
|
||||||
-modernize-use-equals-delete,\
|
-modernize-use-equals-delete,\
|
||||||
-modernize-use-nodiscard,\
|
-modernize-use-nodiscard,\
|
||||||
-modernize-use-noexcept,\
|
|
||||||
-modernize-use-nullptr,\
|
-modernize-use-nullptr,\
|
||||||
-modernize-use-override,\
|
-modernize-use-override,\
|
||||||
-modernize-use-trailing-return-type,\
|
-modernize-use-trailing-return-type,\
|
||||||
-modernize-use-transparent-functors,\
|
-modernize-use-transparent-functors,\
|
||||||
-modernize-use-using,\
|
-modernize-use-using,\
|
||||||
|
performance-*,\
|
||||||
-performance-faster-string-find,\
|
-performance-faster-string-find,\
|
||||||
-performance-for-range-copy,\
|
-performance-for-range-copy,\
|
||||||
-performance-inefficient-algorithm,\
|
-performance-inefficient-algorithm,\
|
||||||
|
@ -138,25 +129,22 @@ Checks: "+*,\
|
||||||
-performance-trivially-destructible,\
|
-performance-trivially-destructible,\
|
||||||
-performance-unnecessary-copy-initialization,\
|
-performance-unnecessary-copy-initialization,\
|
||||||
-performance-unnecessary-value-param,\
|
-performance-unnecessary-value-param,\
|
||||||
-portability-std-allocator-const,\
|
portability-*,\
|
||||||
|
readability-*,\
|
||||||
-readability-avoid-const-params-in-decls,\
|
-readability-avoid-const-params-in-decls,\
|
||||||
-readability-braces-around-statements,\
|
-readability-braces-around-statements,\
|
||||||
-readability-const-return-type,\
|
-readability-const-return-type,\
|
||||||
-readability-container-data-pointer,\
|
-readability-container-data-pointer,\
|
||||||
-readability-container-size-empty,\
|
-readability-container-size-empty,\
|
||||||
-readability-convert-member-functions-to-static,\
|
-readability-convert-member-functions-to-static,\
|
||||||
-readability-delete-null-pointer,\
|
|
||||||
-readability-duplicate-include,\
|
|
||||||
-readability-else-after-return,\
|
-readability-else-after-return,\
|
||||||
-readability-function-cognitive-complexity,\
|
-readability-function-cognitive-complexity,\
|
||||||
-readability-identifier-length,\
|
-readability-identifier-length,\
|
||||||
-readability-identifier-naming,\
|
|
||||||
-readability-implicit-bool-conversion,\
|
-readability-implicit-bool-conversion,\
|
||||||
-readability-inconsistent-declaration-parameter-name,\
|
-readability-inconsistent-declaration-parameter-name,\
|
||||||
-readability-isolate-declaration,\
|
-readability-isolate-declaration,\
|
||||||
-readability-magic-numbers,\
|
-readability-magic-numbers,\
|
||||||
-readability-make-member-function-const,\
|
-readability-make-member-function-const,\
|
||||||
-readability-misleading-indentation,\
|
|
||||||
-readability-named-parameter,\
|
-readability-named-parameter,\
|
||||||
-readability-non-const-parameter,\
|
-readability-non-const-parameter,\
|
||||||
-readability-qualified-auto,\
|
-readability-qualified-auto,\
|
||||||
|
@ -164,16 +152,13 @@ Checks: "+*,\
|
||||||
-readability-redundant-control-flow,\
|
-readability-redundant-control-flow,\
|
||||||
-readability-redundant-declaration,\
|
-readability-redundant-declaration,\
|
||||||
-readability-redundant-member-init,\
|
-readability-redundant-member-init,\
|
||||||
-readability-redundant-preprocessor,\
|
|
||||||
-readability-redundant-smartptr-get,\
|
-readability-redundant-smartptr-get,\
|
||||||
-readability-redundant-string-cstr,\
|
-readability-redundant-string-cstr,\
|
||||||
-readability-redundant-string-init,\
|
-readability-redundant-string-init,\
|
||||||
-readability-simplify-boolean-expr,\
|
-readability-simplify-boolean-expr,\
|
||||||
-readability-simplify-subscript-expr,\
|
|
||||||
-readability-static-accessed-through-instance,\
|
-readability-static-accessed-through-instance,\
|
||||||
-readability-static-definition-in-anonymous-namespace,\
|
-readability-static-definition-in-anonymous-namespace,\
|
||||||
-readability-string-compare,\
|
|
||||||
-readability-suspicious-call-argument,\
|
-readability-suspicious-call-argument,\
|
||||||
-readability-uppercase-literal-suffix,\
|
-readability-uppercase-literal-suffix,\
|
||||||
-readability-use-anyofallof,\
|
-readability-use-anyofallof
|
||||||
"
|
"
|
||||||
|
|
Loading…
Reference in New Issue