diff --git a/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-addition.rst b/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-addition.rst --- a/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-addition.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-addition.rst @@ -19,3 +19,7 @@ // Suggestion - Addition in the absl::Time domain int result = absl::ToUnixSeconds(t + absl::Seconds(x)); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-comparison.rst b/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-comparison.rst --- a/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-comparison.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-comparison.rst @@ -31,3 +31,7 @@ // Suggested - Compare in the absl::Duration domain instead if (absl::Microseconds(x) < d) ... + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-conversion-cast.rst b/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-conversion-cast.rst --- a/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-conversion-cast.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-conversion-cast.rst @@ -29,3 +29,7 @@ Note: In the second example, the suggested fix could yield a different result, as the conversion to integer could truncate. In practice, this is very rare, and you should use ``absl::Trunc`` to perform this operation explicitly instead. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-division.rst b/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-division.rst --- a/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-division.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-division.rst @@ -34,3 +34,7 @@ This check looks for uses of ``absl::Duration`` division that is done in a floating-point context, and recommends the use of a function that returns a floating-point value. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-factory-float.rst b/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-factory-float.rst --- a/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-factory-float.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-factory-float.rst @@ -27,3 +27,7 @@ // Suggested - Remove the explicit cast absl::Duration d = absl::Seconds(10); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-factory-scale.rst b/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-factory-scale.rst --- a/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-factory-scale.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-factory-scale.rst @@ -33,3 +33,7 @@ // Suggested = Use absl::ZeroDuration instead absl::Duration d = absl::ZeroDuration(); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-subtraction.rst b/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-subtraction.rst --- a/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-subtraction.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-subtraction.rst @@ -34,3 +34,7 @@ be transformed in one run. In particular, this may occur for nested subtraction expressions. Running ``clang-tidy`` multiple times will find and fix these overlaps. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-unnecessary-conversion.rst b/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-unnecessary-conversion.rst --- a/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-unnecessary-conversion.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/abseil-duration-unnecessary-conversion.rst @@ -55,3 +55,7 @@ truncating operation if the value is not aligned to the scale of conversion. In the rare case where this is the intended result, callers should use ``absl::Trunc`` to truncate explicitly. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/abseil-faster-strsplit-delimiter.rst b/clang-tools-extra/docs/clang-tidy/checks/abseil-faster-strsplit-delimiter.rst --- a/clang-tools-extra/docs/clang-tidy/checks/abseil-faster-strsplit-delimiter.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/abseil-faster-strsplit-delimiter.rst @@ -39,3 +39,7 @@ // Suggested - the argument is a character, which causes the more efficient // overload of absl::StrSplit() to be used. for (auto piece : absl::StrSplit(str, absl::MaxSplits('B', 1))) { + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/abseil-redundant-strcat-calls.rst b/clang-tools-extra/docs/clang-tidy/checks/abseil-redundant-strcat-calls.rst --- a/clang-tools-extra/docs/clang-tidy/checks/abseil-redundant-strcat-calls.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/abseil-redundant-strcat-calls.rst @@ -24,3 +24,7 @@ absl::StrAppend(&s, "E", "F", "G"); //after + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/abseil-str-cat-append.rst b/clang-tools-extra/docs/clang-tidy/checks/abseil-str-cat-append.rst --- a/clang-tools-extra/docs/clang-tidy/checks/abseil-str-cat-append.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/abseil-str-cat-append.rst @@ -15,3 +15,7 @@ Does not diagnose cases where ``absl::StrCat()`` is used as a template argument for a functor. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/abseil-string-find-startswith.rst b/clang-tools-extra/docs/clang-tidy/checks/abseil-string-find-startswith.rst --- a/clang-tools-extra/docs/clang-tidy/checks/abseil-string-find-startswith.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/abseil-string-find-startswith.rst @@ -39,3 +39,7 @@ The location of Abseil's ``strings/match.h``. Defaults to ``absl/strings/match.h``. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/abseil-time-comparison.rst b/clang-tools-extra/docs/clang-tidy/checks/abseil-time-comparison.rst --- a/clang-tools-extra/docs/clang-tidy/checks/abseil-time-comparison.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/abseil-time-comparison.rst @@ -21,3 +21,7 @@ // Suggested - Compare in the absl::Time domain instead if (absl::FromUnixSeconds(x) < t) ... + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/abseil-time-subtraction.rst b/clang-tools-extra/docs/clang-tidy/checks/abseil-time-subtraction.rst --- a/clang-tools-extra/docs/clang-tidy/checks/abseil-time-subtraction.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/abseil-time-subtraction.rst @@ -37,3 +37,7 @@ // Suggestion - Perform subtraction in the Time domain instead. int i = absl::ToInt64Seconds(absl::FromUnixSeconds(x) - t); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/abseil-upgrade-duration-conversions.rst b/clang-tools-extra/docs/clang-tidy/checks/abseil-upgrade-duration-conversions.rst --- a/clang-tools-extra/docs/clang-tidy/checks/abseil-upgrade-duration-conversions.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/abseil-upgrade-duration-conversions.rst @@ -41,3 +41,7 @@ Note that this check always adds a cast to ``int64_t`` in order to preserve the current behavior of user code. It is possible that this uncovers unintended behavior due to types implicitly convertible to a floating-point type. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/android-cloexec-accept.rst b/clang-tools-extra/docs/clang-tidy/checks/android-cloexec-accept.rst --- a/clang-tools-extra/docs/clang-tidy/checks/android-cloexec-accept.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/android-cloexec-accept.rst @@ -16,3 +16,7 @@ // becomes accept4(sockfd, addr, addrlen, SOCK_CLOEXEC); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/android-cloexec-creat.rst b/clang-tools-extra/docs/clang-tidy/checks/android-cloexec-creat.rst --- a/clang-tools-extra/docs/clang-tidy/checks/android-cloexec-creat.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/android-cloexec-creat.rst @@ -14,3 +14,7 @@ // becomes int fd = open(path, O_WRONLY | O_CREAT | O_TRUNC | O_CLOEXEC, mode); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/android-cloexec-dup.rst b/clang-tools-extra/docs/clang-tidy/checks/android-cloexec-dup.rst --- a/clang-tools-extra/docs/clang-tidy/checks/android-cloexec-dup.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/android-cloexec-dup.rst @@ -16,3 +16,7 @@ // becomes int fd = fcntl(oldfd, F_DUPFD_CLOEXEC); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/android-cloexec-pipe.rst b/clang-tools-extra/docs/clang-tidy/checks/android-cloexec-pipe.rst --- a/clang-tools-extra/docs/clang-tidy/checks/android-cloexec-pipe.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/android-cloexec-pipe.rst @@ -19,3 +19,7 @@ .. code-block:: c++ pipe2(pipefd, O_CLOEXEC); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/boost-use-to-string.rst b/clang-tools-extra/docs/clang-tidy/checks/boost-use-to-string.rst --- a/clang-tools-extra/docs/clang-tidy/checks/boost-use-to-string.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/boost-use-to-string.rst @@ -20,3 +20,7 @@ auto str = std::to_string(42); auto wstr = std::to_wstring(2137LL); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-argument-comment.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-argument-comment.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-argument-comment.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-argument-comment.rst @@ -185,3 +185,7 @@ void foo(A* Value); foo(/*Value=*/nullptr); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-bool-pointer-implicit-conversion.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-bool-pointer-implicit-conversion.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-bool-pointer-implicit-conversion.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-bool-pointer-implicit-conversion.rst @@ -14,3 +14,7 @@ if (p) { // Never used in a pointer-specific way. } + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-copy-constructor-init.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-copy-constructor-init.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-copy-constructor-init.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-copy-constructor-init.rst @@ -27,3 +27,7 @@ }; The check also suggests a fix-its in some cases. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-inaccurate-erase.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-inaccurate-erase.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-inaccurate-erase.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-inaccurate-erase.rst @@ -27,3 +27,7 @@ std::vector xs; ... xs.erase(std::remove(xs.begin(), xs.end(), 10), xs.end()); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-macro-parentheses.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-macro-parentheses.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-macro-parentheses.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-macro-parentheses.rst @@ -17,3 +17,7 @@ It is also recommended to surround macro arguments in the replacement list with parentheses. This ensures that the argument value is calculated properly. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-operator-in-strlen-in-alloc.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-operator-in-strlen-in-alloc.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-operator-in-strlen-in-alloc.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-operator-in-strlen-in-alloc.rst @@ -55,3 +55,7 @@ void bad_malloc(char *str) { char *c = (char*) malloc(strlen((str + 1))); } + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-pointer-arithmetic-in-alloc.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-pointer-arithmetic-in-alloc.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-pointer-arithmetic-in-alloc.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-pointer-arithmetic-in-alloc.rst @@ -23,3 +23,7 @@ .. code-block:: c char *p = (char*) malloc(n + 10); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-move-forwarding-reference.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-move-forwarding-reference.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-move-forwarding-reference.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-move-forwarding-reference.rst @@ -58,3 +58,7 @@ This means that the ``foo(s)`` call passes ``s`` as an lvalue reference, and ``foo()`` ends up moving ``s`` and thereby placing it into an indeterminate state. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-not-null-terminated-result.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-not-null-terminated-result.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-not-null-terminated-result.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-not-null-terminated-result.rst @@ -130,3 +130,7 @@ An integer non-zero value specifying if the target environment is considered to implement '_s' suffixed memory and string handler functions which are safer than older versions (e.g. 'memcpy_s()'). The default value is ``1``. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-parent-virtual-call.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-parent-virtual-call.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-parent-virtual-call.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-parent-virtual-call.rst @@ -21,3 +21,7 @@ // ^^^^^^^^ // warning: qualified name A::foo refers to a member overridden in subclass; did you mean 'B'? [bugprone-parent-virtual-call] }; + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-posix-return.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-posix-return.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-posix-return.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-posix-return.rst @@ -18,3 +18,7 @@ .. code-block:: c if (posix_fadvise(...) > 0) { + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-reserved-identifier.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-reserved-identifier.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-reserved-identifier.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-reserved-identifier.rst @@ -54,3 +54,7 @@ Semicolon-separated list of names that the check ignores. Default is an empty list. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-string-constructor.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-string-constructor.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-string-constructor.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-string-constructor.rst @@ -42,3 +42,7 @@ .. option:: LargeLengthThreshold An integer specifying the large length threshold. Default is `0x800000`. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-string-integer-assignment.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-string-integer-assignment.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-string-integer-assignment.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-string-integer-assignment.rst @@ -35,3 +35,7 @@ std::string s; s = static_cast(6); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-memset-usage.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-memset-usage.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-memset-usage.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-memset-usage.rst @@ -52,3 +52,7 @@ memset(ip, sizeof(int), v); // zero length, potentially swapped memset(ip, 0, 1); // OK } + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-semicolon.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-semicolon.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-semicolon.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-semicolon.rst @@ -70,3 +70,7 @@ In this case the check will assume that you know what you are doing, and will not raise a warning. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-string-compare.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-string-compare.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-string-compare.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-string-compare.rst @@ -62,3 +62,7 @@ `lstrcmp`, `lstrcmpi`, `memcmp`, `memicmp`, `strcasecmp`, `strcmp`, `strcmpi`, `stricmp`, `strncasecmp`, `strncmp`, `strnicmp`, `wcscasecmp`, `wcscmp`, `wcsicmp`, `wcsncmp`, `wcsnicmp`, `wmemcmp`. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-swapped-arguments.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-swapped-arguments.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-swapped-arguments.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-swapped-arguments.rst @@ -4,3 +4,7 @@ ========================== Finds potentially swapped arguments by looking at implicit conversions. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-terminating-continue.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-terminating-continue.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-terminating-continue.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-terminating-continue.rst @@ -15,3 +15,7 @@ continue; // terminating continue // some other code } while(false); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-unused-raii.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-unused-raii.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-unused-raii.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-unused-raii.rst @@ -28,3 +28,7 @@ - Ignore objects at the end of a compound statement (doesn't change behavior). - Ignore objects returned from a call. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone-virtual-near-miss.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone-virtual-near-miss.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone-virtual-near-miss.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/bugprone-virtual-near-miss.rst @@ -18,3 +18,7 @@ virtual funk(); // warning: 'Derived::funk' has a similar name and the same signature as virtual method 'Base::func'; did you mean to override it? }; + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/cert-dcl03-c.rst b/clang-tools-extra/docs/clang-tidy/checks/cert-dcl03-c.rst --- a/clang-tools-extra/docs/clang-tidy/checks/cert-dcl03-c.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/cert-dcl03-c.rst @@ -7,3 +7,7 @@ The cert-dcl03-c check is an alias, please see `misc-static-assert `_ for more information. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/cert-dcl16-c.rst b/clang-tools-extra/docs/clang-tidy/checks/cert-dcl16-c.rst --- a/clang-tools-extra/docs/clang-tidy/checks/cert-dcl16-c.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/cert-dcl16-c.rst @@ -7,3 +7,7 @@ The cert-dcl16-c check is an alias, please see `readability-uppercase-literal-suffix `_ for more information. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/cert-dcl37-c.rst b/clang-tools-extra/docs/clang-tidy/checks/cert-dcl37-c.rst --- a/clang-tools-extra/docs/clang-tidy/checks/cert-dcl37-c.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/cert-dcl37-c.rst @@ -8,3 +8,7 @@ The cert-dcl37-c check is an alias, please see `bugprone-reserved-identifier `_ for more information. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/cert-dcl51-cpp.rst b/clang-tools-extra/docs/clang-tidy/checks/cert-dcl51-cpp.rst --- a/clang-tools-extra/docs/clang-tidy/checks/cert-dcl51-cpp.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/cert-dcl51-cpp.rst @@ -8,3 +8,7 @@ The cert-dcl51-cpp check is an alias, please see `bugprone-reserved-identifier `_ for more information. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/cert-oop11-cpp.rst b/clang-tools-extra/docs/clang-tidy/checks/cert-oop11-cpp.rst --- a/clang-tools-extra/docs/clang-tidy/checks/cert-oop11-cpp.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/cert-oop11-cpp.rst @@ -13,4 +13,7 @@ OOP11-CPP. Do not copy-initialize members or base classes from a move constructor. However, all of the CERT recommendations have been removed from public view, and so their justification for the behavior of this check requires -an account on their wiki to view. \ No newline at end of file +an account on their wiki to view. +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-explicit-virtual-functions.rst b/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-explicit-virtual-functions.rst --- a/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-explicit-virtual-functions.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-explicit-virtual-functions.rst @@ -8,3 +8,7 @@ The cppcoreguidelines-explicit-virtual-functions check is an alias, please see `modernize-use-override `_ for more information. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-init-variables.rst b/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-init-variables.rst --- a/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-init-variables.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-init-variables.rst @@ -49,3 +49,7 @@ A string specifying the header to include to get the definition of `NAN`. Default is `math.h`. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-bounds-constant-array-index.rst b/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-bounds-constant-array-index.rst --- a/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-bounds-constant-array-index.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-bounds-constant-array-index.rst @@ -23,3 +23,7 @@ A string specifying which include-style is used, `llvm` or `google`. Default is `llvm`. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-cstyle-cast.rst b/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-cstyle-cast.rst --- a/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-cstyle-cast.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-cstyle-cast.rst @@ -16,3 +16,7 @@ This rule is part of the "Type safety" profile of the C++ Core Guidelines, see https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Pro-type-cstylecast. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-member-init.rst b/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-member-init.rst --- a/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-member-init.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-member-init.rst @@ -41,3 +41,7 @@ This rule is part of the "Type safety" profile of the C++ Core Guidelines, corresponding to rule Type.6. See https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Pro-type-memberinit. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-static-cast-downcast.rst b/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-static-cast-downcast.rst --- a/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-static-cast-downcast.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-static-cast-downcast.rst @@ -13,3 +13,7 @@ This rule is part of the "Type safety" profile of the C++ Core Guidelines, see https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Pro-type-downcast. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/darwin-dispatch-once-nonstatic.rst b/clang-tools-extra/docs/clang-tidy/checks/darwin-dispatch-once-nonstatic.rst --- a/clang-tools-extra/docs/clang-tidy/checks/darwin-dispatch-once-nonstatic.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/darwin-dispatch-once-nonstatic.rst @@ -20,3 +20,7 @@ See the discussion section of `Apple's dispatch_once documentation `_ for more information. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/fuchsia-default-arguments-declarations.rst b/clang-tools-extra/docs/clang-tidy/checks/fuchsia-default-arguments-declarations.rst --- a/clang-tools-extra/docs/clang-tidy/checks/fuchsia-default-arguments-declarations.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/fuchsia-default-arguments-declarations.rst @@ -14,3 +14,7 @@ will cause a warning. See the features disallowed in Fuchsia at https://fuchsia.googlesource.com/zircon/+/master/docs/cxx.md + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/google-explicit-constructor.rst b/clang-tools-extra/docs/clang-tidy/checks/google-explicit-constructor.rst --- a/clang-tools-extra/docs/clang-tidy/checks/google-explicit-constructor.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/google-explicit-constructor.rst @@ -54,3 +54,7 @@ See https://google.github.io/styleguide/cppguide.html#Explicit_Constructors + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/google-readability-braces-around-statements.rst b/clang-tools-extra/docs/clang-tidy/checks/google-readability-braces-around-statements.rst --- a/clang-tools-extra/docs/clang-tidy/checks/google-readability-braces-around-statements.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/google-readability-braces-around-statements.rst @@ -8,3 +8,7 @@ The google-readability-braces-around-statements check is an alias, please see `readability-braces-around-statements `_ for more information. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/google-upgrade-googletest-case.rst b/clang-tools-extra/docs/clang-tidy/checks/google-upgrade-googletest-case.rst --- a/clang-tools-extra/docs/clang-tidy/checks/google-upgrade-googletest-case.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/google-upgrade-googletest-case.rst @@ -51,3 +51,7 @@ non-virtual member functions with matching names in derived types. The check tries to provide a only warning when a fix cannot be made safely, as is the case with some template and macro uses. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/hicpp-braces-around-statements.rst b/clang-tools-extra/docs/clang-tidy/checks/hicpp-braces-around-statements.rst --- a/clang-tools-extra/docs/clang-tidy/checks/hicpp-braces-around-statements.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/hicpp-braces-around-statements.rst @@ -9,3 +9,7 @@ `readability-braces-around-statements `_ for more information. It enforces the `rule 6.1.1 `_. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/hicpp-deprecated-headers.rst b/clang-tools-extra/docs/clang-tidy/checks/hicpp-deprecated-headers.rst --- a/clang-tools-extra/docs/clang-tidy/checks/hicpp-deprecated-headers.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/hicpp-deprecated-headers.rst @@ -9,3 +9,7 @@ `modernize-deprecated-headers `_ for more information. It enforces the `rule 1.3.3 `_. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/hicpp-explicit-conversions.rst b/clang-tools-extra/docs/clang-tidy/checks/hicpp-explicit-conversions.rst --- a/clang-tools-extra/docs/clang-tidy/checks/hicpp-explicit-conversions.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/hicpp-explicit-conversions.rst @@ -15,3 +15,7 @@ - `cppcoreguidelines-pro-type-reinterpret-cast `_ - `cppcoreguidelines-pro-type-const-cast `_ - `cppcoreguidelines-pro-type-cstyle-cast `_ + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/hicpp-member-init.rst b/clang-tools-extra/docs/clang-tidy/checks/hicpp-member-init.rst --- a/clang-tools-extra/docs/clang-tidy/checks/hicpp-member-init.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/hicpp-member-init.rst @@ -9,3 +9,7 @@ Implements the check for `rule 12.4.2 `_ to initialize class members in the right order. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/hicpp-move-const-arg.rst b/clang-tools-extra/docs/clang-tidy/checks/hicpp-move-const-arg.rst --- a/clang-tools-extra/docs/clang-tidy/checks/hicpp-move-const-arg.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/hicpp-move-const-arg.rst @@ -8,3 +8,7 @@ The `hicpp-move-const-arg` check is an alias, please see `performance-move-const-arg `_ for more information. It enforces the `rule 17.3.1 `_. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/hicpp-named-parameter.rst b/clang-tools-extra/docs/clang-tidy/checks/hicpp-named-parameter.rst --- a/clang-tools-extra/docs/clang-tidy/checks/hicpp-named-parameter.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/hicpp-named-parameter.rst @@ -8,3 +8,7 @@ This check is an alias for `readability-named-parameter `_. Implements `rule 8.2.1 `_. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/hicpp-static-assert.rst b/clang-tools-extra/docs/clang-tidy/checks/hicpp-static-assert.rst --- a/clang-tools-extra/docs/clang-tidy/checks/hicpp-static-assert.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/hicpp-static-assert.rst @@ -8,3 +8,7 @@ The `hicpp-static-assert` check is an alias, please see `misc-static-assert `_ for more information. It enforces the `rule 7.1.10 `_. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/hicpp-uppercase-literal-suffix.rst b/clang-tools-extra/docs/clang-tidy/checks/hicpp-uppercase-literal-suffix.rst --- a/clang-tools-extra/docs/clang-tidy/checks/hicpp-uppercase-literal-suffix.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/hicpp-uppercase-literal-suffix.rst @@ -7,3 +7,7 @@ The hicpp-uppercase-literal-suffix check is an alias, please see `readability-uppercase-literal-suffix `_ for more information. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-auto.rst b/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-auto.rst --- a/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-auto.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-auto.rst @@ -8,3 +8,7 @@ The `hicpp-use-auto` check is an alias, please see `modernize-use-auto `_ for more information. It enforces the `rule 7.1.8 `_. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-emplace.rst b/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-emplace.rst --- a/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-emplace.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-emplace.rst @@ -8,3 +8,7 @@ The `hicpp-use-emplace` check is an alias, please see `modernize-use-emplace `_ for more information. It enforces the `rule 17.4.2 `_. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-equals-default.rst b/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-equals-default.rst --- a/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-equals-default.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-equals-default.rst @@ -7,3 +7,7 @@ This check is an alias for `modernize-use-equals-default `_. Implements `rule 12.5.1 `_ to explicitly default special member functions. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-equals-delete.rst b/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-equals-delete.rst --- a/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-equals-delete.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-equals-delete.rst @@ -8,3 +8,7 @@ This check is an alias for `modernize-use-equals-delete `_. Implements `rule 12.5.1 `_ to explicitly default or delete special member functions. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-noexcept.rst b/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-noexcept.rst --- a/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-noexcept.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-noexcept.rst @@ -8,3 +8,7 @@ The `hicpp-use-noexcept` check is an alias, please see `modernize-use-noexcept `_ for more information. It enforces the `rule 1.3.5 `_. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-nullptr.rst b/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-nullptr.rst --- a/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-nullptr.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-nullptr.rst @@ -8,3 +8,7 @@ The `hicpp-use-nullptr` check is an alias, please see `modernize-use-nullptr `_ for more information. It enforces the `rule 2.5.3 `_. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-override.rst b/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-override.rst --- a/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-override.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/hicpp-use-override.rst @@ -8,3 +8,7 @@ This check is an alias for `modernize-use-override `_. Implements `rule 10.2.1 `_ to declare a virtual function `override` when overriding. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/llvm-include-order.rst b/clang-tools-extra/docs/clang-tidy/checks/llvm-include-order.rst --- a/clang-tools-extra/docs/clang-tidy/checks/llvm-include-order.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/llvm-include-order.rst @@ -7,3 +7,7 @@ Checks the correct order of ``#includes``. See https://llvm.org/docs/CodingStandards.html#include-style + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/llvm-prefer-isa-or-dyn-cast-in-conditionals.rst b/clang-tools-extra/docs/clang-tidy/checks/llvm-prefer-isa-or-dyn-cast-in-conditionals.rst --- a/clang-tools-extra/docs/clang-tidy/checks/llvm-prefer-isa-or-dyn-cast-in-conditionals.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/llvm-prefer-isa-or-dyn-cast-in-conditionals.rst @@ -32,3 +32,7 @@ if (auto f = cast(y)->foo()) {} if (cast(y)->foo()) {} if (X.cast(y)) {} + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/llvm-prefer-register-over-unsigned.rst b/clang-tools-extra/docs/clang-tidy/checks/llvm-prefer-register-over-unsigned.rst --- a/clang-tools-extra/docs/clang-tidy/checks/llvm-prefer-register-over-unsigned.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/llvm-prefer-register-over-unsigned.rst @@ -25,3 +25,7 @@ ... } + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/llvm-qualified-auto.rst b/clang-tools-extra/docs/clang-tidy/checks/llvm-qualified-auto.rst --- a/clang-tools-extra/docs/clang-tidy/checks/llvm-qualified-auto.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/llvm-qualified-auto.rst @@ -8,3 +8,7 @@ The llvm-qualified-auto check is an alias, please see `readability-qualified-auto `_ for more information. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/llvm-twine-local.rst b/clang-tools-extra/docs/clang-tidy/checks/llvm-twine-local.rst --- a/clang-tools-extra/docs/clang-tidy/checks/llvm-twine-local.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/llvm-twine-local.rst @@ -14,3 +14,7 @@ // becomes static std::string Moo = (Twine("bark") + "bah").str(); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/llvmlibc-restrict-system-libc-headers.rst b/clang-tools-extra/docs/clang-tidy/checks/llvmlibc-restrict-system-libc-headers.rst --- a/clang-tools-extra/docs/clang-tidy/checks/llvmlibc-restrict-system-libc-headers.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/llvmlibc-restrict-system-libc-headers.rst @@ -33,3 +33,7 @@ headers. See :doc:`portability-restrict-system-includes ` for more details. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-definitions-in-headers.rst b/clang-tools-extra/docs/clang-tidy/checks/misc-definitions-in-headers.rst --- a/clang-tools-extra/docs/clang-tidy/checks/misc-definitions-in-headers.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/misc-definitions-in-headers.rst @@ -102,3 +102,7 @@ When non-zero, the check will use the file extension to distinguish header files. Default is `1`. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-redundant-expression.rst b/clang-tools-extra/docs/clang-tidy/checks/misc-redundant-expression.rst --- a/clang-tools-extra/docs/clang-tidy/checks/misc-redundant-expression.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/misc-redundant-expression.rst @@ -23,3 +23,7 @@ (p->x == p->x) // always true (p->x < p->x) // always false (speed - speed + 1 == 12) // speed - speed is always zero + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-static-assert.rst b/clang-tools-extra/docs/clang-tidy/checks/misc-static-assert.rst --- a/clang-tools-extra/docs/clang-tidy/checks/misc-static-assert.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/misc-static-assert.rst @@ -10,3 +10,7 @@ The condition of ``static_assert()`` is evaluated at compile time which is safer and more efficient. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-uniqueptr-reset-release.rst b/clang-tools-extra/docs/clang-tidy/checks/misc-uniqueptr-reset-release.rst --- a/clang-tools-extra/docs/clang-tidy/checks/misc-uniqueptr-reset-release.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/misc-uniqueptr-reset-release.rst @@ -14,3 +14,7 @@ If ``y`` is already rvalue, ``std::move()`` is not added. ``x`` and ``y`` can also be ``std::unique_ptr*``. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-unused-alias-decls.rst b/clang-tools-extra/docs/clang-tidy/checks/misc-unused-alias-decls.rst --- a/clang-tools-extra/docs/clang-tidy/checks/misc-unused-alias-decls.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/misc-unused-alias-decls.rst @@ -5,3 +5,7 @@ Finds unused namespace alias declarations. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-unused-parameters.rst b/clang-tools-extra/docs/clang-tidy/checks/misc-unused-parameters.rst --- a/clang-tools-extra/docs/clang-tidy/checks/misc-unused-parameters.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/misc-unused-parameters.rst @@ -40,3 +40,7 @@ constructors - no constructor initializers). When the function body is empty, an unused parameter is unlikely to be unnoticed by a human reader, and there's basically no place for a bug to hide. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-unused-using-decls.rst b/clang-tools-extra/docs/clang-tidy/checks/misc-unused-using-decls.rst --- a/clang-tools-extra/docs/clang-tidy/checks/misc-unused-using-decls.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/misc-unused-using-decls.rst @@ -11,3 +11,7 @@ namespace n { class C; } using n::C; // Never actually used. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-avoid-bind.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-avoid-bind.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-avoid-bind.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-avoid-bind.rst @@ -86,3 +86,7 @@ which is correct. This check requires using C++14 or higher to run. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-concat-nested-namespaces.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-concat-nested-namespaces.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-concat-nested-namespaces.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-concat-nested-namespaces.rst @@ -47,3 +47,7 @@ } } + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-deprecated-headers.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-deprecated-headers.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-deprecated-headers.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-deprecated-headers.rst @@ -47,3 +47,7 @@ * `` * `` * `` + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-deprecated-ios-base-aliases.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-deprecated-ios-base-aliases.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-deprecated-ios-base-aliases.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-deprecated-ios-base-aliases.rst @@ -15,3 +15,7 @@ ``std::ios_base::streamoff`` ``std::ios_base::streampos`` =================================== =========================== + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-loop-convert.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-loop-convert.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-loop-convert.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-loop-convert.rst @@ -265,3 +265,7 @@ To prevent this check to be applied (and to break) OpenMP for loops but still be applied to non-OpenMP for loops the usage of ``NOLINT`` (see :ref:`clang-tidy-nolint`) on the specific for loops is recommended. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-make-shared.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-make-shared.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-make-shared.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-make-shared.rst @@ -48,3 +48,7 @@ If set to non-zero, the check will not give warnings inside macros. Default is `1`. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-make-unique.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-make-unique.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-make-unique.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-make-unique.rst @@ -48,3 +48,7 @@ If set to non-zero, the check will not give warnings inside macros. Default is `1`. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-pass-by-value.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-pass-by-value.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-pass-by-value.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-pass-by-value.rst @@ -164,3 +164,7 @@ When non-zero, the check only warns about copied parameters that are already passed by value. Default is `0`. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-raw-string-literal.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-raw-string-literal.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-raw-string-literal.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-raw-string-literal.rst @@ -44,3 +44,7 @@ An escaped horizontal tab, form feed, or vertical tab prevents the string literal from being converted. The presence of a horizontal tab, form feed or vertical tab in source code is not visually obvious. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-redundant-void-arg.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-redundant-void-arg.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-redundant-void-arg.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-redundant-void-arg.rst @@ -16,3 +16,7 @@ ``C::C(void) {}`` ``C::C() {}`` ``C::~C(void) {}`` ``C::~C() {}`` =================================== =========================== + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-replace-auto-ptr.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-replace-auto-ptr.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-replace-auto-ptr.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-replace-auto-ptr.rst @@ -77,3 +77,7 @@ A string specifying which include-style is used, `llvm` or `google`. Default is `llvm`. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-replace-random-shuffle.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-replace-random-shuffle.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-replace-random-shuffle.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-replace-random-shuffle.rst @@ -39,3 +39,7 @@ std::seed_seq seq(std::begin(seeds), std::end(seeds)); return std::mt19937(seq); }()); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-return-braced-init-list.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-return-braced-init-list.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-return-braced-init-list.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-return-braced-init-list.rst @@ -20,3 +20,7 @@ Baz baz; return {baz}; } + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-shrink-to-fit.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-shrink-to-fit.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-shrink-to-fit.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-shrink-to-fit.rst @@ -10,3 +10,7 @@ The ``shrink_to_fit()`` method is more readable and more effective than the copy and swap trick to reduce the capacity of a shrinkable container. Note that, the ``shrink_to_fit()`` method is only available in C++11 and up. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-unary-static-assert.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-unary-static-assert.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-unary-static-assert.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-unary-static-assert.rst @@ -23,3 +23,7 @@ void f_textless(int a) { static_assert(sizeof(a) <= 10); } + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-auto.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-auto.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-auto.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-auto.rst @@ -231,3 +231,7 @@ // RemoveStars = 1 auto my_first_pointer = new TypeName, my_second_pointer = new TypeName; + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-bool-literals.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-bool-literals.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-bool-literals.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-bool-literals.rst @@ -26,3 +26,7 @@ If set to non-zero, the check will not give warnings inside macros. Default is `1`. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-default-member-init.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-default-member-init.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-default-member-init.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-default-member-init.rst @@ -52,3 +52,7 @@ If this option is set to non-zero (default is `1`), the check will not warn about members declared inside macros. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-emplace.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-emplace.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-emplace.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-emplace.rst @@ -145,3 +145,7 @@ when :option:`TupleTypes` is set to ``MyTuple`` and :option:`TupleMakeFunctions` is set to ``MakeMyTuple``. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-equals-default.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-equals-default.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-equals-default.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-equals-default.rst @@ -34,3 +34,7 @@ If set to non-zero, the check will not give warnings inside macros. Default is `1`. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-equals-delete.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-equals-delete.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-equals-delete.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-equals-delete.rst @@ -28,3 +28,7 @@ If this option is set to non-zero (default is `1`), the check will not warn about functions declared inside macros. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-nodiscard.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-nodiscard.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-nodiscard.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-nodiscard.rst @@ -80,3 +80,7 @@ For alternative ``__attribute__`` syntax options to mark functions as ``[[nodiscard]]`` in non-c++17 source code. See https://clang.llvm.org/docs/AttributeReference.html#nodiscard-warn-unused-result + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-noexcept.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-noexcept.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-noexcept.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-noexcept.rst @@ -88,3 +88,7 @@ } if the :option:`UseNoexceptFalse` option is set to `0`. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-nullptr.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-nullptr.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-nullptr.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-nullptr.rst @@ -65,3 +65,7 @@ } if the :option:`NullMacros` option is set to ``MY_NULL``. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-override.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-override.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-override.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-override.rst @@ -50,3 +50,7 @@ .. note:: For more information on the use of ``override`` see https://en.cppreference.com/w/cpp/language/override + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-trailing-return-type.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-trailing-return-type.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-trailing-return-type.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-trailing-return-type.rst @@ -66,3 +66,7 @@ This code fails to compile because the Object in the context of f refers to the equally named function parameter. Similarly, the Object in the context of m refers to the equally named class member. The check can currently only detect a clash with a function parameter name. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-transparent-functors.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-transparent-functors.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-transparent-functors.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-transparent-functors.rst @@ -37,3 +37,7 @@ as the original code. The default value for this option is `0`. This check requires using C++14 or higher to run. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-uncaught-exceptions.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-uncaught-exceptions.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-uncaught-exceptions.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-uncaught-exceptions.rst @@ -62,3 +62,7 @@ res = uncaught_exceptions(); } + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-using.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-using.rst --- a/clang-tools-extra/docs/clang-tidy/checks/modernize-use-using.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-use-using.rst @@ -37,3 +37,7 @@ If set to non-zero, the check will not give warnings inside macros. Default is `1`. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/mpi-buffer-deref.rst b/clang-tools-extra/docs/clang-tidy/checks/mpi-buffer-deref.rst --- a/clang-tools-extra/docs/clang-tidy/checks/mpi-buffer-deref.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/mpi-buffer-deref.rst @@ -24,3 +24,7 @@ // A pointer to an array is passed to the MPI function. short *buf[1]; MPI_Send(buf, 1, MPI_SHORT, 0, 0, MPI_COMM_WORLD); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/mpi-type-mismatch.rst b/clang-tools-extra/docs/clang-tidy/checks/mpi-type-mismatch.rst --- a/clang-tools-extra/docs/clang-tidy/checks/mpi-type-mismatch.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/mpi-type-mismatch.rst @@ -19,3 +19,7 @@ // In the following case, the buffer type does not match MPI datatype. int buf; MPI_Send(&buf, 1, MPI_CHAR, 0, 0, MPI_COMM_WORLD); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/objc-nsinvocation-argument-lifetime.rst b/clang-tools-extra/docs/clang-tidy/checks/objc-nsinvocation-argument-lifetime.rst --- a/clang-tools-extra/docs/clang-tidy/checks/objc-nsinvocation-argument-lifetime.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/objc-nsinvocation-argument-lifetime.rst @@ -37,3 +37,7 @@ // "id _returnValue" is declaration of instance variable of class. [invocation getReturnValue:&self->_returnValue]; + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/objc-property-declaration.rst b/clang-tools-extra/docs/clang-tidy/checks/objc-property-declaration.rst --- a/clang-tools-extra/docs/clang-tidy/checks/objc-property-declaration.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/objc-property-declaration.rst @@ -40,3 +40,7 @@ @property(nonatomic, assign) int abc_lowerCamelCase; The corresponding style rule: https://developer.apple.com/library/content/qa/qa1908/_index.html + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/objc-super-self.rst b/clang-tools-extra/docs/clang-tidy/checks/objc-super-self.rst --- a/clang-tools-extra/docs/clang-tidy/checks/objc-super-self.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/objc-super-self.rst @@ -11,3 +11,7 @@ initializer. Failing to call a superclass initializer breaks initializer chaining and can result in invalid object initialization. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/performance-faster-string-find.rst b/clang-tools-extra/docs/clang-tidy/checks/performance-faster-string-find.rst --- a/clang-tools-extra/docs/clang-tidy/checks/performance-faster-string-find.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/performance-faster-string-find.rst @@ -26,3 +26,7 @@ ``std::basic_string`` is considered. The list of methods to consired is fixed. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/performance-for-range-copy.rst b/clang-tools-extra/docs/clang-tidy/checks/performance-for-range-copy.rst --- a/clang-tools-extra/docs/clang-tidy/checks/performance-for-range-copy.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/performance-for-range-copy.rst @@ -32,3 +32,7 @@ iteration. Regular expressions are accepted, e.g. `[Rr]ef(erence)?$` matches every type with suffix `Ref`, `ref`, `Reference` and `reference`. The default is empty. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/performance-inefficient-algorithm.rst b/clang-tools-extra/docs/clang-tidy/checks/performance-inefficient-algorithm.rst --- a/clang-tools-extra/docs/clang-tidy/checks/performance-inefficient-algorithm.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/performance-inefficient-algorithm.rst @@ -27,3 +27,7 @@ // becomes auto c = s.count(43); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/performance-inefficient-vector-operation.rst b/clang-tools-extra/docs/clang-tidy/checks/performance-inefficient-vector-operation.rst --- a/clang-tools-extra/docs/clang-tidy/checks/performance-inefficient-vector-operation.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/performance-inefficient-vector-operation.rst @@ -64,3 +64,7 @@ When non-zero, the check will also warn on inefficient operations for proto repeated fields. Otherwise, the check only warns on inefficient vector operations. Default is `0`. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/performance-move-const-arg.rst b/clang-tools-extra/docs/clang-tidy/checks/performance-move-const-arg.rst --- a/clang-tools-extra/docs/clang-tidy/checks/performance-move-const-arg.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/performance-move-const-arg.rst @@ -35,3 +35,7 @@ If non-zero, enables detection of trivially copyable types that do not have a move constructor. Default is non-zero. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/performance-move-constructor-init.rst b/clang-tools-extra/docs/clang-tidy/checks/performance-move-constructor-init.rst --- a/clang-tools-extra/docs/clang-tidy/checks/performance-move-constructor-init.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/performance-move-constructor-init.rst @@ -16,3 +16,7 @@ A string specifying which include-style is used, `llvm` or `google`. Default is `llvm`. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/performance-noexcept-move-constructor.rst b/clang-tools-extra/docs/clang-tidy/checks/performance-noexcept-move-constructor.rst --- a/clang-tools-extra/docs/clang-tidy/checks/performance-noexcept-move-constructor.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/performance-noexcept-move-constructor.rst @@ -11,3 +11,7 @@ Move constructors of all the types used with STL containers, for example, need to be declared ``noexcept``. Otherwise STL will choose copy constructors instead. The same is valid for move assignment operations. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/performance-trivially-destructible.rst b/clang-tools-extra/docs/clang-tidy/checks/performance-trivially-destructible.rst --- a/clang-tools-extra/docs/clang-tidy/checks/performance-trivially-destructible.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/performance-trivially-destructible.rst @@ -13,3 +13,7 @@ TrivialType trivial_fields; }; A::~A() = default; + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/performance-type-promotion-in-math-fn.rst b/clang-tools-extra/docs/clang-tidy/checks/performance-type-promotion-in-math-fn.rst --- a/clang-tools-extra/docs/clang-tidy/checks/performance-type-promotion-in-math-fn.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/performance-type-promotion-in-math-fn.rst @@ -19,3 +19,7 @@ float a; std::asin(a); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/performance-unnecessary-value-param.rst b/clang-tools-extra/docs/clang-tidy/checks/performance-unnecessary-value-param.rst --- a/clang-tools-extra/docs/clang-tidy/checks/performance-unnecessary-value-param.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/performance-unnecessary-value-param.rst @@ -67,3 +67,7 @@ A semicolon-separated list of names of types allowed to be passed by value. Regular expressions are accepted, e.g. `[Rr]ef(erence)?$` matches every type with suffix `Ref`, `ref`, `Reference` and `reference`. The default is empty. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/portability-restrict-system-includes.rst b/clang-tools-extra/docs/clang-tidy/checks/portability-restrict-system-includes.rst --- a/clang-tools-extra/docs/clang-tidy/checks/portability-restrict-system-includes.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/portability-restrict-system-includes.rst @@ -49,3 +49,7 @@ filenames. Similar to the -checks glob list for running clang-tidy itself, the two wildcard characters are `*` and `-`, to include and exclude globs, respectively. The default is `*`, which allows all includes. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-braces-around-statements.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-braces-around-statements.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-braces-around-statements.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-braces-around-statements.rst @@ -36,3 +36,7 @@ (``do``/``else``) until the last line of the inner statement. Default value `0` means that braces will be added to all statements (not having them already). + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-const-return-type.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-const-return-type.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-const-return-type.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-const-return-type.rst @@ -24,3 +24,7 @@ const int* foo(); const int& foo(); const Clazz* foo(); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-container-size-empty.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-container-size-empty.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-container-size-empty.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-container-size-empty.rst @@ -24,3 +24,7 @@ bool empty() const; `size_type` can be any kind of integer type. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-delete-null-pointer.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-delete-null-pointer.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-delete-null-pointer.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-delete-null-pointer.rst @@ -11,3 +11,7 @@ int *p; if (p) delete p; + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-else-after-return.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-else-after-return.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-else-after-return.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-else-after-return.rst @@ -62,3 +62,7 @@ This check helps to enforce this `LLVM Coding Standards recommendation `_. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-identifier-naming.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-identifier-naming.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-identifier-naming.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-identifier-naming.rst @@ -1932,3 +1932,7 @@ public: virtual int pre_member_function_post(); } + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-implicit-bool-conversion.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-implicit-bool-conversion.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-implicit-bool-conversion.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-implicit-bool-conversion.rst @@ -133,3 +133,7 @@ When non-zero, the check will allow conditional pointer conversions. Default is `0`. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-inconsistent-declaration-parameter-name.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-inconsistent-declaration-parameter-name.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-inconsistent-declaration-parameter-name.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-inconsistent-declaration-parameter-name.rst @@ -61,3 +61,7 @@ If this option is set to non-zero (default is `0`), then names must match exactly (or be absent). + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-isolate-declaration.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-isolate-declaration.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-isolate-declaration.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-isolate-declaration.rst @@ -98,3 +98,7 @@ #endif // Won't be transformed, but a diagnostic is emitted. } + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-make-member-function-const.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-make-member-function-const.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-make-member-function-const.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-make-member-function-const.rst @@ -65,3 +65,7 @@ After applying modifications as suggested by the check, running the check again might find more opportunities to mark member functions ``const``. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-misplaced-array-index.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-misplaced-array-index.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-misplaced-array-index.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-misplaced-array-index.rst @@ -25,3 +25,7 @@ * There are programmers that are not familiar with this unusual syntax. * It is possible that variables are mixed up. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-named-parameter.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-named-parameter.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-named-parameter.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-named-parameter.rst @@ -14,3 +14,7 @@ implementation. Corresponding cpplint.py check name: `readability/function`. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-non-const-parameter.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-non-const-parameter.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-non-const-parameter.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-non-const-parameter.rst @@ -44,3 +44,7 @@ int f3(struct S *p) { *(p->a) = 0; } + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-qualified-auto.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-qualified-auto.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-qualified-auto.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-qualified-auto.rst @@ -82,3 +82,7 @@ const auto &Foo3 = cast(Bar3); Note in the LLVM alias, the default value is `0`. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-access-specifiers.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-access-specifiers.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-access-specifiers.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-access-specifiers.rst @@ -49,3 +49,7 @@ If `CheckFirstDeclaration` option is enabled, a warning about redundant access specifier will be emitted, because ``public`` is the default member access for structs. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-control-flow.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-control-flow.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-control-flow.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-control-flow.rst @@ -48,3 +48,7 @@ for (int i = 0; i < 10; ++i) { } } + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-declaration.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-declaration.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-declaration.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-declaration.rst @@ -35,3 +35,7 @@ If set to non-zero, the check will not give warnings inside macros. Default is `1`. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-function-ptr-dereference.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-function-ptr-dereference.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-function-ptr-dereference.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-function-ptr-dereference.rst @@ -22,3 +22,7 @@ int (*p)(int, int) = &f; int i = (*p)(10, 50); + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-member-init.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-member-init.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-member-init.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-member-init.rst @@ -43,3 +43,7 @@ std::string s; }; + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-smartptr-get.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-smartptr-get.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-smartptr-get.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-smartptr-get.rst @@ -19,3 +19,7 @@ If this option is set to non-zero (default is `1`), the check will not warn about calls inside macros. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-string-init.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-string-init.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-string-init.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-redundant-string-init.rst @@ -30,3 +30,7 @@ By default `::std::basic_string` applies to ``std::string`` and ``std::wstring``. Set to e.g. `::std::basic_string;llvm::StringRef;QString` to perform this check on custom classes. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-simplify-boolean-expr.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-simplify-boolean-expr.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-simplify-boolean-expr.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-simplify-boolean-expr.rst @@ -84,3 +84,7 @@ If non-zero, conditional boolean assignments at the end of an ``if/else if`` chain will be transformed. Default is `0`. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-simplify-subscript-expr.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-simplify-subscript-expr.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-simplify-subscript-expr.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-simplify-subscript-expr.rst @@ -21,3 +21,7 @@ The list of type(s) that triggers this check. Default is `::std::basic_string;::std::basic_string_view;::std::vector;::std::array` + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-static-accessed-through-instance.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-static-accessed-through-instance.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-static-accessed-through-instance.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-static-accessed-through-instance.rst @@ -29,3 +29,7 @@ C::foo(); C::x; + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-static-definition-in-anonymous-namespace.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-static-definition-in-anonymous-namespace.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-static-definition-in-anonymous-namespace.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-static-definition-in-anonymous-namespace.rst @@ -16,3 +16,7 @@ } The check will apply a fix by removing the redundant ``static`` qualifier. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-string-compare.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-string-compare.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-string-compare.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-string-compare.rst @@ -52,3 +52,7 @@ The above code examples shows the list of if-statements that this check will give a warning for. All of them uses ``compare`` to check if equality or inequality of two strings instead of using the correct operators. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-uniqueptr-delete-release.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-uniqueptr-delete-release.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-uniqueptr-delete-release.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-uniqueptr-delete-release.rst @@ -15,3 +15,7 @@ std::unique_ptr P; P = nullptr; + +.. note:: + + This checker provides an automatic fix callable with ``--fix``. diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-uppercase-literal-suffix.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-uppercase-literal-suffix.rst --- a/clang-tools-extra/docs/clang-tidy/checks/readability-uppercase-literal-suffix.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-uppercase-literal-suffix.rst @@ -54,3 +54,7 @@ If this option is set to non-zero (default is `1`), the check will not warn about literal suffixes inside macros. + +.. note:: + + This checker provides an automatic fix callable with ``--fix``.