diff --git a/clang-tools-extra/clangd/refactor/tweaks/AddUsing.cpp b/clang-tools-extra/clangd/refactor/tweaks/AddUsing.cpp --- a/clang-tools-extra/clangd/refactor/tweaks/AddUsing.cpp +++ b/clang-tools-extra/clangd/refactor/tweaks/AddUsing.cpp @@ -52,7 +52,7 @@ std::string AddUsing::title() const { return std::string(llvm::formatv( - "Add using-declaration for {0} and remove qualifier.", Name)); + "Add using-declaration for {0} and remove qualifier", Name)); } // Locates all "using" statements relevant to SelectionDeclContext. diff --git a/clang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp b/clang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp --- a/clang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp +++ b/clang-tools-extra/clangd/refactor/tweaks/DefineOutline.cpp @@ -360,7 +360,7 @@ return CodeAction::REFACTOR_KIND; } std::string title() const override { - return "Move function body to out-of-line."; + return "Move function body to out-of-line"; } bool prepare(const Selection &Sel) override { diff --git a/clang-tools-extra/clangd/refactor/tweaks/RemoveUsingNamespace.cpp b/clang-tools-extra/clangd/refactor/tweaks/RemoveUsingNamespace.cpp --- a/clang-tools-extra/clangd/refactor/tweaks/RemoveUsingNamespace.cpp +++ b/clang-tools-extra/clangd/refactor/tweaks/RemoveUsingNamespace.cpp @@ -38,7 +38,9 @@ bool prepare(const Selection &Inputs) override; Expected apply(const Selection &Inputs) override; - std::string title() const override; + std::string title() const override { + return "Remove using namespace, re-qualify names instead"; + } llvm::StringLiteral kind() const override { return CodeAction::REFACTOR_KIND; } @@ -200,10 +202,6 @@ return Effect::mainFileEdit(SM, std::move(R)); } -std::string RemoveUsingNamespace::title() const { - return std::string( - llvm::formatv("Remove using namespace, re-qualify names instead.")); -} } // namespace } // namespace clangd } // namespace clang