[PATCH] D59932: [clang-tidy] **Prototype**: Add fix descrption to clang-tidy checks.

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 28 07:14:27 PDT 2019


hokein created this revision.
Herald added subscribers: cfe-commits, jdoerfert, xazax.hun.
Herald added a project: clang.

Motivation/Context: in the code review system integrating withclang-tidy,
clang-tidy doesn't provide a human-readable description of the fix. Usually
developers have to preview a code diff (before vs after apply the fix) to
understand what the fix does before applying a fix.

This patch proposes that each clang-tidy check provides a short and
actional fix description that can be shown in the UI, so that users can know
what the fix does without previewing diff.

We introduce a new interface to ClangTidyCheck, we will add implementations for
exisiting checks.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D59932

Files:
  clang-tidy/ClangTidy.cpp
  clang-tidy/ClangTidyCheck.cpp
  clang-tidy/ClangTidyCheck.h
  clang-tidy/ClangTidyDiagnosticConsumer.cpp
  clang-tidy/ClangTidyDiagnosticConsumer.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59932.192627.patch
Type: text/x-patch
Size: 6701 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190328/6a99a12d/attachment-0001.bin>


More information about the cfe-commits mailing list