[Lldb-commits] [lldb] r298202 - Fix unit test compilation failure.
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Sat Mar 18 22:48:01 PDT 2017
Author: zturner
Date: Sun Mar 19 00:48:01 2017
New Revision: 298202
URL: http://llvm.org/viewvc/llvm-project?rev=298202&view=rev
Log:
Fix unit test compilation failure.
Modified:
lldb/trunk/unittests/Interpreter/TestCompletion.cpp
Modified: lldb/trunk/unittests/Interpreter/TestCompletion.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/Interpreter/TestCompletion.cpp?rev=298202&r1=298201&r2=298202&view=diff
==============================================================================
--- lldb/trunk/unittests/Interpreter/TestCompletion.cpp (original)
+++ lldb/trunk/unittests/Interpreter/TestCompletion.cpp Sun Mar 19 00:48:01 2017
@@ -64,7 +64,8 @@ public:
bool ResolveExact(StringRef Expr, SmallVectorImpl<char> &Output) override {
Output.clear();
- assert(!llvm::any_of(Expr, llvm::sys::path::is_separator));
+ assert(!llvm::any_of(
+ Expr, [](char c) { return llvm::sys::path::is_separator(c); }));
assert(Expr.empty() || Expr[0] == '~');
Expr = Expr.drop_front();
if (Expr.empty()) {
@@ -85,7 +86,8 @@ public:
bool ResolvePartial(StringRef Expr, StringSet<> &Output) override {
Output.clear();
- assert(!llvm::any_of(Expr, llvm::sys::path::is_separator));
+ assert(!llvm::any_of(
+ Expr, [](char c) { return llvm::sys::path::is_separator(c); }));
assert(Expr.empty() || Expr[0] == '~');
Expr = Expr.drop_front();
More information about the lldb-commits
mailing list