File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -320,11 +320,6 @@ static bool hasUnhandledError(ArrayRef<ASTNode> Nodes) {
320
320
});
321
321
}
322
322
323
- static bool
324
- hasNodeThat (ArrayRef<ASTNode> Nodes, llvm::function_ref<bool (ASTNode)> Pred) {
325
- return std::any_of (Nodes.begin (), Nodes.end (), Pred);
326
- }
327
-
328
323
struct RangeResolver ::Implementation {
329
324
SourceFile &File;
330
325
ASTContext &Ctx;
@@ -359,7 +354,7 @@ struct RangeResolver::Implementation {
359
354
360
355
// Explicitly allow the selection of multiple case statments.
361
356
auto IsCase = [](ASTNode N) { return N.isStmt (StmtKind::Case); };
362
- if (hasNodeThat (StartMatches, IsCase) && hasNodeThat (EndMatches, IsCase))
357
+ if (llvm::any_of (StartMatches, IsCase) && llvm::any_of (EndMatches, IsCase))
363
358
return true ;
364
359
return false ;
365
360
}
You can’t perform that action at this time.
0 commit comments