[PATCH] D36051: [clang-tidy] List the checkers with autofix

Sylvestre Ledru via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 29 14:48:40 PDT 2017


sylvestre.ledru created this revision.
Herald added subscribers: xazax.hun, JDevlieghere.

In the current list http://clang.llvm.org/extra/clang-tidy/checks/list.html
it is hard to know which one has autofix or not. 
This isn't perfect because we will have to list but I haven't found a better way.


https://reviews.llvm.org/D36051

Files:
  docs/clang-tidy/checks/list-fix.rst
  docs/clang-tidy/index.rst


Index: docs/clang-tidy/checks/list-fix.rst
===================================================================
--- docs/clang-tidy/checks/list-fix.rst
+++ docs/clang-tidy/checks/list-fix.rst
@@ -0,0 +1,53 @@
+.. title:: clang-tidy - Clang-Tidy Checks with auto fix
+
+Clang-Tidy Checks with auto fix
+===============================
+
+.. toctree::
+   boost-use-to-string
+   cppcoreguidelines-pro-bounds-constant-array-index
+   cppcoreguidelines-pro-type-cstyle-cast
+   cppcoreguidelines-pro-type-cstyle-cast
+   cppcoreguidelines-pro-type-static-cast-downcast
+   google-build-explicit-make-pair
+   google-readability-todo
+   llvm-header-guard
+   llvm-include-order
+   llvm-namespace-comment
+   llvm-twine-local
+   misc-argument-comment
+   misc-inefficient-algorithm
+   misc-move-forwarding-reference
+   misc-static-assert
+   misc-uniqueptr-reset-release
+   misc-unused-parameters
+   misc-unused-raii
+   misc-virtual-near-miss
+   modernize-avoid-bind
+   modernize-deprecated-headers
+   modernize-loop-convert
+   modernize-make-shared
+   modernize-pass-by-value
+   modernize-raw-string-literal
+   modernize-replace-auto-ptr
+   modernize-return-braced-init-list
+   modernize-shrink-to-fit
+   modernize-use-auto
+   modernize-use-bool-literals
+   modernize-use-emplace
+   modernize-use-equals-default
+   modernize-use-nullptr
+   modernize-use-using
+   performance-faster-string-find
+   performance-type-promotion-in-math-fn
+   readability-container-size-empty
+   readability-else-after-return
+   readability-identifier-naming
+   readability-implicit-bool-cast
+   readability-inconsistent-declaration-parameter-name
+   readability-misplaced-array-index
+   readability-redundant-smartptr-get
+   readability-redundant-string-cstr
+   readability-redundant-string-init
+   readability-simplify-boolean-expr
+   readability-uniqueptr-delete-release
Index: docs/clang-tidy/index.rst
===================================================================
--- docs/clang-tidy/index.rst
+++ docs/clang-tidy/index.rst
@@ -10,6 +10,7 @@
    :maxdepth: 1
 
    The list of clang-tidy checks <checks/list>
+   The list of clang-tidy checks including auto fixes <checks/list-fix>
 
 :program:`clang-tidy` is a clang-based C++ "linter" tool. Its purpose is to
 provide an extensible framework for diagnosing and fixing typical programming


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36051.108807.patch
Type: text/x-patch
Size: 2360 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170729/35ca425c/attachment.bin>


More information about the cfe-commits mailing list