[PATCH] D51949: [WIP][clang-tidy] initial ideas to isolate variable declarations

Jonas Toth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 17 04:48:22 PDT 2018


JonasToth updated this revision to Diff 165742.
JonasToth added a comment.

- [Feature] initial commit for extract decl experiment
- [Feature] implement the last-element extraction version kinda ok
- [Misc] work further on the experiment
- do a full transformation of the multi decl stmt
- [Misc] add new test case for for init
- ignore some special cases, add c++17 tests
- refactor token finding unified
- make error handling more solid, broke previously working transformations for some reason
- fix bug for 2 decl stmts, more debug output when the transformation bails
- add tests for macros


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D51949

Files:
  clang-tidy/readability/CMakeLists.txt
  clang-tidy/readability/IsolateDeclCheck.cpp
  clang-tidy/readability/IsolateDeclCheck.h
  clang-tidy/readability/ReadabilityTidyModule.cpp
  docs/ReleaseNotes.rst
  docs/clang-tidy/checks/list.rst
  docs/clang-tidy/checks/readability-isolate-decl.rst
  test/clang-tidy/readability-isolate-decl-cxx17.cpp
  test/clang-tidy/readability-isolate-decl.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51949.165742.patch
Type: text/x-patch
Size: 18444 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180917/053fe8f5/attachment-0001.bin>


More information about the cfe-commits mailing list