[NFC][clangd] Remove unused lambda capture

Avoid this warning:

llvm/clang-tools-extra/clangd/ClangdServer.cpp:365:23: warning: lambda
capture 'this' is not used [-Wunused-lambda-capture]

  auto Action = [Sel, this](decltype(CB) CB, std::string File,
                    ~~^~~~
1 warning generated.

llvm-svn: 353760
This commit is contained in:
Francis Visoiu Mistrih 2019-02-11 22:36:47 +00:00
parent b2d245771f
commit 1608c12027
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ void ClangdServer::enumerateTweaks(PathRef File, Range Sel,
void ClangdServer::applyTweak(PathRef File, Range Sel, StringRef TweakID,
Callback<tooling::Replacements> CB) {
auto Action = [Sel, this](decltype(CB) CB, std::string File,
auto Action = [Sel](decltype(CB) CB, std::string File,
std::string TweakID,
Expected<InputsAndAST> InpAST) {
if (!InpAST)