[clang-tools-extra] r321192 - [clangd] Remove an unused lambda capture.

Eric Liu via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 20 09:22:56 PST 2017


Author: ioeric
Date: Wed Dec 20 09:22:56 2017
New Revision: 321192

URL: http://llvm.org/viewvc/llvm-project?rev=321192&view=rev
Log:
[clangd] Remove an unused lambda capture.

Modified:
    clang-tools-extra/trunk/unittests/clangd/Annotations.cpp

Modified: clang-tools-extra/trunk/unittests/clangd/Annotations.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/Annotations.cpp?rev=321192&r1=321191&r2=321192&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clangd/Annotations.cpp (original)
+++ clang-tools-extra/trunk/unittests/clangd/Annotations.cpp Wed Dec 20 09:22:56 2017
@@ -24,7 +24,7 @@ static void require(bool Assertion, cons
 
 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;




More information about the cfe-commits mailing list