[PATCH] D88383: [clangd] Add a tweak for filling in enumerators of a switch statement.
Tadeo Kondrak via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 28 04:08:10 PDT 2020
tdeo updated this revision to Diff 294644.
tdeo added a comment.
- Check body is empty instead of having no case statements.
- Null check the return value from SwitchStmt::getCond.
- Insert replacement before the right bracket instead of the left one, for future improvements.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D88383/new/
https://reviews.llvm.org/D88383
Files:
clang-tools-extra/clangd/refactor/tweaks/CMakeLists.txt
clang-tools-extra/clangd/refactor/tweaks/PopulateSwitch.cpp
clang-tools-extra/clangd/unittests/TweakTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88383.294644.patch
Type: text/x-patch
Size: 7594 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200928/850beaec/attachment.bin>
More information about the cfe-commits
mailing list