Clang-Tidy Checks¶
- abseil-string-find-startswith
- android-cloexec-accept
- android-cloexec-accept4
- android-cloexec-creat
- android-cloexec-dup
- android-cloexec-epoll-create
- android-cloexec-epoll-create1
- android-cloexec-fopen
- android-cloexec-inotify-init
- android-cloexec-inotify-init1
- android-cloexec-memfd-create
- android-cloexec-open
- android-cloexec-socket
- android-comparison-in-temp-failure-retry
- boost-use-to-string
- bugprone-argument-comment
- bugprone-assert-side-effect
- bugprone-bool-pointer-implicit-conversion
- bugprone-copy-constructor-init
- bugprone-dangling-handle
- bugprone-exception-escape
- bugprone-fold-init-type
- bugprone-forward-declaration-namespace
- bugprone-forwarding-reference-overload
- bugprone-inaccurate-erase
- bugprone-incorrect-roundings
- bugprone-integer-division
- bugprone-lambda-function-name
- bugprone-macro-parentheses
- bugprone-macro-repeated-side-effects
- bugprone-misplaced-operator-in-strlen-in-alloc
- bugprone-misplaced-widening-cast
- bugprone-move-forwarding-reference
- bugprone-multiple-statement-macro
- bugprone-parent-virtual-call
- bugprone-sizeof-container
- bugprone-sizeof-expression
- Suspicious usage of ‘sizeof(K)’
- Suspicious usage of ‘sizeof(expr)’
- Suspicious usage of ‘sizeof(this)’
- Suspicious usage of ‘sizeof(char*)’
- Suspicious usage of ‘sizeof(A*)’
- Suspicious usage of ‘sizeof(…)/sizeof(…)’
- Suspicious ‘sizeof’ by ‘sizeof’ expression
- Suspicious usage of ‘sizeof(sizeof(…))’
- Options
- bugprone-string-constructor
- bugprone-string-integer-assignment
- bugprone-string-literal-with-embedded-nul
- bugprone-suspicious-enum-usage
- bugprone-suspicious-memset-usage
- bugprone-suspicious-missing-comma
- bugprone-suspicious-semicolon
- bugprone-suspicious-string-compare
- bugprone-swapped-arguments
- bugprone-terminating-continue
- bugprone-throw-keyword-missing
- bugprone-undefined-memory-manipulation
- bugprone-undelegated-constructor
- bugprone-unused-raii
- bugprone-unused-return-value
- bugprone-use-after-move
- bugprone-virtual-near-miss
- cert-dcl03-c (redirects to misc-static-assert)
- cert-dcl21-cpp
- cert-dcl50-cpp
- cert-dcl54-cpp (redirects to misc-new-delete-overloads)
- cert-dcl58-cpp
- cert-dcl59-cpp (redirects to google-build-namespaces)
- cert-env33-c
- cert-err09-cpp (redirects to misc-throw-by-value-catch-by-reference)
- cert-err34-c
- cert-err52-cpp
- cert-err58-cpp
- cert-err60-cpp
- cert-err61-cpp (redirects to misc-throw-by-value-catch-by-reference)
- cert-fio38-c (redirects to misc-non-copyable-objects)
- cert-flp30-c
- cert-msc30-c (redirects to cert-msc50-cpp)
- cert-msc32-c (redirects to cert-msc51-cpp)
- cert-msc50-cpp
- cert-msc51-cpp
- cert-oop11-cpp (redirects to performance-move-constructor-init)
- cppcoreguidelines-avoid-goto
- cppcoreguidelines-c-copy-assignment-signature (redirects to misc-unconventional-assign-operator)
- cppcoreguidelines-interfaces-global-init
- cppcoreguidelines-narrowing-conversions
- cppcoreguidelines-no-malloc
- cppcoreguidelines-owning-memory
- 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-cstyle-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
- fuchsia-default-arguments
- fuchsia-header-anon-namespaces (redirects to google-build-namespaces)
- fuchsia-multiple-inheritance
- fuchsia-overloaded-operator
- fuchsia-restrict-system-includes
- fuchsia-statically-constructed-objects
- fuchsia-trailing-return
- fuchsia-virtual-inheritance
- google-build-explicit-make-pair
- google-build-namespaces
- google-build-using-namespace
- google-default-arguments
- google-explicit-constructor
- google-global-names-in-headers
- google-objc-avoid-throwing-exception
- google-objc-global-variable-declaration
- google-readability-braces-around-statements (redirects to readability-braces-around-statements)
- google-readability-casting
- google-readability-function-size (redirects to readability-function-size)
- google-readability-namespace-comments (redirects to llvm-namespace-comment)
- google-readability-todo
- google-runtime-int
- google-runtime-operator
- google-runtime-references
- hicpp-avoid-goto
- hicpp-braces-around-statements (redirects to readability-braces-around-statements)
- hicpp-deprecated-headers (redirects to modernize-deprecated-headers)
- hicpp-exception-baseclass
- hicpp-explicit-conversions (redirects to google-explicit-constructor)
- hicpp-function-size (redirects to readability-function-size)
- hicpp-invalid-access-moved (redirects to bugprone-use-after-move)
- hicpp-member-init (redirects to cppcoreguidelines-pro-type-member-init)
- hicpp-move-const-arg (redirects to performance-move-const-arg)
- hicpp-multiway-paths-covered
- hicpp-named-parameter (redirects to readability-named-parameter)
- hicpp-new-delete-operators (redirects to misc-new-delete-overloads)
- hicpp-no-array-decay (redirects to cppcoreguidelines-pro-bounds-array-to-pointer-decay)
- hicpp-no-assembler
- hicpp-no-malloc (redirects to cppcoreguidelines-no-malloc)
- hicpp-noexcept-move (redirects to misc-noexcept-moveconstructor)
- hicpp-signed-bitwise
- hicpp-special-member-functions (redirects to cppcoreguidelines-special-member-functions)
- hicpp-static-assert (redirects to misc-static-assert)
- hicpp-undelegated-constructor (redirects to bugprone-undelegated-constructor)
- hicpp-use-auto (redirects to modernize-use-auto)
- hicpp-use-emplace (redirects to modernize-use-emplace)
- hicpp-use-equals-default (redirects to modernize-use-equals-default)
- hicpp-use-equals-delete (redirects to modernize-use-equals-delete)
- hicpp-use-noexcept (redirects to modernize-use-noexcept)
- hicpp-use-nullptr (redirects to modernize-use-nullptr)
- hicpp-use-override (redirects to modernize-use-override)
- hicpp-vararg (redirects to cppcoreguidelines-pro-type-vararg)
- llvm-header-guard
- llvm-include-order
- llvm-namespace-comment
- llvm-twine-local
- misc-definitions-in-headers
- misc-misplaced-const
- misc-new-delete-overloads
- misc-non-copyable-objects
- misc-redundant-expression
- misc-static-assert
- misc-throw-by-value-catch-by-reference
- misc-unconventional-assign-operator
- misc-uniqueptr-reset-release
- misc-unused-alias-decls
- misc-unused-parameters
- misc-unused-using-decls
- modernize-avoid-bind
- modernize-deprecated-headers
- modernize-loop-convert
- modernize-make-shared
- modernize-make-unique
- modernize-pass-by-value
- modernize-raw-string-literal
- modernize-redundant-void-arg
- modernize-replace-auto-ptr
- modernize-replace-random-shuffle
- modernize-return-braced-init-list
- modernize-shrink-to-fit
- modernize-unary-static-assert
- modernize-use-auto
- modernize-use-bool-literals
- modernize-use-default-member-init
- modernize-use-emplace
- modernize-use-equals-default
- modernize-use-equals-delete
- modernize-use-noexcept
- modernize-use-nullptr
- modernize-use-override
- modernize-use-transparent-functors
- modernize-use-uncaught-exceptions
- modernize-use-using
- mpi-buffer-deref
- mpi-type-mismatch
- objc-avoid-nserror-init
- objc-avoid-spinlock
- objc-forbidden-subclassing
- objc-property-declaration
- performance-faster-string-find
- performance-for-range-copy
- performance-implicit-conversion-in-loop
- performance-inefficient-algorithm
- performance-inefficient-string-concatenation
- performance-inefficient-vector-operation
- performance-move-const-arg
- performance-move-constructor-init
- performance-noexcept-move-constructor
- performance-type-promotion-in-math-fn
- performance-unnecessary-copy-initialization
- performance-unnecessary-value-param
- portability-simd-intrinsics
- readability-avoid-const-params-in-decls
- readability-braces-around-statements
- readability-container-size-empty
- readability-delete-null-pointer
- readability-deleted-default
- readability-else-after-return
- readability-function-size
- readability-identifier-naming
- readability-implicit-bool-conversion
- readability-inconsistent-declaration-parameter-name
- readability-misleading-indentation
- readability-misplaced-array-index
- readability-named-parameter
- readability-non-const-parameter
- readability-redundant-control-flow
- readability-redundant-declaration
- readability-redundant-function-ptr-dereference
- readability-redundant-member-init
- readability-redundant-smartptr-get
- readability-redundant-string-cstr
- readability-redundant-string-init
- readability-simplify-boolean-expr
- readability-simplify-subscript-expr
- readability-static-accessed-through-instance
- readability-static-definition-in-anonymous-namespace
- readability-string-compare
- readability-uniqueptr-delete-release
- zircon-temporary-objects