[PATCH] D78052: add_new_check.py: Update of the template to add an autofix section

Sylvestre Ledru via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 13 13:35:09 PDT 2020


sylvestre.ledru created this revision.
sylvestre.ledru added a reviewer: alexfh.
Herald added a project: clang.

As discussed here: https://reviews.llvm.org/D77983


Repository:
  rG LLVM Github Monorepo

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)})
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78052.257094.patch
Type: text/x-patch
Size: 806 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200413/7dd7d2f5/attachment.bin>


More information about the cfe-commits mailing list