Files
android/.clang-tidy
Ian Benz 82c4165553 Fix clang-tidy errors from switching to C++17
Disable clang-tidy checks that enforce coding patterns specific to C++17
until the codebase can be updated.

Change-Id: Ic720dec6720b325b1f19d3c2e4c31f4a8e081a01
2024-02-22 14:32:51 -08:00

91 lines
3.1 KiB
YAML

# Copyright 2023 Google LLC. All Rights Reserved. This file and proprietary
# source code may only be used and distributed under the Widevine License
# Agreement.
Checks: >
-*,
bugprone-*,
-bugprone-branch-clone,
-bugprone-easily-swappable-parameters,
-bugprone-implicit-widening-of-multiplication-result,
-bugprone-integer-division,
-bugprone-macro-parentheses,
-bugprone-narrowing-conversions,
-bugprone-not-null-terminated-result,
-bugprone-sizeof-expression,
-bugprone-unhandled-self-assignment,
clang-analyzer-*,
-clang-analyzer-core.CallAndMessage,
-clang-analyzer-core.NullDereference,
-clang-analyzer-core.UndefinedBinaryOperatorResult,
-clang-analyzer-cplusplus.NewDelete,
-clang-analyzer-cplusplus.NewDeleteLeaks,
-clang-analyzer-optin.cplusplus.VirtualCall,
-clang-analyzer-optin.performance.Padding,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-clang-analyzer-valist.Uninitialized,
clang-diagnostic-*,
google-build-explicit-make-pair,
google-build-namespaces,
google-global-names-in-headers,
google-readability-namespace-comments,
google-runtime-operator,
misc-*,
-misc-no-recursion,
-misc-non-private-member-variables-in-classes,
-misc-redundant-expression,
-misc-unconventional-assign-operator,
-misc-unused-parameters,
modernize-avoid-bind,
modernize-deprecated-ios-base-aliases,
modernize-make-shared,
modernize-replace-auto-ptr,
modernize-replace-disallow-copy-and-assign-macro,
modernize-replace-random-shuffle,
modernize-shrink-to-fit,
modernize-unary-static-assert,
modernize-use-bool-literals,
modernize-use-noexcept,
modernize-use-transparent-functors,
modernize-use-uncaught-exceptions,
performance-faster-string-find,
performance-implicit-conversion-in-loop,
performance-inefficient-algorithm,
performance-move-const-arg,
performance-move-constructor-init,
performance-trivially-destructible,
performance-type-promotion-in-math-fn,
performance-unnecessary-copy-initialization,
readability-avoid-const-params-in-decls,
readability-container-contains,
readability-delete-null-pointer,
readability-duplicate-include,
readability-identifier-naming,
readability-misleading-indentation,
readability-misplaced-array-index,
readability-redundant-access-specifiers,
readability-redundant-control-flow,
readability-redundant-function-ptr-dereference,
readability-redundant-preprocessor,
readability-redundant-smartptr-get,
readability-redundant-string-cstr,
readability-simplify-boolean-expr,
readability-simplify-subscript-expr,
readability-static-definition-in-anonymous-namespace,
readability-string-compare,
readability-uniqueptr-delete-release
CheckOptions:
- key: bugprone-reserved-identifier.AllowedIdentifiers
value: >
_;
__assert_fail;
__bswap_constant_16;
__bswap_constant_32;
__bswap_constant_64
- key: bugprone-suspicious-string-compare.WarnOnLogicalNotComparison
value: true
- key: bugprone-suspicious-string-compare.StringCompareLikeFunctions
value: crypto_memcmp
WarningsAsErrors: '*'
FormatStyle: file