[clang-tools-extra] r366339 - Fix MSVC 'implicitly capture' compile error. NFCI.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 17 08:31:53 PDT 2019
Author: rksimon
Date: Wed Jul 17 08:31:53 2019
New Revision: 366339
URL: http://llvm.org/viewvc/llvm-project?rev=366339&view=rev
Log:
Fix MSVC 'implicitly capture' compile error. NFCI.
Modified:
clang-tools-extra/trunk/clangd/QueryDriverDatabase.cpp
Modified: clang-tools-extra/trunk/clangd/QueryDriverDatabase.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/QueryDriverDatabase.cpp?rev=366339&r1=366338&r2=366339&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/QueryDriverDatabase.cpp (original)
+++ clang-tools-extra/trunk/clangd/QueryDriverDatabase.cpp Wed Jul 17 08:31:53 2019
@@ -65,7 +65,7 @@ std::vector<std::string> parseDriverOutp
auto StartIt =
std::find_if(Lines.begin(), Lines.end(),
- [](llvm::StringRef Line) { return Line.trim() == SIS; });
+ [SIS](llvm::StringRef Line) { return Line.trim() == SIS; });
if (StartIt == Lines.end()) {
elog("System include extraction: start marker not found: {0}", Output);
return {};
More information about the cfe-commits
mailing list