This revision was not accepted when it landed; it landed in state "Needs
Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf97f92e5b0fd: add_new_check.py: Update of the template to
add an autofix section (authored by sylvestre.ledru).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78052/new/
https://reviews.llvm.org/D78052
Files:
clang-tools-extra/clang-tidy/add_new_check.py
Index: clang-tools-extra/clang-tidy/add_new_check.py
===================================================================
--- clang-tools-extra/clang-tidy/add_new_check.py
+++ clang-tools-extra/clang-tidy/add_new_check.py
@@ -391,6 +391,30 @@
%(underline)s
FIXME: Describe what patterns does the check detect and why. Give examples.
+
+FIXME: Remove of the following section:
+
+Automatic Fixes
+^^^^^^^^^^^^^^^
+
+The check doesn't provide an automatic fix.
+
+or
+
+Automatic Fixes
+^^^^^^^^^^^^^^^
+
+The check provides suggested fixes. See the documentation above for the
details.
+
+or
+
+Automatic Fixes
+^^^^^^^^^^^^^^^
+
+The check provides suggested fixes in the following cases:
+1.
+2.
+3.
""" % {'check_name_dashes': check_name_dashes,
'underline': '=' * len(check_name_dashes)})
Index: clang-tools-extra/clang-tidy/add_new_check.py
===================================================================
--- clang-tools-extra/clang-tidy/add_new_check.py
+++ clang-tools-extra/clang-tidy/add_new_check.py
@@ -391,6 +391,30 @@
%(underline)s
FIXME: Describe what patterns does the check detect and why. Give examples.
+
+FIXME: Remove of the following section:
+
+Automatic Fixes
+^^^^^^^^^^^^^^^
+
+The check doesn't provide an automatic fix.
+
+or
+
+Automatic Fixes
+^^^^^^^^^^^^^^^
+
+The check provides suggested fixes. See the documentation above for the details.
+
+or
+
+Automatic Fixes
+^^^^^^^^^^^^^^^
+
+The check provides suggested fixes in the following cases:
+1.
+2.
+3.
""" % {'check_name_dashes': check_name_dashes,
'underline': '=' * len(check_name_dashes)})
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits