SuccessChanges

Summary

  1. [lldb][NFC] Minor cleanup in CxxModuleHandler::tryInstantiateStdTemplate (details)
  2. [clangd] Add a tweak for filling in enumerators of a switch statement. (details)
  3. [gn build] Port 018066d9475 (details)
Commit 0b44bb8d40af9c634203a778fe34a9a4459d288f by Raphael Isemann
[lldb][NFC] Minor cleanup in CxxModuleHandler::tryInstantiateStdTemplate

Using llvm::None and `contains` instead of `find`.
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/CxxModuleHandler.cpp (diff)
Commit 018066d9475dac8d4b7a91bf967ea9231ff4b3f1 by sam.mccall
[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
The file was modifiedclang-tools-extra/clangd/unittests/TweakTests.cpp (diff)
The file was modifiedclang-tools-extra/clangd/refactor/tweaks/CMakeLists.txt (diff)
The file was addedclang-tools-extra/clangd/refactor/tweaks/PopulateSwitch.cpp
Commit 31b3f32104db1293aec74ce865f7891ec8019090 by llvmgnsyncbot
[gn build] Port 018066d9475
The file was modifiedllvm/utils/gn/secondary/clang-tools-extra/clangd/refactor/tweaks/BUILD.gn (diff)