From 1608c120275dac8e3fc682717acebb470e64145e Mon Sep 17 00:00:00 2001 From: Francis Visoiu Mistrih Date: Mon, 11 Feb 2019 22:36:47 +0000 Subject: [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 --- clang-tools-extra/clangd/ClangdServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang-tools-extra/clangd/ClangdServer.cpp') diff --git a/clang-tools-extra/clangd/ClangdServer.cpp b/clang-tools-extra/clangd/ClangdServer.cpp index 11e3d2c002f..9dc332806de 100644 --- a/clang-tools-extra/clangd/ClangdServer.cpp +++ b/clang-tools-extra/clangd/ClangdServer.cpp @@ -362,7 +362,7 @@ void ClangdServer::enumerateTweaks(PathRef File, Range Sel, void ClangdServer::applyTweak(PathRef File, Range Sel, StringRef TweakID, Callback CB) { - auto Action = [Sel, this](decltype(CB) CB, std::string File, + auto Action = [Sel](decltype(CB) CB, std::string File, std::string TweakID, Expected InpAST) { if (!InpAST) -- cgit v1.2.3