Skip to content

Commit 57ac47d

Browse files
committed
[clangd] Make PopulateSwitch a fix.
It fixes the -Wswitch warning, though we mark it as a fix even if that is off. This makes it the "recommended" action on an incomplete switch, which seems OK. Differential Revision: https://reviews.llvm.org/D88726
1 parent 6481a76 commit 57ac47d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clangd/refactor/tweaks/PopulateSwitch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class PopulateSwitch : public Tweak {
5353
Expected<Effect> apply(const Selection &Sel) override;
5454
std::string title() const override { return "Populate switch"; }
5555
llvm::StringLiteral kind() const override {
56-
return CodeAction::REFACTOR_KIND;
56+
return CodeAction::QUICKFIX_KIND;
5757
}
5858

5959
private:

0 commit comments

Comments
 (0)