It is an alias of the check bugprone-throwing-static-initialization, which does the same work.
- Code
cert-err58-cpp
It is an alias of the check bugprone-exception-copy-constructor-throws, which does the same work.
- Code
cert-err60-cpp
It is an alias of the check misc-throw-by-value-catch-by-reference, which does the same work.
- Code
cert-err61-cpp
It is an alias of the check bugprone-suspicious-memory-comparison, which does the same work.
- Code
cert-exp42-c
It is an alias of the check bugprone-assignment-in-selection-statement, which does the same work.
- Code
cert-exp45-c
It is an alias of the check misc-non-copyable-objects, which does the same work.
- Code
cert-fio38-c
It is an alias of the check bugprone-float-loop-counter, which does the same work.
- Code
cert-flp30-c
It is an alias of the check bugprone-suspicious-memory-comparison, which does the same work.
- Code
cert-flp37-c
It is an alias of the check readability-enum-initial-value, which does the same work. clang-tidy can fix the code that it finds.
- Code
cert-int09-c
It is an alias of the check bugprone-default-operator-new-on-overaligned-type, which does the same work.
- Code
cert-mem57-cpp
It is an alias of the check bugprone-unsafe-functions, which does the same work.
- Code
cert-msc24-c
It is an alias of the check misc-predictable-rand, which does the same work.
- Code
cert-msc30-c
It is an alias of the check bugprone-random-generator-seed, which does the same work.
- Code
cert-msc32-c
It is an alias of the check bugprone-unsafe-functions, which does the same work.
- Code
cert-msc33-c
It is an alias of the check misc-predictable-rand, which does the same work.
- Code
cert-msc50-cpp
It is an alias of the check bugprone-random-generator-seed, which does the same work.
- Code
cert-msc51-cpp
It is an alias of the check bugprone-signal-handler, which does the same work.
- Code
cert-msc54-cpp
It is an alias of the check performance-move-constructor-init, which does the same work.
- Code
cert-oop11-cpp
It is an alias of the check bugprone-unhandled-self-assignment, which does the same work.
- Code
cert-oop54-cpp
It is an alias of the check bugprone-raw-memory-call-on-non-trivial-type, which does the same work.
- Code
cert-oop57-cpp
It is an alias of the check bugprone-copy-constructor-mutates-argument, which does the same work.
- Code
cert-oop58-cpp
It is an alias of the check bugprone-bad-signal-to-kill-thread, which does the same work.
- Code
cert-pos44-c
It is an alias of the check concurrency-thread-canceltype-asynchronous, which does the same work.
- Code
cert-pos47-c
It is an alias of the check bugprone-signal-handler, which does the same work.
- Code
cert-sig30-c
It is an alias of the check bugprone-signed-char-misuse, which does the same work.
- Code
cert-str34-c
Usually they access static variables without synchronization (e.g. gmtime(3)) or utilize signals in a racy way. The set of functions to check is specified with the FunctionSet option. The check is in the concurrency module of clang-tidy.
- Code
concurrency-mt-unsafe
Asynchronous cancellation type (PTHREAD_CANCEL_ASYNCHRONOUS) is generally unsafe, use type PTHREAD_CANCEL_DEFERRED instead which is the default. Even with deferred cancellation, a cancellation point in an asynchronous signal handler may still be acted upon and the effect is as if it was an asynchronous cancellation. The check is in the concurrency module of clang-tidy.
- Code
concurrency-thread-canceltype-asynchronous
clang-tidy runs it as the check clang-analyzer-core.BitwiseShift. It applies to C, C++.
- Code
core.BitwiseShift
clang-tidy runs it as the check clang-analyzer-core.CallAndMessage. It applies to C, C++, Objective-C.
- Code
core.CallAndMessage
clang-tidy runs it as the check clang-analyzer-core.DivideZero. It applies to C, C++, Objective-C.
- Code
core.DivideZero
clang-tidy runs it as the check clang-analyzer-core.NonNullParamChecker. It applies to C, C++, Objective-C.
- Code
core.NonNullParamChecker
clang-tidy runs it as the check clang-analyzer-core.NullDereference. It applies to C, C++, Objective-C.
- Code
core.NullDereference
clang-tidy runs it as the check clang-analyzer-core.NullPointerArithm. It applies to C, C++.
- Code
core.NullPointerArithm
clang-tidy runs it as the check clang-analyzer-core.uninitialized.NewArraySize. It applies to C++.
- Code
core.uninitialized.NewArraySize
If the dynamic type of the array is different from its static type, calling delete[] is undefined. clang-tidy runs it as the check clang-analyzer-cplusplus.ArrayDelete. It applies to C++.
- Code
cplusplus.ArrayDelete
clang-tidy runs it as the check clang-analyzer-cplusplus.InnerPointer. It applies to C++.
- Code
cplusplus.InnerPointer
clang-tidy runs it as the check clang-analyzer-cplusplus.Move. It applies to C++.
- Code
cplusplus.Move
Traces memory managed by new/delete. clang-tidy runs it as the check clang-analyzer-cplusplus.NewDelete. It applies to C++.
- Code
cplusplus.NewDelete
Traces memory managed by new/delete. clang-tidy runs it as the check clang-analyzer-cplusplus.NewDeleteLeaks. It applies to C++.
- Code
cplusplus.NewDeleteLeaks
clang-tidy runs it as the check clang-analyzer-cplusplus.PlacementNew. It applies to C++.
- Code
cplusplus.PlacementNew
clang-tidy runs it as the check clang-analyzer-cplusplus.PureVirtualCall. It applies to C++.
- Code
cplusplus.PureVirtualCall
It applies to C++.
- Code
cplusplus.SelfAssignment
clang-tidy runs it as the check clang-analyzer-cplusplus.StringChecker. It applies to C++.
- Code
cplusplus.StringChecker
It is an alias of the check modernize-avoid-c-arrays, which does the same work.
- Code
cppcoreguidelines-avoid-c-arrays
The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-avoid-capturing-lambda-coroutines
Having such members is rarely useful, and makes the class only copy-constructible but not copy-assignable. The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-avoid-const-or-ref-data-members
They are less readable than plain while loops, since the termination condition is at the end and the condition is not checked prior to the first iteration. This can lead to subtle bugs. The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-avoid-do-while
Only forward jumps in nested loops are accepted. The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-avoid-goto
It is an alias of the check readability-magic-numbers, which does the same work.
- Code
cppcoreguidelines-avoid-magic-numbers
As R.6 of C++ Core Guidelines is a duplicate of rule I.2 it also covers that rule. The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-avoid-non-const-global-variables
After a coroutine suspend point, references could be dangling and no longer valid. Instead, pass parameters as values. The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-avoid-reference-coroutine-parameters
It is an alias of the check misc-unconventional-assign-operator, which does the same work.
- Code
cppcoreguidelines-c-copy-assignment-signature
It is an alias of the check misc-explicit-constructor, which does the same work. clang-tidy can fix the code that it finds.
- Code
cppcoreguidelines-explicit-constructor
It is an alias of the check modernize-use-override, which does the same work. clang-tidy can fix the code that it finds.
- Code
cppcoreguidelines-explicit-virtual-functions
These may lead to unexpected behavior if there is a code path that reads the variable before assigning to it. clang-tidy can fix the code that it finds. The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-init-variables
The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-interfaces-global-init
It is an alias of the check modernize-macro-to-enum, which does the same work. clang-tidy can fix the code that it finds.
- Code
cppcoreguidelines-macro-to-enum
The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-macro-usage
clang-tidy can fix the code that it finds. The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-misleading-capture-default-by-value
The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-missing-std-forward
It is an alias of the check bugprone-narrowing-conversions, which does the same work.
- Code
cppcoreguidelines-narrowing-conversions
It warns about its use and tries to suggest the use of an appropriate RAII object. Furthermore, it can be configured to check against a user-specified list of functions that are used for memory management (e.g. posix_memalign()). The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-no-malloc
The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-no-suspend-with-lock
It is an alias of the check performance-noexcept-destructor, which does the same work. clang-tidy can fix the code that it finds.
- Code
cppcoreguidelines-noexcept-destructor
It is an alias of the check performance-noexcept-move-constructor, which does the same work. clang-tidy can fix the code that it finds.
- Code
cppcoreguidelines-noexcept-move-operations
It is an alias of the check performance-noexcept-swap, which does the same work. clang-tidy can fix the code that it finds.
- Code
cppcoreguidelines-noexcept-swap
It is an alias of the check misc-non-private-member-variables-in-classes, which does the same work.
- Code
cppcoreguidelines-non-private-member-variables-in-classes
The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-owning-memory
This not only improves the readability of the code but also positively affects its performance. Class-member assignments inside a control statement or following the first control statement are ignored. clang-tidy can fix the code that it finds. The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-prefer-member-initializer
The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-pro-bounds-array-to-pointer-decay
Safe alternatives include STL at or GSL at functions, begin() or end() functions, range-for loops, std::span, or an appropriate function from <algorithms>. clang-tidy can fix the code that it finds. The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-pro-bounds-avoid-unchecked-container-access
For out-of-bounds checking of static arrays, see the -Warray-bounds Clang diagnostic. clang-tidy can fix the code that it finds. The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-pro-bounds-constant-array-index
Subtraction of two pointers is not flagged by this check. The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-pro-bounds-pointer-arithmetic
It depends on the StrictMode option setting to determine whether it should flag all instances of const_cast or only those that remove either const or volatile qualifier. The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-pro-type-const-cast
clang-tidy can fix the code that it finds. The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-pro-type-cstyle-cast
If these fields aren't initialized, the constructor will leave some of the memory in an undefined state. clang-tidy can fix the code that it finds. The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-pro-type-member-init
The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-pro-type-reinterpret-cast
In those cases, a fix-it is provided to convert the cast to a dynamic_cast. clang-tidy can fix the code that it finds. The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-pro-type-static-cast-downcast
Passing unions as a whole is not flagged. The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-pro-type-union-access
The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-pro-type-vararg
The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-rvalue-reference-param-not-moved
Slicing happens when copying a derived object into a base object: the members of the derived object (both member variables and virtual member functions) will be discarded. This can be misleading especially for member function slicing. The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-slicing
The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-special-member-functions
It is an alias of the check modernize-use-default-member-init, which does the same work. clang-tidy can fix the code that it finds.
- Code
cppcoreguidelines-use-default-member-init
Unnamed enum are ignored and will be handled by check implementing Enum.6. The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-use-enum-class
A virtual class's destructor should be specified in one of these ways to prevent undefined behavior. clang-tidy can fix the code that it finds. The check is in the cppcoreguidelines module of clang-tidy.
- Code
cppcoreguidelines-virtual-class-destructor
The check is deprecated. The check is in the darwin module of clang-tidy.
- Code
darwin-avoid-spinlock
The behavior of using dispatch_once_t predicates with automatic or dynamic storage is undefined by libdispatch, and should be avoided. clang-tidy can fix the code that it finds. The check is in the darwin module of clang-tidy.
- Code
darwin-dispatch-once-nonstatic
The check is in the fuchsia module of clang-tidy.
- Code
fuchsia-default-arguments-calls
clang-tidy can fix the code that it finds. The check is in the fuchsia module of clang-tidy.
- Code
fuchsia-default-arguments-declarations
It is an alias of the check misc-multiple-inheritance, which does the same work.
- Code
fuchsia-multiple-inheritance
The check is in the fuchsia module of clang-tidy.
- Code
fuchsia-overloaded-operator
The check is in the fuchsia module of clang-tidy.
- Code
fuchsia-statically-constructed-objects
If the object should be flagged, the fully qualified type name must be explicitly passed to the check. The check is in the fuchsia module of clang-tidy.
- Code
fuchsia-temporary-objects
The check is in the fuchsia module of clang-tidy.
- Code
fuchsia-trailing-return
The check is in the fuchsia module of clang-tidy.
- Code
fuchsia-virtual-inheritance
Similar to pointers they can be leaked, double freed, or use after freed. This check attempts to find such problems. clang-tidy runs it as the check clang-analyzer-fuchsia.HandleChecker.
- Code
fuchsia.HandleChecker
The check is in the google module of clang-tidy.
- Code
google-build-explicit-make-pair
It is an alias of the check misc-anonymous-namespace-in-header, which does the same work.
- Code
google-build-namespaces
The check is in the google module of clang-tidy.
- Code
google-build-using-namespace
The check is in the google module of clang-tidy.
- Code
google-default-arguments
It is an alias of the check misc-explicit-constructor, which does the same work. clang-tidy can fix the code that it finds.
- Code
google-explicit-constructor
The check is in the google module of clang-tidy.
- Code
google-objc-avoid-nsobject-new
The check is in the google module of clang-tidy.
- Code
google-objc-avoid-throwing-exception
The check is in the google module of clang-tidy.
- Code
google-objc-function-naming
The check is in the google module of clang-tidy.
- Code
google-objc-global-variable-declaration
The check is in the google module of clang-tidy.
- Code
google-readability-avoid-underscore-in-googletest-name
It is an alias of the check readability-braces-around-statements, which does the same work. clang-tidy can fix the code that it finds.
- Code
google-readability-braces-around-statements
It is an alias of the check modernize-avoid-c-style-cast, which does the same work. clang-tidy can fix the code that it finds.
- Code
google-readability-casting
It is an alias of the check readability-function-size, which does the same work.
- Code
google-readability-function-size
The check is in the google module of clang-tidy.
- Code
google-readability-todo
The check is in the google module of clang-tidy.
- Code
google-runtime-float
The check is in the google module of clang-tidy.
- Code
google-runtime-int
The check is in the google module of clang-tidy.
- Code
google-runtime-operator
The check is deprecated. clang-tidy can fix the code that it finds. The check is in the google module of clang-tidy.
- Code
google-upgrade-googletest-case
Also checks to see if code uses the results from functions that directly return a value from one of these error functions. The check is in the linuxkernel module of clang-tidy.
- Code
linuxkernel-must-check-errs
It is an alias of the check readability-else-after-return, which does the same work. clang-tidy can fix the code that it finds.
- Code
llvm-else-after-return
The check is in the llvm module of clang-tidy.
- Code
llvm-formatv-string
clang-tidy can fix the code that it finds. The check is in the llvm module of clang-tidy.
- Code
llvm-include-order
It detects these string literals if they are defined in the regex constructor with a string literal, or stored in one of these non mutable containers. The check is in the llvm module of clang-tidy.
- Code
llvm-invalid-regex-pattern
Additionally, finds and replaces cases that match the pattern var && isa<X>(var), where var is evaluated twice. clang-tidy can fix the code that it finds. The check is in the llvm module of clang-tidy.
- Code
llvm-prefer-isa-or-dyn-cast-in-conditionals
clang-tidy can fix the code that it finds. The check is in the llvm module of clang-tidy.
- Code
llvm-prefer-register-over-unsigned
The check is in the llvm module of clang-tidy.
- Code
llvm-prefer-static-over-anonymous-namespace
It is an alias of the check readability-qualified-auto, which does the same work. clang-tidy can fix the code that it finds.
- Code
llvm-qualified-auto
clang-tidy can fix the code that it finds. The check is in the llvm module of clang-tidy.
- Code
llvm-redundant-casting
clang-tidy can fix the code that it finds. The check is in the llvm module of clang-tidy.
- Code
llvm-twine-local
clang-tidy can fix the code that it finds. The check is in the llvm module of clang-tidy.
- Code
llvm-type-switch-case-types
The check is deprecated. clang-tidy can fix the code that it finds. The check is in the llvm module of clang-tidy.
- Code
llvm-use-new-mlir-op-builder
clang-tidy can fix the code that it finds. The check is in the llvm module of clang-tidy.
- Code
llvm-use-ranges
clang-tidy can fix the code that it finds. The check is in the llvm module of clang-tidy.
- Code
llvm-use-vector-utils
The check is in the llvmlibc module of clang-tidy.
- Code
llvmlibc-callee-namespace
The check is in the llvmlibc module of clang-tidy.
- Code
llvmlibc-implementation-in-namespace
See the libc style guide for more information about this macro. clang-tidy can fix the code that it finds. The check is in the llvmlibc module of clang-tidy.
- Code
llvmlibc-inline-function-decl
This detects a potential attack described in CVE-2021-42574. The check is in the misc module of clang-tidy.
- Code
misc-confusable-identifiers
clang-tidy can fix the code that it finds. The check is in the misc module of clang-tidy.
- Code
misc-const-correctness
Such hostile types include scoped-lockable types and types belonging to a configurable denylist. The check is in the misc module of clang-tidy.
- Code
misc-coroutine-hostile-raii
clang-tidy can fix the code that it finds. The check is in the misc module of clang-tidy.
- Code
misc-explicit-constructor
Generates findings only for the main file of a translation unit. Findings correspond to https://clangd.llvm.org/design/include-cleaner. clang-tidy can fix the code that it finds. The check is in the misc module of clang-tidy.
- Code
misc-include-cleaner
The check is in the misc module of clang-tidy.
- Code
misc-misleading-bidirectional
The check is in the misc module of clang-tidy.
- Code
misc-misleading-identifier
The check is in the misc module of clang-tidy.
- Code
misc-misplaced-const
The check is in the misc module of clang-tidy.
- Code
misc-multiple-inheritance
The check is in the misc module of clang-tidy.
- Code
misc-new-delete-overloads
The check is in the misc module of clang-tidy.
- Code
misc-no-recursion
The check is in the misc module of clang-tidy.
- Code
misc-non-copyable-objects
The check is in the misc module of clang-tidy.
- Code
misc-non-private-member-variables-in-classes
This includes for example if a virtual function declared as private is overridden and declared as public in a subclass. The detected change is the modification of visibility resulting from keywords public, protected, private at overridden virtual functions. The check is in the misc module of clang-tidy.
- Code
misc-override-with-different-visibility
Pseudorandom number generators use mathematical algorithms to produce a sequence of numbers with good statistical properties, but the numbers produced are not genuinely random. The std::rand() function takes a seed (number), runs a mathematical operation on it and returns the result. The check is in the misc module of clang-tidy.
- Code
misc-predictable-rand
clang-tidy can fix the code that it finds. The check is in the misc module of clang-tidy.
- Code
misc-redundant-expression
clang-tidy can fix the code that it finds. The check is in the misc module of clang-tidy.
- Code
misc-static-assert
The check is in the misc module of clang-tidy.
- Code
misc-static-initialization-cycle
The check is in the misc module of clang-tidy.
- Code
misc-throw-by-value-catch-by-reference
The check is in the misc module of clang-tidy.
- Code
misc-unconventional-assign-operator
clang-tidy can fix the code that it finds. The check is in the misc module of clang-tidy.
- Code
misc-uniqueptr-reset-release
clang-tidy can fix the code that it finds. The check is in the misc module of clang-tidy.
- Code
misc-unused-alias-decls
Unused parameters may signify a bug in the code (e.g. when a different parameter is used instead). The suggested fixes either comment parameter name out or remove the parameter completely, if all callers of the function are in the same translation unit and can be updated. clang-tidy can fix the code that it finds. The check is in the misc module of clang-tidy.
- Code
misc-unused-parameters
clang-tidy can fix the code that it finds. The check is in the misc module of clang-tidy.
- Code
misc-unused-using-decls
The check is in the misc module of clang-tidy.
- Code
misc-use-anonymous-namespace
clang-tidy can fix the code that it finds. The check is in the misc module of clang-tidy.
- Code
misc-use-internal-linkage
Lambdas will use value-capture unless reference capture is explicitly requested with std::ref or boost::ref. clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-avoid-bind
The check is in the modernize module of clang-tidy.
- Code
modernize-avoid-c-arrays
clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-avoid-c-style-cast
The check is in the modernize module of clang-tidy.
- Code
modernize-avoid-setjmp-longjmp
The check is in the modernize module of clang-tidy.
- Code
modernize-avoid-variadic-functions
clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-concat-nested-namespaces
The check is deprecated. clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-deprecated-ios-base-aliases
clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-loop-convert
Using an unscoped anonymous enum ensures that everywhere the macro token was used previously, the enumerator name may be safely used. clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-macro-to-enum
clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-make-shared
clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-make-unique
clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-min-max-use-initializer-list
This check allows the compiler to take care of choosing the best way to construct the copy. clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-pass-by-value
clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-raw-string-literal
Works in C++ and in C23 and up. clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-redundant-void-arg
The transfer of ownership, done by the copy-constructor and the assignment operator, is changed to match std::unique_ptr usage by using explicit calls to std::move(). The check is deprecated. clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-replace-auto-ptr
clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-replace-disallow-copy-and-assign-macro
In C++17 std::random_shuffle will no longer be available and thus we need to replace it. clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-replace-random-shuffle
This way the return type is not needlessly duplicated in the function definition and the return statement. clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-return-braced-init-list
clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-shrink-to-fit
clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-type-traits
clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-unary-static-assert
clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-use-auto
clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-use-bool-literals
clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-use-constraints
Other member initializers that match the default member initializer are removed. This can reduce repeated code or allow use of '= default'. clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-use-default-member-init
clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-use-designated-initializers
In this case, the corresponding emplace equivalent methods result in less verbose and potentially more efficient code. Right now the check doesn't support insert. clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-use-emplace
clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-use-equals-default
Additionally, it recommends relocating any deleted member function from the private to the public section. clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-use-equals-delete
clang-tidy can fix the code that it finds. The check is in the modernize module of clang-tidy.
- Code
modernize-use-if-consteval