[PATCH] D57943: [clangd] **Prototype**: clang-tidy-based tweaks

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 8 03:56:18 PST 2019


hokein created this revision.
Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous, MaskRay, ioeric, ilya-biryukov, mgorny.
Herald added a project: clang.

clang-tidy has already provided some simple refactoring-like checks (e.g. modernize-use-auto,
modernize-use-using), so we can leverage the power of clang-tidy to implement tweaks.

clang-tidy-based tweaks compared to clang-tidy check:

- For refactoring checks, tweaks maybe a better UI compared to showing as diagnostics (we only show on the UI when users do it intendedly)
- faster, we run the check on a single AST node rather than the whole AST


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D57943

Files:
  clangd/refactor/tweaks/CMakeLists.txt
  clangd/refactor/tweaks/ClangTidy.cpp
  unittests/clangd/TweakTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57943.185940.patch
Type: text/x-patch
Size: 6520 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190208/2c1ef505/attachment.bin>


More information about the cfe-commits mailing list