summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/IndexingContext.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-03-31 08:48:19 +0000
committerFangrui Song <maskray@google.com>2019-03-31 08:48:19 +0000
commit75e74e077c9fed24c00fb5e12078df2b192841da (patch)
treef3d417ebdba005b4b25dbfc350ab4159662a3418 /clang/lib/Index/IndexingContext.cpp
parenteaf4484e94e7de38ef9d80cb80d92b26ef5f657e (diff)
downloadbcm5719-llvm-75e74e077c9fed24c00fb5e12078df2b192841da.tar.gz
bcm5719-llvm-75e74e077c9fed24c00fb5e12078df2b192841da.zip
Range-style std::find{,_if} -> llvm::find{,_if}. NFC
llvm-svn: 357359
Diffstat (limited to 'clang/lib/Index/IndexingContext.cpp')
-rw-r--r--clang/lib/Index/IndexingContext.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/Index/IndexingContext.cpp b/clang/lib/Index/IndexingContext.cpp
index edff2eb5668..e2985600714 100644
--- a/clang/lib/Index/IndexingContext.cpp
+++ b/clang/lib/Index/IndexingContext.cpp
@@ -411,10 +411,9 @@ bool IndexingContext::handleDeclOccurrence(const Decl *D, SourceLocation Loc,
FinalRelations.reserve(Relations.size()+1);
auto addRelation = [&](SymbolRelation Rel) {
- auto It = std::find_if(FinalRelations.begin(), FinalRelations.end(),
- [&](SymbolRelation Elem)->bool {
- return Elem.RelatedSymbol == Rel.RelatedSymbol;
- });
+ auto It = llvm::find_if(FinalRelations, [&](SymbolRelation Elem) -> bool {
+ return Elem.RelatedSymbol == Rel.RelatedSymbol;
+ });
if (It != FinalRelations.end()) {
It->Roles |= Rel.Roles;
} else {
OpenPOWER on IntegriCloud