for (const auto &R : llvm::reverse(Info->Namespace)) {
// Look for the current namespace in the children of the index I is
// pointing.
- auto It = std::find(I->Children.begin(), I->Children.end(), R.USR);
+ auto It = llvm::find(I->Children, R.USR);
if (It != I->Children.end()) {
// If it is found, just change I to point the namespace reference found.
I = &*It;
// Look for Info in the vector where it is supposed to be; it could already
// exist if it is a parent namespace of an Info already passed to this
// function.
- auto It = std::find(I->Children.begin(), I->Children.end(), Info->USR);
+ auto It = llvm::find(I->Children, Info->USR);
if (It == I->Children.end()) {
// If it is not in the vector it is inserted
I->Children.emplace_back(Info->USR, Info->extractName(), Info->IT,
UTF8 *BufferStart = std::begin(Buffer);
UTF8 *IBuffer = BufferStart;
const UTF32 *ValuesStart = std::begin(Where->values);
- const UTF32 *ValuesEnd =
- std::find(std::begin(Where->values), std::end(Where->values), '\0');
+ const UTF32 *ValuesEnd = llvm::find(Where->values, '\0');
if (ConvertUTF32toUTF8(&ValuesStart, ValuesEnd, &IBuffer,
std::end(Buffer),
strictConversion) != conversionOK) {
BidiContexts.push_back(PDI);
// Close a PDI Context.
else if (CodePoint == PDI) {
- auto R = std::find(BidiContexts.rbegin(), BidiContexts.rend(), PDI);
+ auto R = llvm::find(llvm::reverse(BidiContexts), PDI);
if (R != BidiContexts.rend())
BidiContexts.resize(BidiContexts.rend() - R - 1);
}
}
}
- const size_t Index = std::find(Function->parameters().begin(),
- Function->parameters().end(), Param) -
+ const size_t Index = llvm::find(Function->parameters(), Param) -
Function->parameters().begin();
auto Diag =
static const ParmVarDecl *getParamDefinition(const ParmVarDecl *P) {
if (auto *Callee = dyn_cast<FunctionDecl>(P->getDeclContext())) {
if (auto *Def = Callee->getDefinition()) {
- auto I = std::distance(
- Callee->param_begin(),
- std::find(Callee->param_begin(), Callee->param_end(), P));
+ auto I = std::distance(Callee->param_begin(),
+ llvm::find(Callee->parameters(), P));
if (I < Callee->getNumParams()) {
return Def->getParamDecl(I);
}