diff options
author | Eric Liu <ioeric@google.com> | 2017-12-20 17:22:56 +0000 |
---|---|---|
committer | Eric Liu <ioeric@google.com> | 2017-12-20 17:22:56 +0000 |
commit | bf3c9d97f5f0ea6678a0cfea4624291a97ab619c (patch) | |
tree | c003edf43db271b0efb6e4bd87e722e1e21d4fb3 /unittests | |
parent | ecb55af7afac66e639fa85982483925eb6a68ca3 (diff) |
[clangd] Remove an unused lambda capture.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@321192 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/clangd/Annotations.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/clangd/Annotations.cpp b/unittests/clangd/Annotations.cpp index 69532214..6bd81c81 100644 --- a/unittests/clangd/Annotations.cpp +++ b/unittests/clangd/Annotations.cpp @@ -24,7 +24,7 @@ static void require(bool Assertion, const char *Msg, llvm::StringRef Code) { Annotations::Annotations(StringRef Text) { auto Here = [this] { return offsetToPosition(Code, Code.size()); }; - auto Require = [this, Text](bool Assertion, const char *Msg) { + auto Require = [Text](bool Assertion, const char *Msg) { require(Assertion, Msg, Text); }; Optional<StringRef> Name; |