sylvestre.ledru created this revision.
sylvestre.ledru added reviewers: alexfh, aaron.ballman.
Herald added subscribers: Charusso, arphaman, kbarton, nemanjai.
Herald added a project: clang.
Currently, when looking at a checker documentation, we have to go back
to the whole list or look at the sources to figure out if an autofix
is available or not.
Feel free to propose a better wording
Here is the ugly way I used:
LIST=$(grep Yes list.rst|awk '{print $1}'|cut -d\` -f2)
or f in $LIST; do cat /tmp/a.txt >> $f.rst; done
with /tmp/a.txt containing the text
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77983
Files:
clang-tools-extra/docs/clang-tidy/checks/abseil-duration-addition.rst
clang-tools-extra/docs/clang-tidy/checks/abseil-duration-comparison.rst
clang-tools-extra/docs/clang-tidy/checks/abseil-duration-conversion-cast.rst
clang-tools-extra/docs/clang-tidy/checks/abseil-duration-division.rst
clang-tools-extra/docs/clang-tidy/checks/abseil-duration-factory-float.rst
clang-tools-extra/docs/clang-tidy/checks/abseil-duration-factory-scale.rst
clang-tools-extra/docs/clang-tidy/checks/abseil-duration-subtraction.rst
clang-tools-extra/docs/clang-tidy/checks/abseil-duration-unnecessary-conversion.rst
clang-tools-extra/docs/clang-tidy/checks/abseil-faster-strsplit-delimiter.rst
clang-tools-extra/docs/clang-tidy/checks/abseil-redundant-strcat-calls.rst
clang-tools-extra/docs/clang-tidy/checks/abseil-str-cat-append.rst
clang-tools-extra/docs/clang-tidy/checks/abseil-string-find-startswith.rst
clang-tools-extra/docs/clang-tidy/checks/abseil-time-comparison.rst
clang-tools-extra/docs/clang-tidy/checks/abseil-time-subtraction.rst
clang-tools-extra/docs/clang-tidy/checks/abseil-upgrade-duration-conversions.rst
clang-tools-extra/docs/clang-tidy/checks/android-cloexec-accept.rst
clang-tools-extra/docs/clang-tidy/checks/android-cloexec-creat.rst
clang-tools-extra/docs/clang-tidy/checks/android-cloexec-dup.rst
clang-tools-extra/docs/clang-tidy/checks/android-cloexec-pipe.rst
clang-tools-extra/docs/clang-tidy/checks/boost-use-to-string.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-argument-comment.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-bool-pointer-implicit-conversion.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-copy-constructor-init.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-inaccurate-erase.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-macro-parentheses.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-operator-in-strlen-in-alloc.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-pointer-arithmetic-in-alloc.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-move-forwarding-reference.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-not-null-terminated-result.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-parent-virtual-call.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-posix-return.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-reserved-identifier.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-string-constructor.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-string-integer-assignment.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-memset-usage.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-semicolon.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-string-compare.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-swapped-arguments.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-terminating-continue.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-unused-raii.rst
clang-tools-extra/docs/clang-tidy/checks/bugprone-virtual-near-miss.rst
clang-tools-extra/docs/clang-tidy/checks/cert-dcl03-c.rst
clang-tools-extra/docs/clang-tidy/checks/cert-dcl16-c.rst
clang-tools-extra/docs/clang-tidy/checks/cert-dcl37-c.rst
clang-tools-extra/docs/clang-tidy/checks/cert-dcl51-cpp.rst
clang-tools-extra/docs/clang-tidy/checks/cert-oop11-cpp.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-explicit-virtual-functions.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-init-variables.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-bounds-constant-array-index.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-cstyle-cast.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-member-init.rst
clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-static-cast-downcast.rst
clang-tools-extra/docs/clang-tidy/checks/darwin-dispatch-once-nonstatic.rst
clang-tools-extra/docs/clang-tidy/checks/fuchsia-default-arguments-declarations.rst
clang-tools-extra/docs/clang-tidy/checks/google-explicit-constructor.rst
clang-tools-extra/docs/clang-tidy/checks/google-readability-braces-around-statements.rst
clang-tools-extra/docs/clang-tidy/checks/google-upgrade-googletest-case.rst
clang-tools-extra/docs/clang-tidy/checks/hicpp-braces-around-statements.rst
clang-tools-extra/docs/clang-tidy/checks/hicpp-deprecated-headers.rst
clang-tools-extra/docs/clang-tidy/checks/hicpp-explicit-conversions.rst
clang-tools-extra/docs/clang-tidy/checks/hicpp-member-init.rst
clang-tools-extra/docs/clang-tidy/checks/hicpp-move-const-arg.rst
clang-tools-extra/docs/clang-tidy/checks/hicpp-named-parameter.rst
clang-tools-extra/docs/clang-tidy/checks/hicpp-static-assert.rst
clang-tools-extra/docs/clang-tidy/checks/hicpp-uppercase-literal-suffix.rst
clang-tools-extra/docs/clang-tidy/checks/hicpp-use-auto.rst
clang-tools-extra/docs/clang-tidy/checks/hicpp-use-emplace.rst
clang-tools-extra/docs/clang-tidy/checks/hicpp-use-equals-default.rst
clang-tools-extra/docs/clang-tidy/checks/hicpp-use-equals-delete.rst
clang-tools-extra/docs/clang-tidy/checks/hicpp-use-noexcept.rst
clang-tools-extra/docs/clang-tidy/checks/hicpp-use-nullptr.rst
clang-tools-extra/docs/clang-tidy/checks/hicpp-use-override.rst
clang-tools-extra/docs/clang-tidy/checks/llvm-include-order.rst
clang-tools-extra/docs/clang-tidy/checks/llvm-prefer-isa-or-dyn-cast-in-conditionals.rst
clang-tools-extra/docs/clang-tidy/checks/llvm-prefer-register-over-unsigned.rst
clang-tools-extra/docs/clang-tidy/checks/llvm-qualified-auto.rst
clang-tools-extra/docs/clang-tidy/checks/llvm-twine-local.rst
clang-tools-extra/docs/clang-tidy/checks/llvmlibc-restrict-system-libc-headers.rst
clang-tools-extra/docs/clang-tidy/checks/misc-definitions-in-headers.rst
clang-tools-extra/docs/clang-tidy/checks/misc-redundant-expression.rst
clang-tools-extra/docs/clang-tidy/checks/misc-static-assert.rst
clang-tools-extra/docs/clang-tidy/checks/misc-uniqueptr-reset-release.rst
clang-tools-extra/docs/clang-tidy/checks/misc-unused-alias-decls.rst
clang-tools-extra/docs/clang-tidy/checks/misc-unused-parameters.rst
clang-tools-extra/docs/clang-tidy/checks/misc-unused-using-decls.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-avoid-bind.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-concat-nested-namespaces.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-deprecated-headers.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-deprecated-ios-base-aliases.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-loop-convert.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-make-shared.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-make-unique.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-pass-by-value.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-raw-string-literal.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-redundant-void-arg.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-replace-auto-ptr.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-replace-random-shuffle.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-return-braced-init-list.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-shrink-to-fit.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-unary-static-assert.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-use-auto.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-use-bool-literals.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-use-default-member-init.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-use-emplace.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-use-equals-default.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-use-equals-delete.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-use-nodiscard.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-use-noexcept.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-use-nullptr.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-use-override.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-use-trailing-return-type.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-use-transparent-functors.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-use-uncaught-exceptions.rst
clang-tools-extra/docs/clang-tidy/checks/modernize-use-using.rst
clang-tools-extra/docs/clang-tidy/checks/mpi-buffer-deref.rst
clang-tools-extra/docs/clang-tidy/checks/mpi-type-mismatch.rst
clang-tools-extra/docs/clang-tidy/checks/objc-nsinvocation-argument-lifetime.rst
clang-tools-extra/docs/clang-tidy/checks/objc-property-declaration.rst
clang-tools-extra/docs/clang-tidy/checks/objc-super-self.rst
clang-tools-extra/docs/clang-tidy/checks/performance-faster-string-find.rst
clang-tools-extra/docs/clang-tidy/checks/performance-for-range-copy.rst
clang-tools-extra/docs/clang-tidy/checks/performance-inefficient-algorithm.rst
clang-tools-extra/docs/clang-tidy/checks/performance-inefficient-vector-operation.rst
clang-tools-extra/docs/clang-tidy/checks/performance-move-const-arg.rst
clang-tools-extra/docs/clang-tidy/checks/performance-move-constructor-init.rst
clang-tools-extra/docs/clang-tidy/checks/performance-noexcept-move-constructor.rst
clang-tools-extra/docs/clang-tidy/checks/performance-trivially-destructible.rst
clang-tools-extra/docs/clang-tidy/checks/performance-type-promotion-in-math-fn.rst
clang-tools-extra/docs/clang-tidy/checks/performance-unnecessary-value-param.rst
clang-tools-extra/docs/clang-tidy/checks/portability-restrict-system-includes.rst
clang-tools-extra/docs/clang-tidy/checks/readability-braces-around-statements.rst
clang-tools-extra/docs/clang-tidy/checks/readability-const-return-type.rst
clang-tools-extra/docs/clang-tidy/checks/readability-container-size-empty.rst
clang-tools-extra/docs/clang-tidy/checks/readability-delete-null-pointer.rst
clang-tools-extra/docs/clang-tidy/checks/readability-else-after-return.rst
clang-tools-extra/docs/clang-tidy/checks/readability-identifier-naming.rst
clang-tools-extra/docs/clang-tidy/checks/readability-implicit-bool-conversion.rst
clang-tools-extra/docs/clang-tidy/checks/readability-inconsistent-declaration-parameter-name.rst
clang-tools-extra/docs/clang-tidy/checks/readability-isolate-declaration.rst
clang-tools-extra/docs/clang-tidy/checks/readability-make-member-function-const.rst
clang-tools-extra/docs/clang-tidy/checks/readability-misplaced-array-index.rst
clang-tools-extra/docs/clang-tidy/checks/readability-named-parameter.rst
clang-tools-extra/docs/clang-tidy/checks/readability-non-const-parameter.rst
clang-tools-extra/docs/clang-tidy/checks/readability-qualified-auto.rst
clang-tools-extra/docs/clang-tidy/checks/readability-redundant-access-specifiers.rst
clang-tools-extra/docs/clang-tidy/checks/readability-redundant-control-flow.rst
clang-tools-extra/docs/clang-tidy/checks/readability-redundant-declaration.rst
clang-tools-extra/docs/clang-tidy/checks/readability-redundant-function-ptr-dereference.rst
clang-tools-extra/docs/clang-tidy/checks/readability-redundant-member-init.rst
clang-tools-extra/docs/clang-tidy/checks/readability-redundant-smartptr-get.rst
clang-tools-extra/docs/clang-tidy/checks/readability-redundant-string-init.rst
clang-tools-extra/docs/clang-tidy/checks/readability-simplify-boolean-expr.rst
clang-tools-extra/docs/clang-tidy/checks/readability-simplify-subscript-expr.rst
clang-tools-extra/docs/clang-tidy/checks/readability-static-accessed-through-instance.rst
clang-tools-extra/docs/clang-tidy/checks/readability-static-definition-in-anonymous-namespace.rst
clang-tools-extra/docs/clang-tidy/checks/readability-string-compare.rst
clang-tools-extra/docs/clang-tidy/checks/readability-uniqueptr-delete-release.rst
clang-tools-extra/docs/clang-tidy/checks/readability-uppercase-literal-suffix.rst
Index: clang-tools-extra/docs/clang-tidy/checks/readability-uppercase-literal-suffix.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-uppercase-literal-suffix.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-uniqueptr-delete-release.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-uniqueptr-delete-release.rst
+++ clang-tools-extra/docs/clang-tidy/checks/readability-uniqueptr-delete-release.rst
@@ -15,3 +15,7 @@
std::unique_ptr<int> P;
P = nullptr;
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-string-compare.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-string-compare.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-static-definition-in-anonymous-namespace.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-static-definition-in-anonymous-namespace.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-static-accessed-through-instance.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-static-accessed-through-instance.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-simplify-subscript-expr.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-simplify-subscript-expr.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-simplify-boolean-expr.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-simplify-boolean-expr.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-redundant-string-init.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-redundant-string-init.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-redundant-smartptr-get.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-redundant-smartptr-get.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-redundant-member-init.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-redundant-member-init.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-redundant-function-ptr-dereference.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-redundant-function-ptr-dereference.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-redundant-declaration.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-redundant-declaration.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-redundant-control-flow.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-redundant-control-flow.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-redundant-access-specifiers.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-redundant-access-specifiers.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-qualified-auto.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-qualified-auto.rst
+++ clang-tools-extra/docs/clang-tidy/checks/readability-qualified-auto.rst
@@ -82,3 +82,7 @@
const auto &Foo3 = cast<const int &>(Bar3);
Note in the LLVM alias, the default value is `0`.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-non-const-parameter.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-non-const-parameter.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-named-parameter.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-named-parameter.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-misplaced-array-index.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-misplaced-array-index.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-make-member-function-const.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-make-member-function-const.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-isolate-declaration.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-isolate-declaration.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-inconsistent-declaration-parameter-name.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-inconsistent-declaration-parameter-name.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-implicit-bool-conversion.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-implicit-bool-conversion.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-identifier-naming.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-identifier-naming.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-else-after-return.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-else-after-return.rst
+++ 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
<https://llvm.org/docs/CodingStandards.html#don-t-use-else-after-a-return>`_.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-delete-null-pointer.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-delete-null-pointer.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-container-size-empty.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-container-size-empty.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-const-return-type.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-const-return-type.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/readability-braces-around-statements.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/readability-braces-around-statements.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/portability-restrict-system-includes.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/portability-restrict-system-includes.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/performance-unnecessary-value-param.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/performance-unnecessary-value-param.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/performance-type-promotion-in-math-fn.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/performance-type-promotion-in-math-fn.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/performance-trivially-destructible.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/performance-trivially-destructible.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/performance-noexcept-move-constructor.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/performance-noexcept-move-constructor.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/performance-move-constructor-init.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/performance-move-constructor-init.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/performance-move-const-arg.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/performance-move-const-arg.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/performance-inefficient-vector-operation.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/performance-inefficient-vector-operation.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/performance-inefficient-algorithm.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/performance-inefficient-algorithm.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/performance-for-range-copy.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/performance-for-range-copy.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/performance-faster-string-find.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/performance-faster-string-find.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/objc-super-self.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/objc-super-self.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/objc-property-declaration.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/objc-property-declaration.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/objc-nsinvocation-argument-lifetime.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/objc-nsinvocation-argument-lifetime.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/mpi-type-mismatch.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/mpi-type-mismatch.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/mpi-buffer-deref.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/mpi-buffer-deref.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-use-using.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-use-using.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-use-uncaught-exceptions.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-use-uncaught-exceptions.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-use-transparent-functors.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-use-transparent-functors.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-use-trailing-return-type.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-use-trailing-return-type.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-use-override.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-use-override.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-use-nullptr.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-use-nullptr.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-use-noexcept.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-use-noexcept.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-use-nodiscard.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-use-nodiscard.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-use-equals-delete.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-use-equals-delete.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-use-equals-default.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-use-equals-default.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-use-emplace.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-use-emplace.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-use-default-member-init.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-use-default-member-init.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-use-bool-literals.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-use-bool-literals.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-use-auto.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-use-auto.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-unary-static-assert.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-unary-static-assert.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-shrink-to-fit.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-shrink-to-fit.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-return-braced-init-list.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-return-braced-init-list.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-replace-random-shuffle.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-replace-random-shuffle.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-replace-auto-ptr.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-replace-auto-ptr.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-redundant-void-arg.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-redundant-void-arg.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-raw-string-literal.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-raw-string-literal.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-pass-by-value.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-pass-by-value.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-make-unique.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-make-unique.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-make-shared.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-make-shared.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-loop-convert.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-loop-convert.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-deprecated-ios-base-aliases.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-deprecated-ios-base-aliases.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-deprecated-headers.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-deprecated-headers.rst
+++ clang-tools-extra/docs/clang-tidy/checks/modernize-deprecated-headers.rst
@@ -47,3 +47,7 @@
* `<iso646.h>`
* `<stdalign.h>`
* `<stdbool.h>`
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-concat-nested-namespaces.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-concat-nested-namespaces.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/modernize-avoid-bind.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/modernize-avoid-bind.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/misc-unused-using-decls.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/misc-unused-using-decls.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/misc-unused-parameters.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/misc-unused-parameters.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/misc-unused-alias-decls.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/misc-unused-alias-decls.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/misc-uniqueptr-reset-release.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/misc-uniqueptr-reset-release.rst
+++ 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<Foo>*``.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/misc-static-assert.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/misc-static-assert.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/misc-redundant-expression.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/misc-redundant-expression.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/misc-definitions-in-headers.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/misc-definitions-in-headers.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/llvmlibc-restrict-system-libc-headers.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/llvmlibc-restrict-system-libc-headers.rst
+++ clang-tools-extra/docs/clang-tidy/checks/llvmlibc-restrict-system-libc-headers.rst
@@ -33,3 +33,7 @@
headers. See :doc:`portability-restrict-system-includes
<portability-restrict-system-includes>` for more
details.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/llvm-twine-local.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/llvm-twine-local.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/llvm-qualified-auto.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/llvm-qualified-auto.rst
+++ 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 <readability-qualified-auto.html>`_
for more information.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/llvm-prefer-register-over-unsigned.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/llvm-prefer-register-over-unsigned.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/llvm-prefer-isa-or-dyn-cast-in-conditionals.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/llvm-prefer-isa-or-dyn-cast-in-conditionals.rst
+++ clang-tools-extra/docs/clang-tidy/checks/llvm-prefer-isa-or-dyn-cast-in-conditionals.rst
@@ -32,3 +32,7 @@
if (auto f = cast<Z>(y)->foo()) {}
if (cast<Z>(y)->foo()) {}
if (X.cast(y)) {}
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/llvm-include-order.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/llvm-include-order.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/hicpp-use-override.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/hicpp-use-override.rst
+++ clang-tools-extra/docs/clang-tidy/checks/hicpp-use-override.rst
@@ -8,3 +8,7 @@
This check is an alias for `modernize-use-override <modernize-use-override.html>`_.
Implements `rule 10.2.1 <http://www.codingstandard.com/section/10-2-virtual-functions/>`_ to
declare a virtual function `override` when overriding.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/hicpp-use-nullptr.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/hicpp-use-nullptr.rst
+++ 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 <modernize-use-nullptr.html>`_ for more information.
It enforces the `rule 2.5.3 <http://www.codingstandard.com/rule/2-5-3-use-nullptr-for-the-null-pointer-constant/>`_.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/hicpp-use-noexcept.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/hicpp-use-noexcept.rst
+++ 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 <modernize-use-noexcept.html>`_ for more information.
It enforces the `rule 1.3.5 <http://www.codingstandard.com/rule/1-3-5-do-not-use-throw-exception-specifications/>`_.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/hicpp-use-equals-delete.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/hicpp-use-equals-delete.rst
+++ 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 <modernize-use-equals-delete.html>`_.
Implements `rule 12.5.1 <http://www.codingstandard.com/rule/12-5-1-define-explicitly-default-or-delete-implicit-special-member-functions-of-concrete-classes/>`_
to explicitly default or delete special member functions.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/hicpp-use-equals-default.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/hicpp-use-equals-default.rst
+++ 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 <modernize-use-equals-default.html>`_.
Implements `rule 12.5.1 <http://www.codingstandard.com/rule/12-5-1-define-explicitly-default-or-delete-implicit-special-member-functions-of-concrete-classes/>`_ to explicitly default special member functions.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/hicpp-use-emplace.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/hicpp-use-emplace.rst
+++ 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 <modernize-use-emplace.html>`_ for more information.
It enforces the `rule 17.4.2 <http://www.codingstandard.com/rule/17-4-2-use-api-calls-that-construct-objects-in-place/>`_.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/hicpp-use-auto.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/hicpp-use-auto.rst
+++ 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 <modernize-use-auto.html>`_ for more information.
It enforces the `rule 7.1.8 <http://www.codingstandard.com/rule/7-1-8-use-auto-id-expr-when-declaring-a-variable-to-have-the-same-type-as-its-initializer-function-call/>`_.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/hicpp-uppercase-literal-suffix.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/hicpp-uppercase-literal-suffix.rst
+++ 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 <readability-uppercase-literal-suffix.html>`_ for more information.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/hicpp-static-assert.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/hicpp-static-assert.rst
+++ 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 <misc-static-assert.html>`_ for more information.
It enforces the `rule 7.1.10 <http://www.codingstandard.com/rule/6-1-1-enclose-the-body-of-a-selection-or-an-iteration-statement-in-a-compound-statement/>`_.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/hicpp-named-parameter.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/hicpp-named-parameter.rst
+++ clang-tools-extra/docs/clang-tidy/checks/hicpp-named-parameter.rst
@@ -8,3 +8,7 @@
This check is an alias for `readability-named-parameter <readability-named-parameter.html>`_.
Implements `rule 8.2.1 <http://www.codingstandard.com/rule/8-2-1-make-parameter-names-absent-or-identical-in-all-declarations/>`_.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/hicpp-move-const-arg.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/hicpp-move-const-arg.rst
+++ 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 <performance-move-const-arg.html>`_ for more information.
It enforces the `rule 17.3.1 <http://www.codingstandard.com/rule/17-3-1-do-not-use-stdmove-on-objects-declared-with-const-or-const-type/>`_.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/hicpp-member-init.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/hicpp-member-init.rst
+++ clang-tools-extra/docs/clang-tidy/checks/hicpp-member-init.rst
@@ -9,3 +9,7 @@
Implements the check for
`rule 12.4.2 <http://www.codingstandard.com/rule/12-4-2-ensure-that-a-constructor-initializes-explicitly-all-base-classes-and-non-static-data-members/>`_
to initialize class members in the right order.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/hicpp-explicit-conversions.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/hicpp-explicit-conversions.rst
+++ clang-tools-extra/docs/clang-tidy/checks/hicpp-explicit-conversions.rst
@@ -15,3 +15,7 @@
- `cppcoreguidelines-pro-type-reinterpret-cast <cppcoreguidelines-pro-type-reinterpret-cast.html>`_
- `cppcoreguidelines-pro-type-const-cast <cppcoreguidelines-pro-type-const-cast.html>`_
- `cppcoreguidelines-pro-type-cstyle-cast <cppcoreguidelines-pro-type-cstyle-cast.html>`_
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/hicpp-deprecated-headers.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/hicpp-deprecated-headers.rst
+++ clang-tools-extra/docs/clang-tidy/checks/hicpp-deprecated-headers.rst
@@ -9,3 +9,7 @@
`modernize-deprecated-headers <modernize-deprecated-headers.html>`_
for more information.
It enforces the `rule 1.3.3 <http://www.codingstandard.com/rule/1-3-3-do-not-use-the-c-standard-library-h-headers/>`_.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/hicpp-braces-around-statements.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/hicpp-braces-around-statements.rst
+++ clang-tools-extra/docs/clang-tidy/checks/hicpp-braces-around-statements.rst
@@ -9,3 +9,7 @@
`readability-braces-around-statements <readability-braces-around-statements.html>`_
for more information.
It enforces the `rule 6.1.1 <http://www.codingstandard.com/rule/6-1-1-enclose-the-body-of-a-selection-or-an-iteration-statement-in-a-compound-statement/>`_.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/google-upgrade-googletest-case.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/google-upgrade-googletest-case.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/google-readability-braces-around-statements.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/google-readability-braces-around-statements.rst
+++ 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 <readability-braces-around-statements.html>`_
for more information.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/google-explicit-constructor.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/google-explicit-constructor.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/fuchsia-default-arguments-declarations.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/fuchsia-default-arguments-declarations.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/darwin-dispatch-once-nonstatic.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/darwin-dispatch-once-nonstatic.rst
+++ 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 <https://developer.apple.com/documentation/dispatch/1447169-dispatch_once>`_
for more information.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-static-cast-downcast.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-static-cast-downcast.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-member-init.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-member-init.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-cstyle-cast.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-type-cstyle-cast.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-bounds-constant-array-index.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-pro-bounds-constant-array-index.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-init-variables.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-init-variables.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-explicit-virtual-functions.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-explicit-virtual-functions.rst
+++ 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 <modernize-use-override.html>`_
for more information.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/cert-oop11-cpp.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/cert-oop11-cpp.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/cert-dcl51-cpp.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/cert-dcl51-cpp.rst
+++ 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 <bugprone-reserved-identifier.html>`_ for more
information.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/cert-dcl37-c.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/cert-dcl37-c.rst
+++ 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 <bugprone-reserved-identifier.html>`_ for more
information.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/cert-dcl16-c.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/cert-dcl16-c.rst
+++ 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 <readability-uppercase-literal-suffix.html>`_ for more information.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/cert-dcl03-c.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/cert-dcl03-c.rst
+++ 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 <misc-static-assert.html>`_ for more information.
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-virtual-near-miss.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-virtual-near-miss.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-unused-raii.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-unused-raii.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-terminating-continue.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-terminating-continue.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-swapped-arguments.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-swapped-arguments.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-string-compare.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-string-compare.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-semicolon.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-semicolon.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-memset-usage.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-suspicious-memset-usage.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-string-integer-assignment.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-string-integer-assignment.rst
+++ clang-tools-extra/docs/clang-tidy/checks/bugprone-string-integer-assignment.rst
@@ -35,3 +35,7 @@
std::string s;
s = static_cast<char>(6);
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-string-constructor.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-string-constructor.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-reserved-identifier.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-reserved-identifier.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-posix-return.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-posix-return.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-parent-virtual-call.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-parent-virtual-call.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-not-null-terminated-result.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-not-null-terminated-result.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-move-forwarding-reference.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-move-forwarding-reference.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-pointer-arithmetic-in-alloc.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-pointer-arithmetic-in-alloc.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-operator-in-strlen-in-alloc.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-operator-in-strlen-in-alloc.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-macro-parentheses.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-macro-parentheses.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-inaccurate-erase.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-inaccurate-erase.rst
+++ clang-tools-extra/docs/clang-tidy/checks/bugprone-inaccurate-erase.rst
@@ -27,3 +27,7 @@
std::vector<int> xs;
...
xs.erase(std::remove(xs.begin(), xs.end(), 10), xs.end());
+
+.. note::
+
+ This checker provides an automatic fix callable with ``--fix``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-copy-constructor-init.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-copy-constructor-init.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-bool-pointer-implicit-conversion.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-bool-pointer-implicit-conversion.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone-argument-comment.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone-argument-comment.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/boost-use-to-string.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/boost-use-to-string.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/android-cloexec-pipe.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/android-cloexec-pipe.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/android-cloexec-dup.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/android-cloexec-dup.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/android-cloexec-creat.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/android-cloexec-creat.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/android-cloexec-accept.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/android-cloexec-accept.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/abseil-upgrade-duration-conversions.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/abseil-upgrade-duration-conversions.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/abseil-time-subtraction.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/abseil-time-subtraction.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/abseil-time-comparison.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/abseil-time-comparison.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/abseil-string-find-startswith.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/abseil-string-find-startswith.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/abseil-str-cat-append.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/abseil-str-cat-append.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/abseil-redundant-strcat-calls.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/abseil-redundant-strcat-calls.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/abseil-faster-strsplit-delimiter.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/abseil-faster-strsplit-delimiter.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/abseil-duration-unnecessary-conversion.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/abseil-duration-unnecessary-conversion.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/abseil-duration-subtraction.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/abseil-duration-subtraction.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/abseil-duration-factory-scale.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/abseil-duration-factory-scale.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/abseil-duration-factory-float.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/abseil-duration-factory-float.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/abseil-duration-division.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/abseil-duration-division.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/abseil-duration-conversion-cast.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/abseil-duration-conversion-cast.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/abseil-duration-comparison.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/abseil-duration-comparison.rst
+++ 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``.
Index: clang-tools-extra/docs/clang-tidy/checks/abseil-duration-addition.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/abseil-duration-addition.rst
+++ 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``.
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits