[PATCH] D88434: [clangd] Improve PopulateSwitch tweak to work on non-empty switches

Tadeo Kondrak via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 29 06:41:37 PDT 2020


tdeo updated this revision to Diff 294959.
tdeo added a comment.

- Improve comments
- In apply(), assert on the conditions we established in prepare() instead of proceeding.
- Remove redundant tests and add new ones for value-dependent and GNU range cases.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88434/new/

https://reviews.llvm.org/D88434

Files:
  clang-tools-extra/clangd/refactor/tweaks/PopulateSwitch.cpp
  clang-tools-extra/clangd/unittests/TweakTests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88434.294959.patch
Type: text/x-patch
Size: 8294 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200929/8aeebf75/attachment-0001.bin>


More information about the cfe-commits mailing list