diff options
author | Tadeo Kondrak <me@tadeo.ca> | 2020-09-28 13:18:24 +0200 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2020-09-28 13:37:18 +0200 |
commit | 018066d9475dac8d4b7a91bf967ea9231ff4b3f1 (patch) | |
tree | 719fe9655808ea65958ec8687d14622f7e5e684d /lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp | |
parent | 0b44bb8d40af9c634203a778fe34a9a4459d288f (diff) | |
download | llvm-018066d9475dac8d4b7a91bf967ea9231ff4b3f1.zip llvm-018066d9475dac8d4b7a91bf967ea9231ff4b3f1.tar.gz llvm-018066d9475dac8d4b7a91bf967ea9231ff4b3f1.tar.bz2 |
[clangd] Add a tweak for filling in enumerators of a switch statement.
Add a tweak that populates an empty switch statement of an enumeration type with all of the enumerators of that type.
Before:
```
enum Color { RED, GREEN, BLUE };
void f(Color color) {
switch (color) {}
}
```
After:
```
enum Color { RED, GREEN, BLUE };
void f(Color color) {
switch (color) {
case RED:
case GREEN:
case BLUE:
break;
}
}
```
Reviewed By: sammccall
Differential Revision: https://reviews.llvm.org/D88383
Diffstat (limited to 'lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp')
0 files changed, 0 insertions, 0 deletions