16class ExampleModuleTweak final :
public Tweak {
18 const char *id()
const override {
return "ExampleModuleTweak"; }
19 bool prepare(
const Selection &)
override {
return true; }
20 Expected<Effect> apply(
const Selection &)
override {
21 return Effect::showMessage(
"Example module tweak executed");
23 std::string title()
const override {
return "Execute example module action"; }
24 llvm::StringLiteral kind()
const override {
25 return llvm::StringLiteral(
"quickfix");
32 void contributeTweaks(std::vector<std::unique_ptr<Tweak>> &Out)
override {
33 Out.emplace_back(
new ExampleModuleTweak);
37static FeatureModuleRegistry::Add<ExampleFeatureModule>
38 X(
"example-feature-module",
"Example clangd feature module");
A FeatureModule contributes a vertical feature to clangd.
An interface base for small context-sensitive refactoring actions.
FIXME: Skip testing on windows temporarily due to the different escaping code mode.
static URISchemeRegistry::Add< TestScheme > X(TestScheme::Scheme, "Test schema")