.. title:: clang-tidy - Clang-Tidy Checks Clang-Tidy Checks ================= .. toctree:: :glob: :hidden: * .. csv-table:: :header: "Name", "Offers fixes" `abseil-duration-addition `_, "Yes" `abseil-duration-comparison `_, "Yes" `abseil-duration-conversion-cast `_, "Yes" `abseil-duration-division `_, "Yes" `abseil-duration-factory-float `_, "Yes" `abseil-duration-factory-scale `_, "Yes" `abseil-duration-subtraction `_, "Yes" `abseil-duration-unnecessary-conversion `_, "Yes" `abseil-faster-strsplit-delimiter `_, "Yes" `abseil-no-internal-dependencies `_, `abseil-no-namespace `_, `abseil-redundant-strcat-calls `_, "Yes" `abseil-str-cat-append `_, "Yes" `abseil-string-find-startswith `_, "Yes" `abseil-string-find-str-contains `_, "Yes" `abseil-time-comparison `_, "Yes" `abseil-time-subtraction `_, "Yes" `abseil-upgrade-duration-conversions `_, "Yes" `altera-kernel-name-restriction `_, `altera-struct-pack-align `_, `android-cloexec-accept `_, "Yes" `android-cloexec-accept4 `_, `android-cloexec-creat `_, "Yes" `android-cloexec-dup `_, "Yes" `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-pipe `_, "Yes" `android-cloexec-pipe2 `_, `android-cloexec-socket `_, `android-comparison-in-temp-failure-retry `_, `boost-use-to-string `_, "Yes" `bugprone-argument-comment `_, "Yes" `bugprone-assert-side-effect `_, `bugprone-bad-signal-to-kill-thread `_, `bugprone-bool-pointer-implicit-conversion `_, "Yes" `bugprone-branch-clone `_, `bugprone-copy-constructor-init `_, "Yes" `bugprone-dangling-handle `_, `bugprone-dynamic-static-initializers `_, `bugprone-exception-escape `_, `bugprone-fold-init-type `_, `bugprone-forward-declaration-namespace `_, `bugprone-forwarding-reference-overload `_, `bugprone-inaccurate-erase `_, "Yes" `bugprone-incorrect-roundings `_, `bugprone-infinite-loop `_, `bugprone-integer-division `_, `bugprone-lambda-function-name `_, `bugprone-macro-parentheses `_, "Yes" `bugprone-macro-repeated-side-effects `_, `bugprone-misplaced-operator-in-strlen-in-alloc `_, "Yes" `bugprone-misplaced-pointer-arithmetic-in-alloc `_, "Yes" `bugprone-misplaced-widening-cast `_, `bugprone-move-forwarding-reference `_, "Yes" `bugprone-multiple-statement-macro `_, `bugprone-no-escape `_, `bugprone-not-null-terminated-result `_, "Yes" `bugprone-parent-virtual-call `_, "Yes" `bugprone-posix-return `_, "Yes" `bugprone-redundant-branch-condition `_, "Yes" `bugprone-reserved-identifier `_, "Yes" `bugprone-signal-handler `_, `bugprone-signed-char-misuse `_, `bugprone-sizeof-container `_, `bugprone-sizeof-expression `_, `bugprone-spuriously-wake-up-functions `_, `bugprone-string-constructor `_, "Yes" `bugprone-string-integer-assignment `_, "Yes" `bugprone-string-literal-with-embedded-nul `_, `bugprone-suspicious-enum-usage `_, `bugprone-suspicious-include `_, `bugprone-suspicious-memset-usage `_, "Yes" `bugprone-suspicious-missing-comma `_, `bugprone-suspicious-semicolon `_, "Yes" `bugprone-suspicious-string-compare `_, "Yes" `bugprone-swapped-arguments `_, "Yes" `bugprone-terminating-continue `_, "Yes" `bugprone-throw-keyword-missing `_, `bugprone-too-small-loop-variable `_, `bugprone-undefined-memory-manipulation `_, `bugprone-undelegated-constructor `_, `bugprone-unhandled-self-assignment `_, `bugprone-unused-raii `_, "Yes" `bugprone-unused-return-value `_, `bugprone-use-after-move `_, `bugprone-virtual-near-miss `_, "Yes" `cert-dcl21-cpp `_, `cert-dcl50-cpp `_, `cert-dcl58-cpp `_, `cert-env33-c `_, `cert-err34-c `_, `cert-err52-cpp `_, `cert-err58-cpp `_, `cert-err60-cpp `_, `cert-flp30-c `_, `cert-mem57-cpp `_, `cert-msc50-cpp `_, `cert-msc51-cpp `_, `cert-oop57-cpp `_, `cert-oop58-cpp `_, `cert-sig30-c `_, `clang-analyzer-core.DynamicTypePropagation `_, `clang-analyzer-core.uninitialized.CapturedBlockVariable `_, `clang-analyzer-cplusplus.InnerPointer `_, `clang-analyzer-nullability.NullableReturnedFromNonnull `_, `clang-analyzer-optin.osx.OSObjectCStyleCast `_, `clang-analyzer-optin.performance.GCDAntipattern `_, `clang-analyzer-optin.performance.Padding `_, `clang-analyzer-optin.portability.UnixAPI `_, `clang-analyzer-osx.MIG `_, `clang-analyzer-osx.NumberObjectConversion `_, `clang-analyzer-osx.OSObjectRetainCount `_, `clang-analyzer-osx.ObjCProperty `_, `clang-analyzer-osx.cocoa.AutoreleaseWrite `_, `clang-analyzer-osx.cocoa.Loops `_, `clang-analyzer-osx.cocoa.MissingSuperCall `_, `clang-analyzer-osx.cocoa.NonNilReturnValue `_, `clang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak `_, `clang-analyzer-valist.CopyToSelf `_, `clang-analyzer-valist.Uninitialized `_, `clang-analyzer-valist.Unterminated `_, `concurrency-mt-unsafe `_, `cppcoreguidelines-avoid-goto `_, `cppcoreguidelines-avoid-non-const-global-variables `_, `cppcoreguidelines-init-variables `_, "Yes" `cppcoreguidelines-interfaces-global-init `_, `cppcoreguidelines-macro-usage `_, `cppcoreguidelines-narrowing-conversions `_, `cppcoreguidelines-no-malloc `_, `cppcoreguidelines-owning-memory `_, `cppcoreguidelines-pro-bounds-array-to-pointer-decay `_, `cppcoreguidelines-pro-bounds-constant-array-index `_, "Yes" `cppcoreguidelines-pro-bounds-pointer-arithmetic `_, `cppcoreguidelines-pro-type-const-cast `_, `cppcoreguidelines-pro-type-cstyle-cast `_, "Yes" `cppcoreguidelines-pro-type-member-init `_, "Yes" `cppcoreguidelines-pro-type-reinterpret-cast `_, `cppcoreguidelines-pro-type-static-cast-downcast `_, "Yes" `cppcoreguidelines-pro-type-union-access `_, `cppcoreguidelines-pro-type-vararg `_, `cppcoreguidelines-slicing `_, `cppcoreguidelines-special-member-functions `_, `darwin-avoid-spinlock `_, `darwin-dispatch-once-nonstatic `_, "Yes" `fuchsia-default-arguments-calls `_, `fuchsia-default-arguments-declarations `_, "Yes" `fuchsia-multiple-inheritance `_, `fuchsia-overloaded-operator `_, `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 `_, "Yes" `google-global-names-in-headers `_, `google-objc-avoid-nsobject-new `_, `google-objc-avoid-throwing-exception `_, `google-objc-function-naming `_, `google-objc-global-variable-declaration `_, `google-readability-avoid-underscore-in-googletest-name `_, `google-readability-casting `_, `google-readability-todo `_, `google-runtime-int `_, `google-runtime-operator `_, `google-runtime-references `_, `google-upgrade-googletest-case `_, "Yes" `hicpp-avoid-goto `_, `hicpp-exception-baseclass `_, `hicpp-multiway-paths-covered `_, `hicpp-no-assembler `_, `hicpp-signed-bitwise `_, `linuxkernel-must-use-errs `_, `llvm-header-guard `_, `llvm-include-order `_, "Yes" `llvm-namespace-comment `_, `llvm-prefer-isa-or-dyn-cast-in-conditionals `_, "Yes" `llvm-prefer-register-over-unsigned `_, "Yes" `llvm-twine-local `_, "Yes" `llvmlibc-callee-namespace `_, `llvmlibc-implementation-in-namespace `_, `llvmlibc-restrict-system-libc-headers `_, "Yes" `misc-definitions-in-headers `_, "Yes" `misc-misplaced-const `_, `misc-new-delete-overloads `_, `misc-no-recursion `_, `misc-non-copyable-objects `_, `misc-non-private-member-variables-in-classes `_, `misc-redundant-expression `_, "Yes" `misc-static-assert `_, "Yes" `misc-throw-by-value-catch-by-reference `_, `misc-unconventional-assign-operator `_, `misc-uniqueptr-reset-release `_, "Yes" `misc-unused-alias-decls `_, "Yes" `misc-unused-parameters `_, "Yes" `misc-unused-using-decls `_, "Yes" `modernize-avoid-bind `_, "Yes" `modernize-avoid-c-arrays `_, `modernize-concat-nested-namespaces `_, "Yes" `modernize-deprecated-headers `_, "Yes" `modernize-deprecated-ios-base-aliases `_, "Yes" `modernize-loop-convert `_, "Yes" `modernize-make-shared `_, "Yes" `modernize-make-unique `_, "Yes" `modernize-pass-by-value `_, "Yes" `modernize-raw-string-literal `_, "Yes" `modernize-redundant-void-arg `_, "Yes" `modernize-replace-auto-ptr `_, "Yes" `modernize-replace-disallow-copy-and-assign-macro `_, "Yes" `modernize-replace-random-shuffle `_, "Yes" `modernize-return-braced-init-list `_, "Yes" `modernize-shrink-to-fit `_, "Yes" `modernize-unary-static-assert `_, "Yes" `modernize-use-auto `_, "Yes" `modernize-use-bool-literals `_, "Yes" `modernize-use-default-member-init `_, "Yes" `modernize-use-emplace `_, "Yes" `modernize-use-equals-default `_, "Yes" `modernize-use-equals-delete `_, "Yes" `modernize-use-nodiscard `_, "Yes" `modernize-use-noexcept `_, "Yes" `modernize-use-nullptr `_, "Yes" `modernize-use-override `_, "Yes" `modernize-use-trailing-return-type `_, "Yes" `modernize-use-transparent-functors `_, "Yes" `modernize-use-uncaught-exceptions `_, "Yes" `modernize-use-using `_, "Yes" `mpi-buffer-deref `_, "Yes" `mpi-type-mismatch `_, "Yes" `objc-avoid-nserror-init `_, `objc-dealloc-in-category `_, `objc-forbidden-subclassing `_, `objc-missing-hash `_, `objc-nsinvocation-argument-lifetime `_, "Yes" `objc-property-declaration `_, "Yes" `objc-super-self `_, "Yes" `openmp-exception-escape `_, `openmp-use-default-none `_, `performance-faster-string-find `_, "Yes" `performance-for-range-copy `_, "Yes" `performance-implicit-conversion-in-loop `_, `performance-inefficient-algorithm `_, "Yes" `performance-inefficient-string-concatenation `_, `performance-inefficient-vector-operation `_, "Yes" `performance-move-const-arg `_, "Yes" `performance-move-constructor-init `_, "Yes" `performance-no-automatic-move `_, `performance-no-int-to-ptr `_, `performance-noexcept-move-constructor `_, "Yes" `performance-trivially-destructible `_, "Yes" `performance-type-promotion-in-math-fn `_, "Yes" `performance-unnecessary-copy-initialization `_, `performance-unnecessary-value-param `_, "Yes" `portability-restrict-system-includes `_, "Yes" `portability-simd-intrinsics `_, `readability-avoid-const-params-in-decls `_, `readability-braces-around-statements `_, "Yes" `readability-const-return-type `_, "Yes" `readability-container-size-empty `_, "Yes" `readability-convert-member-functions-to-static `_, `readability-delete-null-pointer `_, "Yes" `readability-deleted-default `_, `readability-else-after-return `_, "Yes" `readability-function-cognitive-complexity `_, `readability-function-size `_, `readability-identifier-naming `_, "Yes" `readability-implicit-bool-conversion `_, "Yes" `readability-inconsistent-declaration-parameter-name `_, "Yes" `readability-isolate-declaration `_, "Yes" `readability-magic-numbers `_, `readability-make-member-function-const `_, "Yes" `readability-misleading-indentation `_, `readability-misplaced-array-index `_, "Yes" `readability-named-parameter `_, "Yes" `readability-non-const-parameter `_, "Yes" `readability-qualified-auto `_, "Yes" `readability-redundant-access-specifiers `_, "Yes" `readability-redundant-control-flow `_, "Yes" `readability-redundant-declaration `_, "Yes" `readability-redundant-function-ptr-dereference `_, "Yes" `readability-redundant-member-init `_, "Yes" `readability-redundant-preprocessor `_, `readability-redundant-smartptr-get `_, "Yes" `readability-redundant-string-cstr `_, "Yes" `readability-redundant-string-init `_, "Yes" `readability-simplify-boolean-expr `_, "Yes" `readability-simplify-subscript-expr `_, "Yes" `readability-static-accessed-through-instance `_, "Yes" `readability-static-definition-in-anonymous-namespace `_, "Yes" `readability-string-compare `_, "Yes" `readability-uniqueptr-delete-release `_, "Yes" `readability-uppercase-literal-suffix `_, "Yes" `readability-use-anyofallof `_, `zircon-temporary-objects `_, .. csv-table:: Aliases.. :header: "Name", "Redirect", "Offers fixes" `cert-con36-c `_, `bugprone-spuriously-wake-up-functions `_, `cert-con54-cpp `_, `bugprone-spuriously-wake-up-functions `_, `cert-dcl03-c `_, `misc-static-assert `_, "Yes" `cert-dcl16-c `_, `readability-uppercase-literal-suffix `_, "Yes" `cert-dcl37-c `_, `bugprone-reserved-identifier `_, "Yes" `cert-dcl51-cpp `_, `bugprone-reserved-identifier `_, "Yes" `cert-dcl54-cpp `_, `misc-new-delete-overloads `_, `cert-dcl59-cpp `_, `google-build-namespaces `_, `cert-err09-cpp `_, `misc-throw-by-value-catch-by-reference `_, `cert-err61-cpp `_, `misc-throw-by-value-catch-by-reference `_, `cert-fio38-c `_, `misc-non-copyable-objects `_, `cert-msc30-c `_, `cert-msc50-cpp `_, `cert-msc32-c `_, `cert-msc51-cpp `_, `cert-oop11-cpp `_, `performance-move-constructor-init `_, "Yes" `cert-oop54-cpp `_, `bugprone-unhandled-self-assignment `_, `cert-pos44-c `_, `bugprone-bad-signal-to-kill-thread `_, `cert-str34-c `_, `bugprone-signed-char-misuse `_, `clang-analyzer-core.CallAndMessage `_, `Clang Static Analyzer `_, `clang-analyzer-core.DivideZero `_, `Clang Static Analyzer `_, `clang-analyzer-core.NonNullParamChecker `_, `Clang Static Analyzer `_, `clang-analyzer-core.NullDereference `_, `Clang Static Analyzer `_, `clang-analyzer-core.StackAddressEscape `_, `Clang Static Analyzer `_, `clang-analyzer-core.UndefinedBinaryOperatorResult `_, `Clang Static Analyzer `_, `clang-analyzer-core.VLASize `_, `Clang Static Analyzer `_, `clang-analyzer-core.uninitialized.ArraySubscript `_, `Clang Static Analyzer `_, `clang-analyzer-core.uninitialized.Assign `_, `Clang Static Analyzer `_, `clang-analyzer-core.uninitialized.Branch `_, `Clang Static Analyzer `_, `clang-analyzer-core.uninitialized.UndefReturn `_, `Clang Static Analyzer `_, `clang-analyzer-cplusplus.Move `_, `Clang Static Analyzer `_, `clang-analyzer-cplusplus.NewDelete `_, `Clang Static Analyzer `_, `clang-analyzer-cplusplus.NewDeleteLeaks `_, `Clang Static Analyzer `_, `clang-analyzer-deadcode.DeadStores `_, `Clang Static Analyzer `_, `clang-analyzer-nullability.NullPassedToNonnull `_, `Clang Static Analyzer `_, `clang-analyzer-nullability.NullReturnedFromNonnull `_, `Clang Static Analyzer `_, `clang-analyzer-nullability.NullableDereferenced `_, `Clang Static Analyzer `_, `clang-analyzer-nullability.NullablePassedToNonnull `_, `Clang Static Analyzer `_, `clang-analyzer-optin.cplusplus.UninitializedObject `_, `Clang Static Analyzer `_, `clang-analyzer-optin.cplusplus.VirtualCall `_, `Clang Static Analyzer `_, `clang-analyzer-optin.mpi.MPI-Checker `_, `Clang Static Analyzer `_, `clang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker `_, `Clang Static Analyzer `_, `clang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker `_, `Clang Static Analyzer `_, `clang-analyzer-osx.API `_, `Clang Static Analyzer `_, `clang-analyzer-osx.SecKeychainAPI `_, `Clang Static Analyzer `_, `clang-analyzer-osx.cocoa.AtSync `_, `Clang Static Analyzer `_, `clang-analyzer-osx.cocoa.ClassRelease `_, `Clang Static Analyzer `_, `clang-analyzer-osx.cocoa.Dealloc `_, `Clang Static Analyzer `_, `clang-analyzer-osx.cocoa.IncompatibleMethodTypes `_, `Clang Static Analyzer `_, `clang-analyzer-osx.cocoa.NSAutoreleasePool `_, `Clang Static Analyzer `_, `clang-analyzer-osx.cocoa.NSError `_, `Clang Static Analyzer `_, `clang-analyzer-osx.cocoa.NilArg `_, `Clang Static Analyzer `_, `clang-analyzer-osx.cocoa.ObjCGenerics `_, `Clang Static Analyzer `_, `clang-analyzer-osx.cocoa.RetainCount `_, `Clang Static Analyzer `_, `clang-analyzer-osx.cocoa.SelfInit `_, `Clang Static Analyzer `_, `clang-analyzer-osx.cocoa.SuperDealloc `_, `Clang Static Analyzer `_, `clang-analyzer-osx.cocoa.UnusedIvars `_, `Clang Static Analyzer `_, `clang-analyzer-osx.cocoa.VariadicMethodTypes `_, `Clang Static Analyzer `_, `clang-analyzer-osx.coreFoundation.CFError `_, `Clang Static Analyzer `_, `clang-analyzer-osx.coreFoundation.CFNumber `_, `Clang Static Analyzer `_, `clang-analyzer-osx.coreFoundation.CFRetainRelease `_, `Clang Static Analyzer `_, `clang-analyzer-osx.coreFoundation.containers.OutOfBounds `_, `Clang Static Analyzer `_, `clang-analyzer-osx.coreFoundation.containers.PointerSizedValues `_, `Clang Static Analyzer `_, `clang-analyzer-security.FloatLoopCounter `_, `Clang Static Analyzer `_, `clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling `_, `Clang Static Analyzer `_, `clang-analyzer-security.insecureAPI.UncheckedReturn `_, `Clang Static Analyzer `_, `clang-analyzer-security.insecureAPI.bcmp `_, `Clang Static Analyzer `_, `clang-analyzer-security.insecureAPI.bcopy `_, `Clang Static Analyzer `_, `clang-analyzer-security.insecureAPI.bzero `_, `Clang Static Analyzer `_, `clang-analyzer-security.insecureAPI.getpw `_, `Clang Static Analyzer `_, `clang-analyzer-security.insecureAPI.gets `_, `Clang Static Analyzer `_, `clang-analyzer-security.insecureAPI.mkstemp `_, `Clang Static Analyzer `_, `clang-analyzer-security.insecureAPI.mktemp `_, `Clang Static Analyzer `_, `clang-analyzer-security.insecureAPI.rand `_, `Clang Static Analyzer `_, `clang-analyzer-security.insecureAPI.strcpy `_, `Clang Static Analyzer `_, `clang-analyzer-security.insecureAPI.vfork `_, `Clang Static Analyzer `_, `clang-analyzer-unix.API `_, `Clang Static Analyzer `_, `clang-analyzer-unix.Malloc `_, `Clang Static Analyzer `_, `clang-analyzer-unix.MallocSizeof `_, `Clang Static Analyzer `_, `clang-analyzer-unix.MismatchedDeallocator `_, `Clang Static Analyzer `_, `clang-analyzer-unix.Vfork `_, `Clang Static Analyzer `_, `clang-analyzer-unix.cstring.BadSizeArg `_, `Clang Static Analyzer `_, `clang-analyzer-unix.cstring.NullArg `_, `Clang Static Analyzer `_, `cppcoreguidelines-avoid-c-arrays `_, `modernize-avoid-c-arrays `_, `cppcoreguidelines-avoid-magic-numbers `_, `readability-magic-numbers `_, `cppcoreguidelines-c-copy-assignment-signature `_, `misc-unconventional-assign-operator `_, `cppcoreguidelines-explicit-virtual-functions `_, `modernize-use-override `_, "Yes" `cppcoreguidelines-non-private-member-variables-in-classes `_, `misc-non-private-member-variables-in-classes `_, `fuchsia-header-anon-namespaces `_, `google-build-namespaces `_, `google-readability-braces-around-statements `_, `readability-braces-around-statements `_, "Yes" `google-readability-function-size `_, `readability-function-size `_, `google-readability-namespace-comments `_, `llvm-namespace-comment `_, `hicpp-avoid-c-arrays `_, `modernize-avoid-c-arrays `_, `hicpp-braces-around-statements `_, `readability-braces-around-statements `_, "Yes" `hicpp-deprecated-headers `_, `modernize-deprecated-headers `_, "Yes" `hicpp-explicit-conversions `_, `google-explicit-constructor `_, "Yes" `hicpp-function-size `_, `readability-function-size `_, `hicpp-invalid-access-moved `_, `bugprone-use-after-move `_, `hicpp-member-init `_, `cppcoreguidelines-pro-type-member-init `_, "Yes" `hicpp-move-const-arg `_, `performance-move-const-arg `_, "Yes" `hicpp-named-parameter `_, `readability-named-parameter `_, "Yes" `hicpp-new-delete-operators `_, `misc-new-delete-overloads `_, `hicpp-no-array-decay `_, `cppcoreguidelines-pro-bounds-array-to-pointer-decay `_, `hicpp-no-malloc `_, `cppcoreguidelines-no-malloc `_, `hicpp-noexcept-move `_, `performance-noexcept-move-constructor `_, "Yes" `hicpp-special-member-functions `_, `cppcoreguidelines-special-member-functions `_, `hicpp-static-assert `_, `misc-static-assert `_, "Yes" `hicpp-undelegated-constructor `_, `bugprone-undelegated-constructor `_, `hicpp-uppercase-literal-suffix `_, `readability-uppercase-literal-suffix `_, "Yes" `hicpp-use-auto `_, `modernize-use-auto `_, "Yes" `hicpp-use-emplace `_, `modernize-use-emplace `_, "Yes" `hicpp-use-equals-default `_, `modernize-use-equals-default `_, "Yes" `hicpp-use-equals-delete `_, `modernize-use-equals-delete `_, "Yes" `hicpp-use-noexcept `_, `modernize-use-noexcept `_, "Yes" `hicpp-use-nullptr `_, `modernize-use-nullptr `_, "Yes" `hicpp-use-override `_, `modernize-use-override `_, "Yes" `hicpp-vararg `_, `cppcoreguidelines-pro-type-vararg `_, `llvm-else-after-return `_, `readability-else-after-return `_, "Yes" `llvm-qualified-auto `_, `readability-qualified-auto `_, "Yes"