clang-tidy can fix the code that it finds. The check is in the abseil module of clang-tidy.
- Code
abseil-cleanup-ctad
When adding two values, and one is known to be an absl::Time, we can infer that the other should be interpreted as an absl::Duration of a similar scale, and make that inference explicit. clang-tidy can fix the code that it finds. The check is in the abseil module of clang-tidy.
- Code
abseil-duration-addition
clang-tidy can fix the code that it finds. The check is in the abseil module of clang-tidy.
- Code
abseil-duration-comparison
clang-tidy can fix the code that it finds. The check is in the abseil module of clang-tidy.
- Code
abseil-duration-conversion-cast
That means that division of two absl::Duration objects returns an int64 with any fractional component truncated toward 0. See this link for more information on arithmetic with absl::Duration. clang-tidy can fix the code that it finds. The check is in the abseil module of clang-tidy.
- Code
abseil-duration-division
clang-tidy can fix the code that it finds. The check is in the abseil module of clang-tidy.
- Code
abseil-duration-factory-float
This check also looks for arguments with a zero value and suggests using absl::ZeroDuration() instead. clang-tidy can fix the code that it finds. The check is in the abseil module of clang-tidy.
- Code
abseil-duration-factory-scale
When subtracting two values, and the first one is known to be a conversion from absl::Duration, we can infer that the second should also be interpreted as an absl::Duration, and make that inference explicit. clang-tidy can fix the code that it finds. The check is in the abseil module of clang-tidy.
- Code
abseil-duration-subtraction
clang-tidy can fix the code that it finds. The check is in the abseil module of clang-tidy.
- Code
abseil-duration-unnecessary-conversion
The check will offer a suggestion to change the string literal into a character. It will also catch code using absl::ByAnyChar() for just a single character and will transform that into a single character as well. clang-tidy can fix the code that it finds. The check is in the abseil module of clang-tidy.
- Code
abseil-faster-strsplit-delimiter
If something is in a namespace that includes the word "internal", code is not allowed to depend upon it because it's an implementation detail. They cannot friend it, include it, you mention it or refer to it in any way. The check is in the abseil module of clang-tidy.
- Code
abseil-no-internal-dependencies
Code should not open namespace absl as that conflicts with Abseil's compatibility guidelines and may result in breakage. The check is in the abseil module of clang-tidy.
- Code
abseil-no-namespace
clang-tidy can fix the code that it finds. The check is in the abseil module of clang-tidy.
- Code
abseil-redundant-strcat-calls
Suggests absl::StrAppend() should be used instead. clang-tidy can fix the code that it finds. The check is in the abseil module of clang-tidy.
- Code
abseil-str-cat-append
This is both a readability and performance issue. clang-tidy can fix the code that it finds. The check is in the abseil module of clang-tidy.
- Code
abseil-string-find-startswith
clang-tidy can fix the code that it finds. The check is in the abseil module of clang-tidy.
- Code
abseil-string-find-str-contains
clang-tidy can fix the code that it finds. The check is in the abseil module of clang-tidy.
- Code
abseil-time-comparison
clang-tidy can fix the code that it finds. The check is in the abseil module of clang-tidy.
- Code
abseil-time-subtraction
Below we will refer to this type as StatusOr<T>. The check is in the abseil module of clang-tidy.
- Code
abseil-unchecked-statusor-access
clang-tidy can fix the code that it finds. The check is in the abseil module of clang-tidy.
- Code
abseil-upgrade-duration-conversions
It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to C, C++, Objective-C.
- Code
alpha.clone.CloneChecker
It is an experimental (alpha) checker, so the analyzer does not run it by default.
- Code
alpha.core.C11Lock
It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to C, C++.
- Code
alpha.core.CastToStruct
It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to C, C++, Objective-C.
- Code
alpha.core.Conversion
Such a pointer is dangling. The checker reports it when it is dereferenced and when it is passed to a function. It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to C, C++.
- Code
alpha.core.DanglingPtrDeref
In case of bad variant type access (the accessed type differs from the active type) a warning is emitted. Currently, this checker does not take exception handling into account. It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to C++.
- Code
alpha.core.StdVariant
This implements part of SEI CERT Rule ENV30-C. It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to C, C++.
- Code
alpha.core.StoreToImmutable
The checker only analyzes code that is annotated with the [[clang::lifetimebound]] attribute. The annotation tells the checker which object the returned value is bound to. It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to C, C++.
- Code
alpha.core.UseAfterLifetimeEnd
It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to C++.
- Code
alpha.cplusplus.DeleteWithNonVirtualDtor
It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to C++.
- Code
alpha.cplusplus.InvalidatedIterator
It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to C++.
- Code
alpha.cplusplus.IteratorRange
It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to C++.
- Code
alpha.cplusplus.MismatchedIterator
It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to C++.
- Code
alpha.cplusplus.SmartPtr
It is an experimental (alpha) checker, so the analyzer does not run it by default. It applies to C, C++.
- Code
alpha.deadcode.UnreachableCode
It is an experimental (alpha) checker, so the analyzer does not run it by default.
- Code
alpha.fuchsia.Lock
It is an experimental (alpha) checker, so the analyzer does not run it by default.
- Code
alpha.llvm.Conventions
It is an experimental (alpha) checker, so the analyzer does not run it by default.
- Code
alpha.webkit.ForwardDeclChecker
It is an experimental (alpha) checker, so the analyzer does not run it by default.
- Code
alpha.webkit.MemoryUnsafeCastChecker
It is an experimental (alpha) checker, so the analyzer does not run it by default.
- Code
alpha.webkit.NoDeleteChecker
Only CheckedPtr, CheckedRef, RefPtr, or Ref are allowed. It is an experimental (alpha) checker, so the analyzer does not run it by default.
- Code
alpha.webkit.NoUncheckedPtrMemberChecker
Only RetainPtr is allowed for CF types regardless of whether ARC is enabled or disabled. Only RetainPtr or OSObjectPtr is allowed for NS types when ARC is disabled. It is an experimental (alpha) checker, so the analyzer does not run it by default.
- Code
alpha.webkit.NoUnretainedMemberChecker
It is an experimental (alpha) checker, so the analyzer does not run it by default.
- Code
alpha.webkit.UnborrowedCallArgsChecker
It is an experimental (alpha) checker, so the analyzer does not run it by default.
- Code
alpha.webkit.UnborrowedLambdaCapturesChecker
It calls crashIfBorrowed() in methods that destroy its interior. WTF::Vector is a motivating example: append() calls crashIfBorrowed(). It is an experimental (alpha) checker, so the analyzer does not run it by default.
- Code
alpha.webkit.UnborrowedLocalVarsChecker
This applies to call to any function, method, lambda, function pointer or functor. CheckedPtr capable objects aren't supposed to be allocated on stack so we check arguments for parameters of raw pointers and references to unchecked types. It is an experimental (alpha) checker, so the analyzer does not run it by default.
- Code
alpha.webkit.UncheckedCallArgsChecker
Only CheckedPtr or CheckedRef is allowed. It is an experimental (alpha) checker, so the analyzer does not run it by default.
- Code
alpha.webkit.UncheckedLambdaCapturesChecker
To be on the safe side we require the scope of an unchecked variable to be embedded in the scope of CheckedPtr/CheckRef object that backs it. It is an experimental (alpha) checker, so the analyzer does not run it by default.
- Code
alpha.webkit.UncheckedLocalVarsChecker
This applies to call to any function, method, lambda, function pointer or functor. Ref-countable types aren't supposed to be allocated on stack so we check arguments for parameters of raw pointers and references to uncounted types. It is an experimental (alpha) checker, so the analyzer does not run it by default.
- Code
alpha.webkit.UncountedCallArgsChecker
To be on the safe side we require the scope of an uncounted variable to be embedded in the scope of ref-counted object that backs it. It is an experimental (alpha) checker, so the analyzer does not run it by default.
- Code
alpha.webkit.UncountedLocalVarsChecker
This applies to call to any function, method, lambda, function pointer or functor. NS or CF objects aren't supposed to be allocated on stack so we check arguments for parameters of raw pointers and references to unretained types. It is an experimental (alpha) checker, so the analyzer does not run it by default.
- Code
alpha.webkit.UnretainedCallArgsChecker
Only RetainPtr is allowed for CF types regardless of whether ARC is enabled or disabled, and only RetainPtr or OSObjectPtr is allowed for NS types when ARC is disabled. It is an experimental (alpha) checker, so the analyzer does not run it by default.
- Code
alpha.webkit.UnretainedLambdaCapturesChecker
To be on the safe side we require the scope of an unretained variable to be embedded in the scope of RetainPtr or OSObjectPtr object that backs it. It is an experimental (alpha) checker, so the analyzer does not run it by default.
- Code
alpha.webkit.UnretainedLocalVarsChecker
This causes branches to occur inside the loops, and thus leads to performance degradation. The check is in the altera module of clang-tidy.
- Code
altera-id-dependent-backward-branch
The check is case insensitive. The check is in the altera module of clang-tidy.
- Code
altera-kernel-name-restriction
The check is in the altera module of clang-tidy.
- Code
altera-single-work-item-barrier
clang-tidy can fix the code that it finds. The check is in the altera module of clang-tidy.
- Code
altera-struct-pack-align
The check is in the altera module of clang-tidy.
- Code
altera-unroll-loops
Without this flag, an opened sensitive file descriptor would remain open across a fork+exec to a lower-privileged SELinux domain. clang-tidy can fix the code that it finds. The check is in the android module of clang-tidy.
- Code
android-cloexec-accept
Without this flag, an opened sensitive file would remain open across a fork+exec to a lower-privileged SELinux domain. clang-tidy can fix the code that it finds. The check is in the android module of clang-tidy.
- Code
android-cloexec-accept4
clang-tidy can fix the code that it finds. The check is in the android module of clang-tidy.
- Code
android-cloexec-creat
Otherwise, an opened sensitive file would remain open across a fork+exec to a lower-privileged SELinux domain. clang-tidy can fix the code that it finds. The check is in the android module of clang-tidy.
- Code
android-cloexec-dup
clang-tidy can fix the code that it finds. The check is in the android module of clang-tidy.
- Code
android-cloexec-epoll-create
Without this flag, an opened sensitive file would remain open across a fork+exec to a lower-privileged SELinux domain. clang-tidy can fix the code that it finds. The check is in the android module of clang-tidy.
- Code
android-cloexec-epoll-create1
This is equivalent to having set FD_CLOEXEC on that descriptor. clang-tidy can fix the code that it finds. The check is in the android module of clang-tidy.
- Code
android-cloexec-fopen
clang-tidy can fix the code that it finds. The check is in the android module of clang-tidy.
- Code
android-cloexec-inotify-init
Without this flag, an opened sensitive file would remain open across a fork+exec to a lower-privileged SELinux domain. clang-tidy can fix the code that it finds. The check is in the android module of clang-tidy.
- Code
android-cloexec-inotify-init1
Without this flag, an opened sensitive file would remain open across a fork+exec to a lower-privileged SELinux domain. clang-tidy can fix the code that it finds. The check is in the android module of clang-tidy.
- Code
android-cloexec-memfd-create
Without that flag, an opened sensitive file would remain open across a fork+exec to a lower-privileged SELinux domain, leaking that sensitive data. Open-like functions including open(), openat(), and open64() should include O_CLOEXEC in their flags argument. clang-tidy can fix the code that it finds. The check is in the android module of clang-tidy.
- Code
android-cloexec-open
Using pipe() is not recommended, pipe2() is the suggested replacement. The check also adds the O_CLOEXEC flag that marks the file descriptor to be closed in child processes. clang-tidy can fix the code that it finds. The check is in the android module of clang-tidy.
- Code
android-cloexec-pipe
The check also adds the O_CLOEXEC flag that marks the file descriptor to be closed in child processes. Without this flag a sensitive file descriptor can be leaked to a child process, potentially into a lower-privileged SELinux domain. clang-tidy can fix the code that it finds. The check is in the android module of clang-tidy.
- Code
android-cloexec-pipe2
Without this flag, an opened sensitive file would remain open across a fork+exec to a lower-privileged SELinux domain. clang-tidy can fix the code that it finds. The check is in the android module of clang-tidy.
- Code
android-cloexec-socket
Having such a use is incorrect in the vast majority of cases, and will often silently defeat the purpose of the TEMP_FAILURE_RETRY macro. The check is in the android module of clang-tidy.
- Code
android-comparison-in-temp-failure-retry
clang-tidy can fix the code that it finds. The check is in the boost module of clang-tidy.
- Code
boost-use-ranges
clang-tidy can fix the code that it finds. The check is in the boost module of clang-tidy.
- Code
boost-use-to-string
The check is in the bugprone module of clang-tidy.
- Code
bugprone-assert-side-effect
Such assignments are bug-prone because they may have been intended as equality tests. The check is in the bugprone module of clang-tidy.
- Code
bugprone-assignment-in-if-condition
Such assignments may indicate programmer error because they may have been intended as equality tests. The selection statements are conditions of if and loop (for, while, do) statements, condition of conditional operator (?:) and any operand of a binary logical operator (&&, ||). The check is in the bugprone module of clang-tidy.
- Code
bugprone-assignment-in-selection-statement
Use any signal except SIGTERM. The check is in the bugprone module of clang-tidy.
- Code
bugprone-bad-signal-to-kill-thread
The check is in the bugprone module of clang-tidy.
- Code
bugprone-bitwise-pointer-cast
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-bool-pointer-implicit-conversion
The check is in the bugprone module of clang-tidy.
- Code
bugprone-branch-clone
The check is in the bugprone module of clang-tidy.
- Code
bugprone-capturing-this-in-member-variable
The check is in the bugprone module of clang-tidy.
- Code
bugprone-casting-through-void
The check is in the bugprone module of clang-tidy.
- Code
bugprone-chained-comparison
It does not flag calls to system() with a null pointer argument, as such a call checks for the presence of a command processor but does not actually attempt to execute a command. The check is in the bugprone module of clang-tidy.
- Code
bugprone-command-processor
The check is in the bugprone module of clang-tidy.
- Code
bugprone-compare-pointer-to-member-virtual-function
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-copy-constructor-init
The check is in the bugprone module of clang-tidy.
- Code
bugprone-copy-constructor-mutates-argument
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-crtp-constructor-accessibility
These dangling references can be a result of constructing handles from temporary values, where the temporary is destroyed soon after the handle is created. The check is in the bugprone module of clang-tidy.
- Code
bugprone-dangling-handle
The check is in the bugprone module of clang-tidy.
- Code
bugprone-default-operator-new-on-overaligned-type
The check is in the bugprone module of clang-tidy.
- Code
bugprone-derived-method-shadowing-base-method
The check is in the bugprone module of clang-tidy.
- Code
bugprone-dynamic-static-initializers
The check is in the bugprone module of clang-tidy.
- Code
bugprone-easily-swappable-parameters
The check is in the bugprone module of clang-tidy.
- Code
bugprone-empty-catch
The check is in the bugprone module of clang-tidy.
- Code
bugprone-exception-copy-constructor-throws
The functions which should not throw exceptions are the following. The check is in the bugprone module of clang-tidy.
- Code
bugprone-exception-escape
The check is in the bugprone module of clang-tidy.
- Code
bugprone-float-loop-counter
The check is in the bugprone module of clang-tidy.
- Code
bugprone-fold-init-type
The check is in the bugprone module of clang-tidy.
- Code
bugprone-forward-declaration-namespace
If a non const lvalue reference is passed to the constructor, the forwarding reference parameter will be a better match than the const reference parameter of the copy constructor, so the perfect forwarding constructor will be called, which can be confusing. For detailed description of this issue see: Scott Meyers, Effective Modern C++, Item 26. The check is in the bugprone module of clang-tidy.
- Code
bugprone-forwarding-reference-overload
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-implicit-widening-of-multiplication-result
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-inaccurate-erase
The check is in the bugprone module of clang-tidy.
- Code
bugprone-inc-dec-in-conditions
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-incorrect-enable-if
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-incorrect-enable-shared-from-this
Programmers often use. The check is in the bugprone module of clang-tidy.
- Code
bugprone-incorrect-roundings
The check is in the bugprone module of clang-tidy.
- Code
bugprone-infinite-loop
The check is in the bugprone module of clang-tidy.
- Code
bugprone-integer-division
The check is in the bugprone module of clang-tidy.
- Code
bugprone-invalid-enum-default-initialization
The name of a lambda is always something like operator(), which is almost never what was intended. The check is in the bugprone module of clang-tidy.
- Code
bugprone-lambda-function-name
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-macro-parentheses
The check is in the bugprone module of clang-tidy.
- Code
bugprone-macro-repeated-side-effects
The check is in the bugprone module of clang-tidy.
- Code
bugprone-misleading-setter-of-reference
Cases where 1 is added both to the parameter and the result of the strlen()-like function are ignored, as are cases where the whole addition is surrounded by extra parentheses. clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-misplaced-operator-in-strlen-in-alloc
The check detects error cases even if one of these functions is called by a constant function pointer. clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-misplaced-pointer-arithmetic-in-alloc
If the intention of the cast is to avoid loss of precision then the cast is misplaced, and there can be loss of precision. Otherwise the cast is ineffective. The check is in the bugprone module of clang-tidy.
- Code
bugprone-misplaced-widening-cast
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-missing-end-comparison
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-move-forwarding-reference
The check is in the bugprone module of clang-tidy.
- Code
bugprone-multi-level-implicit-pointer-conversion
The check is in the bugprone module of clang-tidy.
- Code
bugprone-multiple-new-in-one-expression
Only the first statement of the macro will be inside the conditional and the other ones will be executed unconditionally. The check is in the bugprone module of clang-tidy.
- Code
bugprone-multiple-statement-macro
The check is in the bugprone module of clang-tidy.
- Code
bugprone-narrowing-conversions
The block arguments in dispatch_async() and dispatch_after() are guaranteed to escape, so it is an error if a pointer with the noescape attribute is captured by one of these blocks. The check is in the bugprone module of clang-tidy.
- Code
bugprone-no-escape
If the enum is used only to hold values equal to its enumerators, then conversion to bool will always result in true value. This can lead to unnecessary code that reduces readability and maintainability and can result in bugs. The check is in the bugprone module of clang-tidy.
- Code
bugprone-non-zero-enum-to-bool-conversion
The check is in the bugprone module of clang-tidy.
- Code
bugprone-nondeterministic-pointer-iteration-order
Usually the proper length of a string is strlen(src) + 1 or equal length of this expression, because the null terminator needs an extra space. Without the null terminator it can result in undefined behavior when the string is read. clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-not-null-terminated-result
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-optional-value-conversion
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-parent-virtual-call
The check is in the bugprone module of clang-tidy.
- Code
bugprone-pointer-arithmetic-on-polymorphic-object
These functions return either 0 on success or an errno on failure, which is positive only. clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-posix-return
Pseudo-random number engines seeded with a predictable value may cause vulnerabilities e.g. in security protocols. The check is in the bugprone module of clang-tidy.
- Code
bugprone-random-generator-seed
The check is in the bugprone module of clang-tidy.
- Code
bugprone-raw-memory-call-on-non-trivial-type
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-redundant-branch-condition
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-reserved-identifier
This may cause use-after-free errors if the caller uses xvalues as arguments. The check is in the bugprone module of clang-tidy.
- Code
bugprone-return-const-ref-from-parameter
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-shared-ptr-array-mismatch
The rules for what is allowed differ between C++ language versions. The check is in the bugprone module of clang-tidy.
- Code
bugprone-signal-handler
The check is in the bugprone module of clang-tidy.
- Code
bugprone-signed-bitwise
For the CERT alias, the DiagnoseSignedUnsignedCharComparisons option is set to false. The check is in the bugprone module of clang-tidy.
- Code
bugprone-signed-char-misuse
Most likely the user wanted to use .size() instead. The check is in the bugprone module of clang-tidy.
- Code
bugprone-sizeof-container
The check is in the bugprone module of clang-tidy.
- Code
bugprone-sizeof-expression
The check is in the bugprone module of clang-tidy.
- Code
bugprone-spuriously-wake-up-functions
Suggests clear() if it is an existing member function. clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-standalone-empty
The check is in the bugprone module of clang-tidy.
- Code
bugprone-std-exception-baseclass
The check is in the bugprone module of clang-tidy.
- Code
bugprone-std-namespace-modification
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-string-constructor
The source of the problem is the following assignment operator of std::basic_string<CharT>. clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-string-integer-assignment
The check is in the bugprone module of clang-tidy.
- Code
bugprone-string-literal-with-embedded-nul
For the comparison operators, braced initializer list does not compile so instead a call to .empty() or the empty string literal are used, where appropriate. clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-stringview-nullptr
The check is in the bugprone module of clang-tidy.
- Code
bugprone-suspicious-enum-usage
The check is in the bugprone module of clang-tidy.
- Code
bugprone-suspicious-include
The following cases are covered. The check is in the bugprone module of clang-tidy.
- Code
bugprone-suspicious-memory-comparison
Considering the function as void* memset(void* destination, int fill_value, size_t byte_count), the following cases are covered. clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-suspicious-memset-usage
This feature is used to represent long string literal on multiple lines. The check is in the bugprone module of clang-tidy.
- Code
bugprone-suspicious-missing-comma
If no other variable is pointing to it, the original memory block is not available any more for the program to use or free. In either case p = realloc(p, size); indicates bad coding style and can be replaced by q = realloc(p, size). The check is in the bugprone module of clang-tidy.
- Code
bugprone-suspicious-realloc-usage
More specifically, it looks for if, while, for and for-range statements whose body is a single semicolon, and then analyzes the context of the code (e.g. indentation) in an attempt to determine whether that is intentional. clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-suspicious-semicolon
This check is valid in C and C++. clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-suspicious-string-compare
The check is in the bugprone module of clang-tidy.
- Code
bugprone-suspicious-stringview-data-usage
It analyzes the types of the arguments being passed to a function and compares them to the expected types of the corresponding parameters. If there is a mismatch or an implicit conversion that indicates a potential swap, a warning is raised. clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-swapped-arguments
The check is in the bugprone module of clang-tidy.
- Code
bugprone-switch-missing-default-case
The check is in the bugprone module of clang-tidy.
- Code
bugprone-tagged-union-member-count
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-terminating-continue
If a temporary object is created, but the object's type derives from (or is the same as) a class that has 'EXCEPTION', 'Exception' or 'exception' in its name, we can assume that the programmer's intention was to throw that object. The check is in the bugprone module of clang-tidy.
- Code
bugprone-throw-keyword-missing
The check is in the bugprone module of clang-tidy.
- Code
bugprone-throwing-static-initialization
The check is in the bugprone module of clang-tidy.
- Code
bugprone-too-small-loop-variable
Below we will refer to all these types collectively as optional<T>. The check is in the bugprone module of clang-tidy.
- Code
bugprone-unchecked-optional-access
It does not flag calls to strtol(), or other, related conversion functions that do perform better error checking. The check is in the bugprone module of clang-tidy.
- Code
bugprone-unchecked-string-to-number-conversion
The check is in the bugprone module of clang-tidy.
- Code
bugprone-undefined-memory-manipulation
The check is in the bugprone module of clang-tidy.
- Code
bugprone-undelegated-constructor
The check is in the bugprone module of clang-tidy.
- Code
bugprone-unhandled-code-paths
The check is in the bugprone module of clang-tidy.
- Code
bugprone-unhandled-exception-at-new
For the CERT alias, the WarnOnlyIfThisHasSuspiciousField is set to false. The check is in the bugprone module of clang-tidy.
- Code
bugprone-unhandled-self-assignment
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-unintended-char-ostream-output
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-unique-ptr-array-mismatch
The check heavily relies on the functions from the Annex K. "Bounds-checking interfaces" of C11. The check is deprecated. The check is in the bugprone module of clang-tidy.
- Code
bugprone-unsafe-functions
Throwing exceptions from the following functions can be problematic. The check is in the bugprone module of clang-tidy.
- Code
bugprone-unsafe-to-allow-exceptions
The following types of variables are excluded from this check. The check is in the bugprone module of clang-tidy.
- Code
bugprone-unused-local-non-trivial-variable
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-unused-raii
The checked functions can be configured. The check is in the bugprone module of clang-tidy.
- Code
bugprone-unused-return-value
The check is in the bugprone module of clang-tidy.
- Code
bugprone-use-after-move
clang-tidy can fix the code that it finds. The check is in the bugprone module of clang-tidy.
- Code
bugprone-virtual-near-miss
It is an alias of the check bugprone-sizeof-expression, which does the same work.
- Code
cert-arr39-c
It is an alias of the check bugprone-spuriously-wake-up-functions, which does the same work.
- Code
cert-con36-c
It is an alias of the check bugprone-spuriously-wake-up-functions, which does the same work.
- Code
cert-con54-cpp
It is an alias of the check bugprone-pointer-arithmetic-on-polymorphic-object, which does the same work.
- Code
cert-ctr56-cpp
It is an alias of the check misc-static-assert, which does the same work. clang-tidy can fix the code that it finds.
- Code
cert-dcl03-c
It is an alias of the check readability-uppercase-literal-suffix, which does the same work. clang-tidy can fix the code that it finds.
- Code
cert-dcl16-c
It is an alias of the check bugprone-reserved-identifier, which does the same work. clang-tidy can fix the code that it finds.
- Code
cert-dcl37-c
It is an alias of the check modernize-avoid-variadic-functions, which does the same work.
- Code
cert-dcl50-cpp
It is an alias of the check bugprone-reserved-identifier, which does the same work. clang-tidy can fix the code that it finds.
- Code
cert-dcl51-cpp
It is an alias of the check misc-new-delete-overloads, which does the same work.
- Code
cert-dcl54-cpp
It is an alias of the check bugprone-std-namespace-modification, which does the same work.
- Code
cert-dcl58-cpp
It is an alias of the check misc-anonymous-namespace-in-header, which does the same work.
- Code
cert-dcl59-cpp
It is an alias of the check bugprone-command-processor, which does the same work.
- Code
cert-env33-c
It is an alias of the check misc-throw-by-value-catch-by-reference, which does the same work.
- Code
cert-err09-cpp
It is an alias of the check bugprone-unused-return-value, which does the same work.
- Code
cert-err33-c
It is an alias of the check bugprone-unchecked-string-to-number-conversion, which does the same work.
- Code
cert-err34-c
It is an alias of the check modernize-avoid-setjmp-longjmp, which does the same work.
- Code
cert-err52-cpp