diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-02-11 22:36:47 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2019-02-11 22:36:47 +0000 |
commit | 43a715d3a5b1592c67a40d3404bc5fed2ca5e67b (patch) | |
tree | a1a37f41ae264aaebb0be36ffe71433c029ca0ce | |
parent | 88620742ce6d0543aa75bd13e4800eee0f9f364e (diff) | |
download | clang-tools-extra-43a715d3a5b1592c67a40d3404bc5fed2ca5e67b.tar.gz |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@353760 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | clangd/ClangdServer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clangd/ClangdServer.cpp b/clangd/ClangdServer.cpp index 11e3d2c0..9dc33280 100644 --- a/clangd/ClangdServer.cpp +++ b/clangd/ClangdServer.cpp @@ -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) |