16class StandaloneTweak final :
public Tweak {
18 const char *id()
const override;
19 bool prepare(
const Selection &)
override {
return true; }
20 Expected<Effect> apply(
const Selection &)
override {
21 return Effect::showMessage(
"Standalone tweak executed");
23 std::string title()
const override {
return "Execute standalone action"; }
24 llvm::StringLiteral kind()
const override {
25 return llvm::StringLiteral(
"quickfix");
#define REGISTER_TWEAK(Subclass)
An interface base for small context-sensitive refactoring actions.
FIXME: Skip testing on windows temporarily due to the different escaping code mode.