reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

gen/lib/Target/AArch64/AArch64GenSystemOperands.inc
 1101   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 1109   if (Idx == Table.end() ||
 1142   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 1151   if (Idx == Table.end() ||
 1186   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 1194   if (Idx == Table.end() ||
 1216   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 1225   if (Idx == Table.end() ||
 1278   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 1286   if (Idx == Table.end() ||
 1317   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 1326   if (Idx == Table.end() ||
 1411   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 1419   if (Idx == Table.end() ||
 1466   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 1475   if (Idx == Table.end() ||
 1529   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 1537   if (Idx == Table.end() ||
 1572   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 1580   if (Idx == Table.end() ||
 1602   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 1611   if (Idx == Table.end() ||
 1642   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 1650   if (Idx == Table.end() ||
 1670   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 1679   if (Idx == Table.end() ||
 1710   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 1718   if (Idx == Table.end() ||
 1738   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 1747   if (Idx == Table.end() ||
 1812   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 1820   if (Idx == Table.end() ||
 1857   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 1866   if (Idx == Table.end() ||
 1897   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 1905   if (Idx == Table.end() ||
 1925   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 1934   if (Idx == Table.end() ||
 1979   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 1987   if (Idx == Table.end() ||
 2014   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 2023   if (Idx == Table.end() ||
 2086   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 2094   if (Idx == Table.end() ||
 2130   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 2139   if (Idx == Table.end() ||
 2192   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 2200   if (Idx == Table.end() ||
 2231   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 2240   if (Idx == Table.end() ||
 3807   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 3815   if (Idx == Table.end() ||
 4603   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 4612   if (Idx == Table.end() ||
 4797   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 4805   if (Idx == Table.end() ||
 4902   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 4911   if (Idx == Table.end() ||
 4942   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 4950   if (Idx == Table.end() ||
gen/lib/Target/AMDGPU/AMDGPUGenSearchableTables.inc
  593   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
  602   if (Idx == Table.end() ||
  758   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
  766   if (Idx == Table.end() ||
 4917   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 4938   if (Idx == Table.end() ||
 9065   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 9074   if (Idx == Table.end() ||
 9103   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 9112   if (Idx == Table.end() ||
 9135   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 9144   if (Idx == Table.end() ||
 9383   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 9392   if (Idx == Table.end() ||
 9629   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 9642   if (Idx == Table.end() ||
 9878   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
 9887   if (Idx == Table.end() ||
10759   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
10768   if (Idx == Table.end() ||
11638   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
11651   if (Idx == Table.end() ||
12520   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
12529   if (Idx == Table.end() ||
13064   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
13073   if (Idx == Table.end() ||
13283   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
13292   if (Idx == Table.end() ||
gen/lib/Target/ARM/ARMGenSystemRegister.inc
  169   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
  177   if (Idx == Table.end() ||
  229   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
  238   if (Idx == Table.end() ||
  343   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
  351   if (Idx == Table.end() ||
  407   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
  416   if (Idx == Table.end() ||
  472   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
  481   if (Idx == Table.end() ||
  537   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
  546   if (Idx == Table.end() ||
gen/lib/Target/RISCV/RISCVGenSystemOperands.inc
  237   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
  246   if (Idx == Table.end() ||
  486   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
  494   if (Idx == Table.end() ||
gen/lib/Transforms/InstCombine/InstCombineTables.inc
  287   auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
  296   if (Idx == Table.end() ||
gen/tools/clang/include/clang/AST/StmtDataCollectors.inc
   29     for (const Attr *A : S->getAttrs()) {
include/llvm/ADT/ArrayRef.h
  139     reverse_iterator rbegin() const { return reverse_iterator(end()); }
  165       std::uninitialized_copy(begin(), end(), Buff);
  173       return std::equal(begin(), end(), RHS.begin());
  201       return ArrayRef<T>(find_if_not(*this, Pred), end());
  207       return ArrayRef<T>(find_if(*this, Pred), end());
  430       std::copy(Data.begin(), Data.end(), this->begin());
  535     return hash_combine_range(S.begin(), S.end());
include/llvm/ADT/StringExtras.h
  379   return join(R.begin(), R.end(), Separator);
include/llvm/ADT/TinyPtrVector.h
  129                       : PtrUnion(new VecTy(Elts.begin(), Elts.end()))) {}
include/llvm/ADT/iterator_range.h
   40       : begin_iterator(c.begin()), end_iterator(c.end()) {}
include/llvm/Analysis/CallGraphSCCPass.h
   96     Nodes.assign(NewNodes.begin(), NewNodes.end());
include/llvm/Analysis/LoopInfo.h
  160   block_iterator block_end() const { return getBlocks().end(); }
include/llvm/Analysis/LoopInfoImpl.h
  427   std::vector<BlockT *> ReverseCFGWorklist(Backedges.begin(), Backedges.end());
include/llvm/Analysis/ScalarEvolutionExpressions.h
   69     for (auto *Arg : Args)
include/llvm/Analysis/TargetTransformInfoImpl.h
  753     for (auto I = Operands.begin(); I != Operands.end(); ++I, ++GTI) {
include/llvm/Bitstream/BitstreamWriter.h
  393     for (const auto &B : Bytes) {
include/llvm/CodeGen/Analysis.h
   62   return ComputeLinearIndex(Ty, Indices.begin(), Indices.end(), CurIndex);
include/llvm/CodeGen/BasicTTIImpl.h
  583     for (const Value *A : Args) {
  963       for (unsigned Index : Indices)
  986       for (unsigned Index : Indices) {
 1071       for (Value *Op : Args) {
include/llvm/CodeGen/CostTable.h
   36   if (I != Tbl.end())
   59   if (I != Tbl.end())
include/llvm/CodeGen/GlobalISel/CSEMIRBuilder.h
   59     for (const DstOp &Op : Ops)
   66     for (const SrcOp &Op : Ops)
include/llvm/CodeGen/GlobalISel/CallLowering.h
   59         : Regs(Regs.begin(), Regs.end()), Ty(Ty),
   60           Flags(Flags.begin(), Flags.end()), IsFixed(IsFixed) {
include/llvm/CodeGen/GlobalISel/GISelChangeObserver.h
   72       : Observers(Obs.begin(), Obs.end()) {}
include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
  331       for (const auto &MMO : State.MIs[InsnID]->memoperands())
  349       for (const auto &MMO : State.MIs[InsnID]->memoperands())
  367       for (const auto &MMO : State.MIs[InsnID]->memoperands())
  990         for (const auto &MMO : State.MIs[MergeInsnID]->memoperands())
include/llvm/CodeGen/LiveInterval.h
  600       return std::any_of(Undefs.begin(), Undefs.end(),
include/llvm/CodeGen/MachineInstr.h
  158       std::copy(MMOs.begin(), MMOs.end(),
  574   mmo_iterator memoperands_end() const { return memoperands().end(); }
include/llvm/CodeGen/MachineInstrBuilder.h
  221     for (const MachineOperand &MO : MOs) {
include/llvm/CodeGen/MachineRegisterInfo.h
  825     for (MachineInstr *MI : Users) {
include/llvm/CodeGen/RegisterPressure.h
  452     LiveThruPressure.assign(PressureSet.begin(), PressureSet.end());
include/llvm/CodeGen/SelectionDAG.h
 1779   for (auto& Op : Ops) {
include/llvm/CodeGen/SelectionDAGNodes.h
 2508   mmo_iterator memoperands_end() const { return memoperands().end(); }
include/llvm/DebugInfo/CodeView/TypeHashing.h
  113     for (const auto &R : Records) {
  128       for (const auto &R : Records) {
include/llvm/DebugInfo/CodeView/TypeRecord.h
  678         ArgIndices(ArgIndices.begin(), ArgIndices.end()) {}
  706     MethodNames.insert(MethodNames.end(), Methods.begin(), Methods.end());
include/llvm/DebugInfo/GSYM/GsymCreator.h
  207     UUID.assign(UUIDBytes.begin(), UUIDBytes.end());
include/llvm/DebugInfo/GSYM/GsymReader.h
  182     const auto End = AIO.end();
include/llvm/FuzzMutate/OpDescriptor.h
   65       for (Type *T : BaseTypes) {
  136     for (Type *T : Ts)
  155     for (Type *T : Ts)
include/llvm/FuzzMutate/RandomIRBuilder.h
   30       : Rand(Seed), KnownTypes(AllowedTypes.begin(), AllowedTypes.end()) {}
include/llvm/IR/DataLayout.h
  377     return find(NonIntegralSpaces, AddrSpace) != NonIntegralSpaces.end();
include/llvm/IR/DebugInfoMetadata.h
 2308         Elements(Elements.begin(), Elements.end()) {}
 2339   element_iterator elements_end() const { return getElements().end(); }
include/llvm/IR/GetElementPtrTypeIterator.h
  158     return generic_gep_type_iterator<const T *>::end(A.end());
include/llvm/IR/InstrTypes.h
 1070     Inputs.insert(Inputs.end(), OBU.Inputs.begin(), OBU.Inputs.end());
 2101     for (auto &B : Bundles)
include/llvm/IR/Instructions.h
 1056     for (Value *Index : IdxList)
include/llvm/IR/ModuleSummaryIndex.h
 1016     for (auto &C : F->calls()) {
 1182     if (Summary == SummaryList.end())
include/llvm/IR/ModuleSummaryIndexYAML.h
  241           for (auto &VI : FSum->refs())
include/llvm/MC/MCFragment.h
  644         Ranges(Ranges.begin(), Ranges.end()),
include/llvm/MC/MCSubtargetInfo.h
  221     auto Found = std::lower_bound(ProcDesc.begin(), ProcDesc.end(), CPU);
  222     return Found != ProcDesc.end() && StringRef(Found->Key) == CPU;
include/llvm/MCA/SourceMgr.h
   51   const_iterator end() const { return Sequence.end(); }
include/llvm/Object/ELFObjectFile.h
  373     for (const Elf_Shdr &Sec : *SectionsOrErr) {
  774   for (const Elf_Shdr &Sec : *SectionsOrErr) {
  786   for (const Elf_Shdr &Sec : *SectionsOrErr) {
  959   for (const Elf_Shdr &Sec : *SectionsOrErr) {
 1045   return section_iterator(SectionRef(toDRI((*SectionsOrErr).end()), this));
include/llvm/Object/ELFTypes.h
  540         reinterpret_cast<const Elf_Word *>(filter().end()), nbuckets);
  544     return ArrayRef<Elf_Word>(buckets().end(), DynamicSymCount - symndx);
include/llvm/Object/IRSymtab.h
  285     for (auto C : Comdats)
  297     for (auto S : DependentLibraries) {
  348   return {SymbolRef(Symbols.begin(), Symbols.end(), Uncommons.begin(), this),
  349           SymbolRef(Symbols.end(), Symbols.end(), nullptr, this)};
  349           SymbolRef(Symbols.end(), Symbols.end(), nullptr, this)};
include/llvm/ProfileData/Coverage/CoverageMapping.h
  317       : Name(Name), Filenames(Filenames.begin(), Filenames.end()) {}
  356     assert(Current != Records.end() && "incremented past end");
include/llvm/ProfileData/InstrProf.h
  871   for (auto &SR : getValueSitesForKind(ValueKind))
include/llvm/Support/Automaton.h
  196     for (const auto &I : Transitions)
include/llvm/Support/BinaryByteStream.h
  158     Data.insert(Data.begin() + Offset, Bytes.begin(), Bytes.end());
include/llvm/Support/BinaryItemStream.h
   78     for (const auto &Item : Items) {
include/llvm/Support/CFGUpdate.h
   74   for (const auto &U : AllUpdates) {
include/llvm/Support/EndianStream.h
   46   for (value_type v : vals)
include/llvm/Support/ScopedPrinter.h
   99     for (const auto &EnumItem : EnumValues) {
  122     for (const auto &Flag : Flags) {
  211     for (const auto &Item : List) {
  236     for (const auto &Item : List) {
include/llvm/Support/UnicodeCharRanges.h
   65     return std::binary_search(Ranges.begin(), Ranges.end(), C);
   73     for (CharRanges::const_iterator I = Ranges.begin(), E = Ranges.end();
include/llvm/Support/YAMLTraits.h
  874     if (this->canElideEmptySequence() && !(Val.begin() != Val.end()))
include/llvm/TableGen/Record.h
  269   const_record_iterator classes_end() const { return getClasses().end(); }
  983   inline const_case_iterator  arg_end  () const { return getConds().end(); }
  989   inline const_val_iterator name_end  () const { return getVals().end(); }
 1375   inline const_arg_iterator  arg_end  () const { return getArgs().end(); }
 1381   inline const_name_iterator name_end  () const { return getArgNames().end(); }
 1458     : Name(N), Locs(locs.begin(), locs.end()), TrackedRecords(records),
include/llvm/Transforms/IPO/Attributor.h
  464     for (Attribute::AttrKind AK : AKs)
include/llvm/Transforms/Scalar/LoopPassManager.h
  187     for (Loop *NewL : NewChildLoops)
  208     for (Loop *NewL : NewSibLoops)
lib/Analysis/CGSCCPassManager.cpp
  495   for (auto *F : G.getLibFunctions())
  632           for (SCC *MergedC : MergedSCCs) {
lib/Analysis/ConstantFolding.cpp
 1388   for (Constant *Index : Indices) {
lib/Analysis/DependenceAnalysis.cpp
  813   for (Subscript *Pair : Pairs) {
  838   for (Subscript *Pair : Pairs) {
lib/Analysis/DomTreeUpdater.cpp
  236     for (const auto U : Updates)
  256   for (const auto U : Updates) {
lib/Analysis/InstructionSimplify.cpp
 4492   for (Value *V : Ops)
lib/Analysis/LazyCallGraph.cpp
 1147   for (Node *TargetN : TargetNs) {
lib/Analysis/Lint.cpp
  155       for (const Value *V : Vs) {
lib/Analysis/LoopAccessAnalysis.cpp
 1116   for (auto *Ptr : VL) {
lib/Analysis/LoopCacheAnalysis.cpp
  518   for (BasicBlock *BB : InnerMostLoop->getBlocks()) {
lib/Analysis/LoopInfo.cpp
 1042   MDs.append(AddAttrs.begin(), AddAttrs.end());
lib/Analysis/MemoryDependenceAnalysis.cpp
  820     for (BasicBlock *Pred : PredCache.get(QueryBB))
  906       for (BasicBlock *Pred : PredCache.get(DirtyBB))
 1282       for (BasicBlock *Pred : PredCache.get(BB)) {
 1333     for (BasicBlock *Pred : PredCache.get(BB)) {
lib/Analysis/MemorySSAUpdater.cpp
  751   for (auto *Exit : ExitBlocks)
  778   auto MapEnd = MappedIteratorType(VMaps.end(), GetPtr);
  786   for (auto &Update : Updates) {
  914   for (auto &Edge : Updates) {
  960   for (auto &Edge : Updates) {
 1252     SmallPtrSet<BasicBlock *, 16> PredsSet(Preds.begin(), Preds.end());
 1372   for (auto &VH : UpdatedPHIs)
lib/Analysis/ModuleSummaryAnalysis.cpp
  388         for (auto &Candidate : CandidateProfileData)
  634     for (auto &Summary : VI.getSummaryList())
lib/Analysis/ScalarEvolution.cpp
 2790   for (const SCEV *Op : Ops)
 2797     std::uninitialized_copy(Ops.begin(), Ops.end(), O);
 2820     std::uninitialized_copy(Ops.begin(), Ops.end(), O);
 2842     std::uninitialized_copy(Ops.begin(), Ops.end(), O);
 6116     for (auto *BB : L->getBlocks())
 7000   for (auto *PredSet : PredSetList)
 7033       ExitCounts.begin(), ExitCounts.end(), std::back_inserter(ExitNotTaken),
12122       for (auto *Pred : ExprPreds)
12488   for (auto *BB : L.getBlocks())
lib/Analysis/TargetLibraryInfo.cpp
   71   assert(std::is_sorted(StandardNames.begin(), StandardNames.end(),
 1512   VectorDescs.insert(VectorDescs.end(), Fns.begin(), Fns.end());
 1515   ScalarDescs.insert(ScalarDescs.end(), Fns.begin(), Fns.end());
lib/Analysis/ValueTracking.cpp
 3357   SmallVector<unsigned, 10> Idxs(idx_range.begin(), idx_range.end());
 3393       if (req_idx == idx_range.end()) {
 3423                              makeArrayRef(req_idx, idx_range.end()),
 3441     Idxs.append(idx_range.begin(), idx_range.end());
lib/Analysis/VectorUtils.cpp
  384   for (auto *BB : Blocks)
  730   ResList.append(Vecs.begin(), Vecs.end());
lib/AsmParser/LLParser.cpp
 3587       for (Constant *Val : Indices) {
lib/Bitcode/Reader/BitcodeReader.cpp
 5632   for (uint64_t RefValueId : Record)
lib/Bitcode/Reader/MetadataLoader.cpp
  602           Buffer.append(Args.begin(), Args.end());
  606           Buffer.append(Args.begin(), Args.end());
  611           Buffer.append(Args.begin(), Args.end());
lib/Bitcode/Writer/BitcodeWriter.cpp
  200           for (auto &CallEdge : FS->calls())
 1980     for (const Metadata *MD : Strings)
 1989   for (const Metadata *MD : Strings)
 2014   for (const Metadata *MD : MDs) {
 2576     for (auto &Input : Bundle.Inputs)
 3522     for (auto &VF : VFs) {
 3536     for (auto &VC : VCs) {
 3556     for (auto &TT : FS->type_tests())
 3561         for (auto &VF : VFs)
 3570         for (auto &VC : VCs)
 3654   for (auto &RI : FS->refs())
 3659   for (auto &ECI : FS->calls()) {
 3701   for (auto &RI : VS->refs())
 3712     for (auto &P : VTableFuncs) {
 3990     for (const ValueInfo &VI : S->refs())
 4015       for (auto &RI : VS->refs()) {
 4047     for (auto &RI : FS->refs()) {
 4063     for (auto &EI : FS->calls()) {
 4070     for (auto &EI : FS->calls()) {
lib/Bitcode/Writer/ValueEnumerator.cpp
  870   for (Type *SubTy : Ty->subtypes())
lib/CodeGen/Analysis.cpp
  323           std::equal(InsertLoc.begin(), InsertLoc.end(), ValLoc.rbegin())) {
lib/CodeGen/AsmPrinter/AccelTable.cpp
  151         : DieOffsetBase(Offset), Atoms(AtomList.begin(), AtomList.end()) {}
  251   for (auto &Bucket : Contents.getBuckets()) {
  400   for (auto &Bucket : Contents.getBuckets()) {
  502   for (auto &Bucket : Contents.getBuckets()) {
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 2949       for (MCSymbol *Sym : MMI->getAddrLabelSymbolToEmit(BB))
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
  686   for (const auto &GHR : TypeTable.hashes()) {
 2598   for (const LocalVariable &L : Locals)
 2608   for (const LocalVariable &L : Locals)
 2697   for (LexicalBlock *Block : Blocks)
 2931   for (const EnumEntry<SymbolKind> &EE : getSymbolTypeNames())
 2968   for (const auto &UDT : UDTs) {
 3070   for (const CVGlobalVariable &CVGV : Globals) {
lib/CodeGen/AsmPrinter/DIEHash.cpp
  227   for (const auto &Entry : Locs.getEntries(Locs.getList(LocList.getValue())))
lib/CodeGen/AsmPrinter/DebugLocEntry.h
  128     Values.append(Vals.begin(), Vals.end());
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
  182   for (const auto &GE : GlobalExprs) {
  639   for (auto &Fragment : DV.getFrameIndexExprs()) {
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
 1471       for (auto &Value : CurEntry->getValues())
 1855   for (LexicalScope *AScope : LScopes.getAbstractScopesList()) {
 2137   auto End = Comments.end();
 2344   for (const auto &Range : R)
 2448   for (const auto &List : DebugLocs.getLists())
 2456   for (const auto &List : DebugLocs.getLists()) {
 2460     for (const auto &Entry : DebugLocs.getEntries(List)) {
lib/CodeGen/AsmPrinter/DwarfExpression.h
   50       : Start(Expr.begin()), End(Expr.end()) {}
lib/CodeGen/BreakFalseDeps.cpp
  145   for (MCPhysReg Reg : Order) {
lib/CodeGen/CallingConvLower.cpp
  247   for (MVT RegVT : RegParmTypes) {
lib/CodeGen/DFAPacketizer.cpp
  353   for (const MachineMemOperand *Op1 : MI1.memoperands())
  354     for (const MachineMemOperand *Op2 : MI2.memoperands())
lib/CodeGen/EarlyIfConversion.cpp
  755   for (auto B : Removed) {
  773   for (auto B : Removed)
lib/CodeGen/GCRootLowering.cpp
  160   for (AllocaInst *Root : Roots)
lib/CodeGen/GlobalISel/CSEMIRBuilder.cpp
  118   return std::all_of(DstOps.begin(), DstOps.end(), [](const DstOp &Op) {
lib/CodeGen/GlobalISel/IRTranslator.cpp
  992     if (DstOffsets[i] >= Offset && InsertedIt != InsertedRegs.end())
 1385       for (Register Reg : getOrCreateVRegs(*V)) {
 1759   for (Type *Ty : cast<StructType>(LP.getType())->elements())
 1931   for (auto Reg : getOrCreateVRegs(PI)) {
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  222   for (Register PartReg : PartRegs) {
  371   std::copy(Args.begin(), Args.end(), std::back_inserter(Info.OrigArgs));
lib/CodeGen/GlobalISel/LegalizerInfo.cpp
   86   for (const auto &Type : Types) {
   92   for (const auto &MMODescr : MMODescrs) {
  499   for (const auto &MMO : MI.memoperands())
lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
  540   assert(std::is_sorted(Indices.begin(), Indices.end()) &&
  544   for (auto Op : Ops)
  585   SmallVector<SrcOp, 8> TmpVec(Ops.begin(), Ops.end());
  595   SmallVector<DstOp, 8> TmpVec(Res.begin(), Res.end());
  614   SmallVector<DstOp, 8> TmpVec(Res.begin(), Res.end());
  624   SmallVector<SrcOp, 8> TmpVec(Ops.begin(), Ops.end());
  640   SmallVector<SrcOp, 8> TmpVec(Ops.begin(), Ops.end());
  649   SmallVector<SrcOp, 8> TmpVec(Ops.begin(), Ops.end());
  677   for (unsigned ResultReg : ResultRegs)
  689   for (DstOp Result : Results)
 1050     assert(std::all_of(DstOps.begin(), DstOps.end(),
 1064     assert(std::all_of(SrcOps.begin(), SrcOps.end(),
 1115     assert(std::all_of(SrcOps.begin(), SrcOps.end(),
 1132     assert(std::all_of(SrcOps.begin(), SrcOps.end(),
 1147     assert(std::all_of(SrcOps.begin(), SrcOps.end(),
 1174   for (const DstOp &Op : DstOps)
 1176   for (const SrcOp &Op : SrcOps)
lib/CodeGen/ImplicitNullChecks.cpp
  253   for (auto I = Block.begin(), E = Block.end(); I != E; ++I) {
  339   for (MachineMemOperand *MMO1 : MI.memoperands()) {
  343     for (MachineMemOperand *MMO2 : PrevMI->memoperands()) {
  379   for (auto *PrevMI : PrevInsts) {
  667   for (auto &NC : NullCheckList) {
lib/CodeGen/InlineSpiller.cpp
  811   for (const auto &OpPair : Ops) {
lib/CodeGen/InterleavedAccessPass.cpp
  365   for (auto *Extract : Extracts) {
  373     for (auto *Shuffle : Shuffles) {
lib/CodeGen/LiveInterval.cpp
  816   ArrayRef<SlotIndex>::iterator SlotE = Slots.end();
lib/CodeGen/LiveIntervals.cpp
  617   for (SlotIndex Idx : Indices)
  904   ArrayRef<SlotIndex>::iterator SlotE = Slots.end();
 1610   for (unsigned Reg : OrigRegs) {
lib/CodeGen/LiveRangeCalc.cpp
  592   for (SlotIndex I : Defs)
lib/CodeGen/MIRParser/MIParser.cpp
  196   for (const auto &I : Indices)
  216   for (const auto &I : Flags)
  238   for (const auto &I : Flags)
  260   for (const auto &I : Flags)
 1089   for (const auto &I : Operands) {
lib/CodeGen/MIRPrinter.cpp
  306   for (std::pair<unsigned, unsigned> LI : RegInfo.liveins()) {
  545   for (const uint32_t *Mask : TRI->getRegMasks())
  800     for (const auto *Op : MI.memoperands()) {
lib/CodeGen/MachineBlockPlacement.cpp
 2073   for (MachineBasicBlock *MBB : L.getBlocks()) {
 2446     for (MachineBasicBlock *LoopBB : L.getBlocks()) {
lib/CodeGen/MachineCopyPropagation.cpp
   90     for (unsigned Reg : Regs) {
lib/CodeGen/MachineFunction.cpp
  787   LPadToCallSiteMap[Sym].append(Sites.begin(), Sites.end());
lib/CodeGen/MachineInstr.cpp
 1321   for (MachineMemOperand *MMO : memoperands()) {
 1736     for (const MachineMemOperand *Op : memoperands()) {
 1971     for (ArrayRef<Register>::iterator I = UsedRegs.begin(), E = UsedRegs.end();
lib/CodeGen/MachineLICM.cpp
  383   for (const MachineMemOperand *MemOp : MI->memoperands()) {
  502   for (MachineBasicBlock *BB : CurLoop->getBlocks()) {
  574   for (MachineBasicBlock *BB : CurLoop->getBlocks()) {
  897   for (MachineMemOperand *MemOp : MI.memoperands())
lib/CodeGen/MachineOperand.cpp
  410   if (Found != Indices.end())
  417   for (const auto &I : Flags) {
  503   for (const auto &I : Flags) {
  565   for (const auto &Mask : BitMasks) {
lib/CodeGen/MachinePostDominators.cpp
   55   for (MachineBasicBlock *BB : Blocks.drop_front()) {
lib/CodeGen/MachineRegisterInfo.cpp
  648   for (MCPhysReg Reg : CSRs)
lib/CodeGen/MachineScheduler.cpp
  854   for (SUnit *SU : TopRoots)
 1097   for (const RegisterMaskPair &P : LiveUses) {
 1559   for (SUnit *SU : MemOps) {
 2044   for (SUnit *SU : ReadySUs) {
lib/CodeGen/MachineSink.cpp
 1133   for (auto DefReg : DefedRegsInCopy) {
lib/CodeGen/MachineTraceMetrics.cpp
 1237     for (const MCSchedClassDesc *SC : Instrs) {
 1255     for (const MachineBasicBlock *MBB : Extrablocks)
 1267   for (const MachineBasicBlock *MBB : Extrablocks)
lib/CodeGen/MachineVerifier.cpp
 1840         for (auto *MMO : MI->memoperands()) {
lib/CodeGen/ModuloSchedule.cpp
   74   for (MachineInstr *MI : Schedule.getInstructions()) {
  132   for (MachineInstr *CI : Schedule.getInstructions()) {
  954   for (MachineMemOperand *MMO : NewMI.memoperands()) {
 1296   for (MachineInstr *MI : S.getInstructions()) {
 2015   for (MachineInstr *MI : S.getInstructions()) {
lib/CodeGen/PrologEpilogInserter.cpp
  542     for (const CalleeSavedInfo &CS : CSI) {
lib/CodeGen/RegAllocFast.cpp
  716   for (MCPhysReg PhysReg : AllocationOrder) {
lib/CodeGen/RegAllocGreedy.cpp
 1032   for (auto PhysReg : Order.getOrder()) {
 1070     Intfs.append(IVR.begin(), IVR.end());
 1328       for (ArrayRef<unsigned>::iterator I = Blocks.begin(), E = Blocks.end();
 1550   for (auto PhysReg : Order.getOrder()) {
 3166   for (MachineBasicBlock *MBB : L->getBlocks())
lib/CodeGen/RegAllocPBQP.cpp
  758       for (unsigned CandidateReg : RawPRegOrder) {
lib/CodeGen/RegUsageInfoCollector.cpp
  148   for (const MCPhysReg Reg : TRI->getIntraCallClobberedRegs(&MF))
lib/CodeGen/RegisterPressure.cpp
  376   if (I == RegUnits.end())
  706   for (const RegisterMaskPair &P : Regs) {
  744   for (const RegisterMaskPair &P : DeadDefs) {
  750   for (const RegisterMaskPair &P : DeadDefs) {
lib/CodeGen/RegisterScavenging.cpp
  398       for (MCPhysReg Reg : AllocationOrder) {
  416         for (MCPhysReg Reg : AllocationOrder) {
lib/CodeGen/SafeStack.cpp
  451   for (Instruction *I : StackRestorePoints) {
  509   for (Argument *Arg : ByValArguments) {
  521   for (AllocaInst *AI : StaticAllocas) {
  563   for (Argument *Arg : ByValArguments) {
  586   for (AllocaInst *AI : StaticAllocas) {
  643   for (AllocaInst *AI : DynamicAllocas) {
lib/CodeGen/ScheduleDAGInstrs.cpp
  132     for (const MachineMemOperand *MMO : MI->memoperands()) {
 1447   for (const SUnit &SU : SUnits) {
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  783   for (const SDValue &Op : N->ops())
11185     for (int M : SVN->getMask())
15442       for (SDValue Op : N->ops())
16523       SmallVector<int, 16> NewMask(Mask.begin(), Mask.end());
17723   for (const SDValue &Op : N->ops()) {
17779   for (SDValue Op : N->ops()) {
17927       for (const SDValue &Op : N->ops())
17936     for (const SDValue &Op : N->ops()) {
18525   for (int M : SVN->getMask()) {
18730   for (int Idx : ShufMask)
18771   SmallVector<int, 16> CommutedMask(Mask.begin(), Mask.end());
19006         return SmallVector<int, 8>(Mask.begin(), Mask.end());
19009       for (int M : Mask)
20855   for (const SDValue &Op : TF->ops())
lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp
  778       for (auto DV : DAG->GetDbgValues(N)) {
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
  742   for (auto DV : DAG->GetDbgValues(N)) {
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
  449   for (auto& Op : Ops) {
  458   for (auto& Op : Ops) {
 1588   SmallVector<int, 8> MaskVec(Mask.begin(), Mask.end());
 1744   SmallVector<int, 8> MaskVec(SV.getMask().begin(), SV.getMask().end());
 4235   for (SDValue Op : Ops) {
 4936     for (SDValue Op : Ops) {
 7198   SmallVector<SDValue, 8> NewOps(Ops.begin(), Ops.end());
 7529   if (std::equal(Ops.begin(), Ops.end(), N->op_begin()))
 8038   for (SDDbgValue *Dbg : GetDbgValues(FromNode)) {
 8086   for (auto DV : GetDbgValues(&N)) {
 8398   for (auto &Op : N->ops()) {
 8441     for (auto &Op : N->ops()) {
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 5536       for (auto RegAndSize : SplitRegs) {
 8424     assert(CurResultType != ResultTypes.end() && "Unexpected value");
 8499     assert(CurResultType == ResultTypes.end() &&
lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
  744       for (SDDbgValue *Dbg : G->GetDbgValues(this))
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
  565     for (std::pair<unsigned, unsigned> LI : RegInfo->liveins())
lib/CodeGen/SelectionDAG/StatepointLowering.cpp
  533   for (const Value *V : SI.DeoptState) {
  550   for (const Value *V : SI.DeoptState) {
  585   for (Value *V : SI.GCArgs) {
  706     for (const Value *V : SI.GCTransitionArgs) {
  797     for (const Value *V : SI.GCTransitionArgs) {
  946       ArrayRef<const Use>(DeoptBundle.Inputs.begin(), DeoptBundle.Inputs.end());
lib/CodeGen/SelectionDAG/TargetLowering.cpp
 2403     SmallVector<int, 32> NewMask(ShuffleMask.begin(), ShuffleMask.end());
lib/CodeGen/SjLjEHPrepare.cpp
  183   for (LandingPadInst *LPI : LPads) {
  308       for (InvokeInst *Invoke : Invokes) {
  330   for (InvokeInst *Invoke : Invokes) {
lib/CodeGen/SpillPlacement.cpp
  265        E = LiveBlocks.end(); I != E; ++I) {
  286   for (ArrayRef<unsigned>::iterator I = Blocks.begin(), E = Blocks.end();
  301   for (ArrayRef<unsigned>::iterator I = Links.begin(), E = Links.end(); I != E;
lib/CodeGen/StackColoring.cpp
  970       for (MachineMemOperand *MMO : I.memoperands()) {
 1026       for (MachineMemOperand *MMO : I.memoperands()) {
lib/CodeGen/TargetInstrInfo.cpp
  495   for (unsigned Op : Ops) {
  536   for (unsigned OpIdx : Ops)
  554     for (unsigned OpIdx : Ops) {
  625   for (unsigned OpIdx : Ops)
lib/CodeGen/VirtRegMap.cpp
  423       for (const MachineInstr *Src : Srcs)
lib/CodeGen/WinEHPrepare.cpp
  146   for (const CatchPadInst *CPI : Handlers) {
lib/DebugInfo/CodeView/CodeViewRecordIO.cpp
   69   for (auto X : makeArrayRef(Limits).drop_front()) {
  122     Bytes.assign(BytesRef.begin(), BytesRef.end());
lib/DebugInfo/CodeView/SymbolDumper.cpp
   92   for (auto &Gap : Gaps) {
lib/DebugInfo/CodeView/TypeDumpVisitor.cpp
  298   for (auto N : VFT.getMethodNames())
  337   for (auto &M : MethodList.getMethods()) {
  429   for (auto Arg : Args.getArgs()) {
lib/DebugInfo/CodeView/TypeHashing.cpp
   55     for (TypeIndex TI : Indices) {
lib/DebugInfo/CodeView/TypeIndexDiscovery.cpp
  472   for (const auto &Ref : Refs) {
lib/DebugInfo/CodeView/TypeRecordMapping.cpp
   52   for (const auto &Flag : Flags) {
   87   for (const auto &EnumItem : EnumValues) {
lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
   96   for (auto Atom : getAtomsDesc()) {
  120   for (auto Atom : getAtomsDesc()) {
lib/DebugInfo/DWARF/DWARFContext.cpp
 1042               decodeSLEB128(Location->data() + 1, nullptr, Location->end());
lib/DebugInfo/DWARF/DWARFDie.cpp
  380     for (auto Attr : Attrs) {
lib/DebugInfo/DWARF/DWARFVerifier.cpp
 1115   if (Iter == TableRef.end()) {
lib/DebugInfo/MSF/MSFBuilder.cpp
   89   for (auto B : DirBlocks) {
  164   for (auto Block : Blocks) {
  174   for (auto Block : Blocks) {
  215     for (auto P : RemovedBlockList)
  275     for (auto B :
lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp
  229     for (StringRef Name : MI->source_files()) {
  375   for (auto &Hdr : SecHdrs) {
lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp
  257   for (const CVSymbol &Sym : Records) {
lib/DebugInfo/PDB/Native/Hash.cpp
   27   for (auto Value : Longs)
   30   const uint8_t *Remainder = reinterpret_cast<const uint8_t *>(Longs.end());
   64   for (ulittle32_t Item : Items) {
   70   for (uint8_t Item : Buffer) {
lib/DebugInfo/PDB/Native/PDBFile.cpp
   90                            ContainerLayout.StreamSizes.end());
  162   for (auto Byte : FpmBytes) {
  217     for (uint32_t Block : Blocks) {
  248   Result.Blocks.assign(Blocks.begin(), Blocks.end());
lib/ExecutionEngine/Interpreter/Execution.cpp
 2156   StackFrame.VarArgs.assign(ArgVals.begin()+i, ArgVals.end());
lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
  106   for (Type *T : FT->params())
  422   NewArgs.insert(NewArgs.end(), Args.begin(), Args.end());
  465   NewArgs.insert(NewArgs.end(), Args.begin()+1, Args.end());
lib/ExecutionEngine/Orc/Core.cpp
 2100   for (auto *JD : SearchOrder)
lib/ExecutionEngine/Orc/SpeculateAnalyses.cpp
  268   for (auto I : HotBlocksRef) {
lib/FuzzMutate/IRMutator.cpp
  130   for (const auto &Pred : makeArrayRef(OpDesc->SourcePreds).slice(1))
lib/FuzzMutate/RandomIRBuilder.cpp
   98   for (auto &I : Insts) {
lib/IR/AsmWriter.cpp
 2156     for (const auto &I : N->getElements())
 2559     for (const auto &Input : BU.Inputs) {
 2903     for (auto &P : VTableFuncs) {
 2967     for (auto &Call : FS->calls()) {
 3103     for (auto &Ref : RefList) {
 3126     for (auto &Summary : VI.getSummaryList()) {
lib/IR/AttributeImpl.h
  229     for (const auto &Attr : AttrList)
lib/IR/Attributes.cpp
  745   SmallVector<Attribute, 8> SortedAttrs(Attrs.begin(), Attrs.end());
  931   for (const auto &Set : Sets)
  978   assert(std::is_sorted(Attrs.begin(), Attrs.end(),
  993          E = Attrs.end(); I != E; ) {
 1014   assert(std::is_sorted(Attrs.begin(), Attrs.end(),
 1033   for (const auto Pair : Attrs)
 1074     AttrSets.insert(AttrSets.end(), ArgAttrs.begin(), ArgAttrs.end());
 1093   for (const auto K : Kinds)
 1101   for (const auto K : Kinds)
 1114   for (const auto List : Attrs)
 1124     for (const auto List : Attrs)
 1187   assert(std::is_sorted(ArgNos.begin(), ArgNos.end()));
 1194   for (unsigned ArgNo : ArgNos) {
lib/IR/AutoUpgrade.cpp
  528       SmallVector<Type *, 4> Tys(fArgs.begin(), fArgs.end());
lib/IR/ConstantFold.cpp
 2285         NewIndices.append(Idxs.begin() + 1, Idxs.end());
lib/IR/Constants.cpp
  945   for (Constant *C : V)
  958   for (Constant *C : V)
 1034   if (isa<UndefValue>(C) && rangeOnlyContains(V.begin(), V.end(), C))
 1037   if (C->isNullValue() && rangeOnlyContains(V.begin(), V.end(), C))
 1242   if (Ty == getType() && std::equal(Ops.begin(), Ops.end(), op_begin()))
 2030   else for (auto Idx : Idxs)
lib/IR/ConstantsContext.h
  177         Indices(IdxList.begin(), IdxList.end()) {
  208         Indices(IdxList.begin(), IdxList.end()) {
  402     return hash_combine_range(Operands.begin(), Operands.end());
  524                         hash_combine_range(Ops.begin(), Ops.end()),
  525                         hash_combine_range(Indexes.begin(), Indexes.end()));
lib/IR/Core.cpp
  737     for (auto *T : unwrap(Tp)->subtypes()) {
 1073   for (auto *OV : makeArrayRef(Vals, Count)) {
lib/IR/DIBuilder.cpp
  740   SmallVector<uint64_t, 8> Addr(Signed.begin(), Signed.end());
lib/IR/DebugInfoMetadata.cpp
 1091       NewOps.append(Ops.begin(), Ops.end());
 1099   NewOps.append(Ops.begin(), Ops.end());
 1130   NewOps.append(Ops.begin(), Ops.end());
lib/IR/Function.cpp
  541   const auto &TI = It != Targets.end() && It->Name == Target ? *It : Targets[0];
  602       for (auto Elem : STyp->elements())
  650   for (Type *Ty : Tys) {
 1354   for (auto Ty : FTy->params())
lib/IR/IRBuilder.cpp
  590   Args.insert(Args.end(), CallArgs.begin(), CallArgs.end());
  592   Args.insert(Args.end(), TransitionArgs.begin(), TransitionArgs.end());
  594   Args.insert(Args.end(), DeoptArgs.begin(), DeoptArgs.end());
  595   Args.insert(Args.end(), GCArgs.begin(), GCArgs.end());
lib/IR/Instruction.cpp
  714   for (unsigned M : WL)
lib/IR/Instructions.cpp
  359   for (auto &B : Bundles)
  367     assert(BI != Bundles.end() && "Incorrect allocation?");
  376   assert(BI == Bundles.end() && "Incorrect allocation?");
  811   std::copy(Args.begin(), Args.end(), op_begin());
 2122   Indices.append(Idxs.begin(), Idxs.end());
 2146   Indices.append(Idxs.begin(), Idxs.end());
 2164   for (unsigned Index : Idxs) {
lib/IR/IntrinsicInst.cpp
   72   const char *const *High = NameTable.end();
   87   if (LastLow == NameTable.end())
lib/IR/LLVMContextImpl.cpp
  196   return hash_combine_range(Ops.begin(), Ops.end());
lib/IR/LLVMContextImpl.h
  130                                            Key.ETypes.end()),
  186                                            Key.Params.end()),
  236     return std::equal(Ops.begin(), Ops.end(), RHS->op_begin() + Offset);
 1012     return hash_combine_range(Elements.begin(), Elements.end());
lib/IR/LegacyPassManager.cpp
  608   for (Pass *AP : AnalysisPasses) {
lib/IR/MDBuilder.cpp
  102   for (Function *F : Callees)
  115   for (int ArgNo : Arguments)
lib/IR/Metadata.cpp
  508   for (Metadata *MD : Ops1)
  510   for (Metadata *MD : Ops2)
 1202   KnownSet.insert(KnownIDs.begin(), KnownIDs.end());
lib/IR/ModuleSummaryIndex.cpp
  101   for (auto &I : SummaryList)
  116   for (auto &VI : S->refs()) {
  118     for (auto &Ref : VI.getSummaryList())
  461       for (auto &R : GVS->refs())
  471         for (auto &CGEdge : FS->calls())
lib/IR/RemarkStreamer.cpp
   93   for (const DiagnosticInfoOptimizationBase::Argument &Arg : Diag.getArgs()) {
lib/IR/Verifier.cpp
  196     for (const T &V : Vs)
 1849   for (const auto &Pair : MDs) {
 2961     for (Type *ParamTy : FTy->params()) {
 5089   for (auto *F : makeArrayRef(DeoptimizeDeclarations).slice(1)) {
lib/LTO/LTO.cpp
  192     for (const ValueInfo &VI : GS->refs()) {
  201       for (auto &TT : FS->type_tests())
  203       for (auto &TT : FS->type_test_assume_vcalls())
  205       for (auto &TT : FS->type_checked_load_vcalls())
  207       for (auto &TT : FS->type_test_assume_const_vcalls())
  209       for (auto &TT : FS->type_checked_load_const_vcalls())
  211       for (auto &ET : FS->calls()) {
  308   for (auto &S : VI.getSummaryList()) {
  495   auto *ResE = Res.end();
  497   for (const InputFile::Symbol &Sym : Syms) {
  549   for (const InputFile::Symbol &Sym : Input->symbols()) {
  550     assert(ResI != Res.end());
  565   assert(ResI == Res.end());
  580     if (Error Err = addModule(*Input, I, ResI, Res.end()))
  583   assert(ResI == Res.end());
  697   auto MsymI = SymTab.symbols().begin(), MsymE = SymTab.symbols().end();
  710   for (const InputFile::Symbol &Sym : Syms) {
  814   for (const InputFile::Symbol &Sym : Syms) {
lib/LTO/LTOModule.cpp
  567   for (auto Sym : SymTab.symbols()) {
lib/LTO/SummaryBasedOptimizations.cpp
   34   for (auto &C : Root.calls()) {
   36     for (auto &GVS : V.getSummaryList()) {
   65     for (auto &GVS : V.getSummaryList()) {
lib/LTO/ThinLTOCodeGenerator.cpp
  261   for (const auto &Sym : File.symbols()) {
lib/Linker/IRMover.cpp
  532     for (GlobalValue *GV : ValuesToLink)
 1483   return hash_combine(hash_combine_range(Key.ETypes.begin(), Key.ETypes.end()),
lib/MC/ELFObjectWriter.cpp
  743   for (const std::string &Name : FileNames)
  750   for (const std::string &Name : FileNames)
  794   for (uint32_t Index : ShndxIndexes)
lib/MC/MCAsmStreamer.cpp
  507          ie = Options.end(); it != ie; ++it) {
 1432   for (std::pair<const MCSymbol *, const MCSymbol *> Range : Ranges) {
lib/MC/MCAssembler.cpp
  850       for (const MCFixup &Fixup : Fixups) {
lib/MC/MCCodeView.cpp
  485   for (const MCCVLoc &Loc : Locs) {
  511   for (const MCCVLoc &Loc : Locs) {
  620   for (std::pair<const MCSymbol *, const MCSymbol *> Range : Frag.getRanges()) {
lib/MC/MCDwarf.cpp
  506   for (char Length : StandardOpcodeLengths)
 1463   for (const MCCFIInstruction &Instr : Instrs) {
 1835     for (const MCDwarfFrameInfo &Frame : FrameArray) {
 1867   std::vector<MCDwarfFrameInfo> FrameArrayX(FrameArray.begin(), FrameArray.end());
lib/MC/MCFragment.cpp
  455     for (std::pair<const MCSymbol *, const MCSymbol *> RangeStartEnd :
lib/MC/MCInstPrinter.cpp
   25   for (char i: bytes) {
lib/MC/MCParser/AsmParser.cpp
 5857     ClobberRegs.insert(ClobberRegs.end(), ImpDefs.begin(), ImpDefs.end());
lib/MC/MCSchedule.cpp
  160   for (const MCReadAdvanceEntry &E : Entries) {
lib/MC/MCSubtargetInfo.cpp
   29   if (F == A.end() || StringRef(F->Key) != S) return nullptr;
   41   for (const SubtargetFeatureKV &FE : FeatureTable)
   50   for (const SubtargetFeatureKV &FE : FeatureTable) {
   90   for (auto &I : Table)
  111   for (auto &CPU : CPUTable)
  118   for (auto &Feature : FeatTable)
  139   for (auto &CPU : CPUTable)
  291   assert(std::is_sorted(ProcDesc.begin(), ProcDesc.end()) &&
lib/MC/MCWin64EH.cpp
  227   for (const auto &CFI : Streamer.getWinFrameInfos()) {
  234   for (const auto &CFI : Streamer.getWinFrameInfos()) {
  659   for (const auto &CFI : Streamer.getWinFrameInfos()) {
  666   for (const auto &CFI : Streamer.getWinFrameInfos()) {
lib/MC/WasmObjectWriter.cpp
  641   for (const WasmRelocationEntry &RelEntry : Relocations) {
  684   for (const WasmSignature &Sig : Signatures) {
  709   for (const wasm::WasmImport &Import : Imports) {
  751   for (const WasmFunction &Func : Functions)
  765   for (const wasm::WasmEventType &Event : Events) {
  781   for (const wasm::WasmExport &Export : Exports) {
  806   for (uint32_t Elem : TableElems)
  834   for (const WasmFunction &Func : Functions) {
  941     for (const wasm::WasmSymbolInfo &Sym : SymbolInfos) {
  988     for (auto &StartFunc : InitFuncs) {
lib/MC/WinCOFFObjectWriter.cpp
  837   for (const std::string &Name : Asm.getFileNames()) {
lib/MCA/HardwareUnits/RegisterFile.cpp
   87   for (const MCRegisterCostEntry &RCE : Entries) {
  431   for (const MCPhysReg RegID : Regs) {
lib/MCA/Stages/DispatchStage.cpp
   48   for (const WriteState &RegDef : IR.getInstruction()->getDefs())
lib/MCA/Stages/RetireStage.cpp
   59   for (const WriteState &WS : Inst.getDefs())
lib/Object/ArchiveWriter.cpp
  293   for (const MemberData &M : Members)
  331   for (const MemberData &M : Members) {
  450     for (const NewArchiveMember &M : NewMembers)
  456   for (const NewArchiveMember &M : NewMembers) {
lib/Object/COFFImportFile.cpp
   81   for (const auto &S : Strings) {
  587   for (COFFShortExport E : Exports) {
lib/Object/COFFObjectFile.cpp
 1771   for (const coff_relocation &R : OrigRelocs)
lib/Object/ELF.cpp
  320   for (const Elf_Relr &R : relrs) {
  358   const uint8_t *End = ContentsOrErr->end();
  508   for (const Elf_Phdr &Phdr : *ProgramHeadersOrError) {
  525     for (const Elf_Shdr &Sec : *SectionsOrError) {
  564   for (const Elf_Phdr &Phdr : *ProgramHeadersOrError)
lib/Object/IRSymtab.cpp
  159   for (ModuleSymbolTable::Symbol Msym : Msymtab.symbols())
  317   for (auto *M : IRMods)
  352   for (auto BM : BMs) {
lib/Object/MachOObjectFile.cpp
 2726   return llvm::find(validArchs, ArchFlag) != validArchs.end();
 2816   uint64_t Result = decodeULEB128(Ptr, &Count, Trie.end(), error);
 2818   if (Ptr > Trie.end())
 2819     Ptr = Trie.end();
 2868   if (Children > Trie.end()) {
 2923         if (End >= Trie.end()) {
 2931         while(*End != '\0' && End < Trie.end())
 2974   if (State.ChildCount != 0 && Children + 1 >= Trie.end()) {
 2994     for (;*Top.Current != 0 && Top.Current < Trie.end(); Top.Current++) {
 2998     if (Top.Current >= Trie.end()) {
 3113   Ptr = Opcodes.end();
 3129   if (Ptr == Opcodes.end()) {
 3380   uint64_t Result = decodeULEB128(Ptr, &Count, Opcodes.end(), error);
 3382   if (Ptr > Opcodes.end())
 3383     Ptr = Opcodes.end();
 3461   Ptr = Opcodes.end();
 3477   if (Ptr == Opcodes.end()) {
 3498         for (const uint8_t *P = Ptr; P < Opcodes.end(); ++P) {
 3597       while (*Ptr && (Ptr < Opcodes.end())) {
 3600       if (Ptr == Opcodes.end()) {
 3926   uint64_t Result = decodeULEB128(Ptr, &Count, Opcodes.end(), error);
 3928   if (Ptr > Opcodes.end())
 3929     Ptr = Opcodes.end();
 3935   int64_t Result = decodeSLEB128(Ptr, &Count, Opcodes.end(), error);
 3937   if (Ptr > Opcodes.end())
 3938     Ptr = Opcodes.end();
lib/Object/WindowsResource.cpp
  676   for (auto const &String : StringTable) {
  697   for (auto const &Entry : Data) {
  791   for (auto const &RawDataEntry : Data) {
  957   for (auto &String : StringTable) {
lib/Object/XCOFFObjectFile.cpp
  567   for (const auto &Sec : sections32()) {
lib/ObjectYAML/CodeViewYAMLDebugSections.cpp
  754   for (const auto &SS : Subsections) {
  935     for (const auto &SS : Sections) {
  947     for (const auto &SS : Sections) {
lib/ObjectYAML/CodeViewYAMLSymbols.cpp
   79   for (const auto &E : SymbolNames)
   86   for (const auto &E : FlagNames) {
   95   for (const auto &E : FlagNames) {
  103   for (const auto &E : FlagNames) {
  111   for (const auto &E : FlagNames) {
  119   for (const auto &E : FlagNames) {
  127   for (const auto &E : FlagNames) {
  136   for (const auto &E : FlagNames) {
  144   for (const auto &E : CpuNames) {
  151   for (const auto &E : RegNames) {
  160   for (const auto &E : TrampNames) {
  169   for (const auto &E : ThunkNames) {
  177   for (const auto &E : ThunkNames) {
lib/ObjectYAML/CodeViewYAMLTypes.cpp
  801   for (const auto &Leaf : Leafs) {
  812   for (const auto &R : TS.records()) {
lib/ObjectYAML/ELFEmitter.cpp
  497   for (const ELFYAML::Symbol &Sym : Symbols) {
lib/ObjectYAML/MinidumpYAML.cpp
  488     for (const MemoryDescriptor &MD : *ExpectedList) {
  501     for (const Module &M : *ExpectedList) {
  537     for (const Thread &T : *ExpectedList) {
  555   for (const Directory &StreamDesc : File.streams()) {
lib/ObjectYAML/YAML.cpp
   60   for (uint8_t Byte : Data)
lib/Option/ArgList.cpp
  103     for (OptSpecifier Id : ExcludeIds) {
  110       for (OptSpecifier Id : Ids) {
lib/Option/OptTable.cpp
  257   for (const Info &CandidateInfo :
  397   InputArgList Args(ArgArr.begin(), ArgArr.end());
lib/Passes/PassBuilder.cpp
 2195   for (const auto &Element : Pipeline) {
 2207   for (const auto &Element : Pipeline) {
 2221   for (const auto &Element : Pipeline) {
 2246   for (const auto &Element : Pipeline) {
lib/ProfileData/Coverage/CoverageMapping.cpp
  190   while (Current != Records.end() && !Filename.empty() &&
  193   if (Current == Records.end())
  245   for (const auto &Region : Record.MappingRegions) {
  256                                           Record.Filenames.end());
  266   for (StringRef Filename : Record.Filenames) {
  283   for (const auto &CoverageReader : CoverageReaders) {
  576       for (const auto &CR : CombinedRegions)
  656   for (unsigned RecordIndex : RecordIndices) {
  681   for (unsigned RecordIndex : RecordIndices) {
  772   for (const auto *LS : LineSegments)
lib/ProfileData/Coverage/CoverageMappingWriter.cpp
   32   for (StringRef Name : Filenames)
   39   for (const auto &Filename : Filenames) {
   59     for (const auto &I : MappingRegions)
   61     for (const auto &I : MappingRegions)
  148   for (const auto &FileID : VirtualFileMapping)
  155   for (const auto &E : MinExpressions) {
lib/ProfileData/InstrProf.cpp
  384       join(NameStrs.begin(), NameStrs.end(), getInstrProfNameSeparator());
  429   for (auto *NameVar : NameVars) {
  965   for (auto &VD : VDs) {
lib/ProfileData/InstrProfReader.cpp
  433     for (uint64_t Count : RawCounts)
lib/Remarks/BitstreamRemarkParser.cpp
  560   for (const BitstreamRemarkParserHelper::Argument &Arg : *Helper.Args) {
lib/Support/CRC.cpp
   77   for (uint8_t Byte : Data) {
lib/Support/CommandLine.cpp
 2480       if (find(Categories, Cat) == Categories.end() && Cat != &GenericCategory)
lib/Support/ConvertUTFWrapper.cpp
   98   const UTF16 *SrcEnd = reinterpret_cast<const UTF16 *>(SrcBytes.end());
lib/Support/Program.cpp
   71   for (const char *A : Args)
lib/Support/SHA1.cpp
  213   for (auto &C : Data)
lib/Support/SourceMgr.cpp
  266     FixIts(Hints.begin(), Hints.end()) {
  276   const char *LineEnd = SourceLine.end();
  280   for (ArrayRef<SMFixIt>::iterator I = FixIts.begin(), E = FixIts.end();
lib/Support/TargetParser.cpp
  110   auto I = std::lower_bound(Table.begin(), Table.end(), Search,
  115   if (I == Table.end())
lib/Support/Unix/Program.inc
   83   for (auto Path : Paths) {
  170   for (StringRef S : Strings)
  483   for (StringRef Arg : Args) {
lib/Support/VirtualFileSystem.cpp
 1992     for (const auto &Entry : Entries.slice(1)) {
lib/Support/raw_ostream.cpp
  457       for (uint8_t Byte : Line) {
lib/TableGen/JSONBackend.cpp
  147     for (const RecordVal &RV : Def.getValues()) {
  159     for (const auto &SuperPair : Def.getSuperClasses())
  169     for (const auto &SuperPair : Def.getSuperClasses()) {
lib/TableGen/Record.cpp
  153   for (Record *R : Classes)
  167                                    UnsortedClasses.end());
  208   for (Record *R : getClasses()) {
  338   for (Init *I : Range)
  355   std::uninitialized_copy(Range.begin(), Range.end(),
  566   for (Init *I : Range)
  586   std::uninitialized_copy(Range.begin(), Range.end(),
  610     for (Init *I : getValues())
  629   for (unsigned Element : Elements) {
  650   for (Init *CurElt : getValues()) {
 1396     for (Record *Rec : RecordType->getClasses()) {
 1423   for (unsigned Bit : Bits) {
 1459   for (unsigned Element : Elements)
 1589   for (Init *I : Args)
 1606   std::uninitialized_copy(Args.begin(), Args.end(),
 1625     for (const RecordVal &Val : Class->getValues())
 1645     for (const auto &SCPair : SCs)
 1668   for (Init *Arg : args()) {
 1688   for (Init *Arg : args())
 1699   for (Init *Arg : args()) {
 1756   while (Case != CondRange.end()) {
 1787   std::uninitialized_copy(CondRange.begin(), CondRange.end(),
 1789   std::uninitialized_copy(ValRange.begin(), ValRange.end(),
 1798   for (const Init *Case : getConds()) {
 1805   for (const Init *Val : getVals()) {
 1839   for (const Init *Case : getConds())
 1843   for (const Init *Val : getVals())
 1851   for (const Init *Case : getConds())
 1855   for (const Init *Val : getVals())
 1885   while (Arg != ArgRange.end()) {
 1886     assert(Name != NameRange.end() && "Arg name underflow!");
 1890   assert(Name == NameRange.end() && "Arg name overflow!");
 1907   std::uninitialized_copy(ArgRange.begin(), ArgRange.end(),
 1909   std::uninitialized_copy(NameRange.begin(), NameRange.end(),
 1921   for (const auto &Arg : args) {
 1944   for (const Init *Arg : getArgs()) {
 1960   for (const Init *Elt : getArgs()) {
 2132     for (const Init *TA : TArgs) {
 2146     for (const auto &SuperPair : SC)
 2151   for (const RecordVal &Val : R.getValues())
 2154   for (const RecordVal &Val : R.getValues())
 2212   for (Init *I : List->getValues()) {
 2240   for (Init *I : List->getValues()) {
 2256   for (Init *I : List->getValues()) {
lib/TableGen/SetTheory.cpp
  316   for (const auto &SCPair : SC) {
lib/TableGen/TGLexer.cpp
   57   std::for_each(Macros.begin(), Macros.end(),
lib/TableGen/TGParser.cpp
   91   for (const RecordVal &RV : R.getValues()) {
  231   for (const RecordVal &Val : SC->getValues())
  277   for (const auto &SCPair : SCs) {
lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp
  520   for (auto Reg : Ord) {
lib/Target/AArch64/AArch64AsmPrinter.cpp
  469     for (const MachineInstr *MI : D.getArgs()) {
lib/Target/AArch64/AArch64CallingConvention.cpp
  146   for (auto Reg : RegList)
lib/Target/AArch64/AArch64ConditionalCompares.cpp
  826   for (MachineBasicBlock *RemovedMBB : Removed) {
  841   for (MachineBasicBlock *RemovedMBB : Removed)
lib/Target/AArch64/AArch64FalkorHWPFFix.cpp
  679   for (MachineBasicBlock *MBB : L.getBlocks())
  713   for (MachineBasicBlock *MBB : L.getBlocks()) {
lib/Target/AArch64/AArch64GenRegisterBankInfo.def
  151   for (const auto &Current : Order) {
lib/Target/AArch64/AArch64ISelLowering.cpp
 6505   const int *FirstWrongElt = std::find_if(FirstRealElt + 1, M.end(),
 6507   if (FirstWrongElt != M.end())
 6860   for (int Val : ShuffleMask) {
 7480   for (SDValue Lane : Op->ops()) {
 8875   for (ShuffleVectorInst *SVI : Shuffles) {
lib/Target/AArch64/AArch64MachineFunctionInfo.h
  275         : Kind(Kind), Args(Args.begin(), Args.end()) {
  291     LOHRelated.insert(Args.begin(), Args.end());
lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  702   for (auto *I : Tys) {
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
 1240   for (const SDUse &U : Op->ops())
lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
 1531   for (const GEPInfo &GEPInfo : AddrInfo) {
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  632   for (Type *ParamTy : FTy->params()) {
lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
  199   for (const auto &Entry : Table) {
  627   for (Register Reg : Regs) {
  964   for (unsigned Op : OpIndices) {
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
  104   for (const BasicBlock *BB : L->getBlocks()) {
lib/Target/AMDGPU/AMDGPUUnifyDivergentExitNodes.cpp
  141   for (BasicBlock *BB : ReturningBlocks) {
  152   for (BasicBlock *BB : ReturningBlocks) {
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
 3490   for (auto Variant : getMatchedVariants()) {
lib/Target/AMDGPU/GCNILPSched.cpp
  307   for (auto SU : BotRoots) {
lib/Target/AMDGPU/GCNIterativeScheduler.cpp
  345   for (auto SU : Schedule) {
lib/Target/AMDGPU/GCNMinRegStrategy.cpp
  242   for (auto SU : TopRoots) {
lib/Target/AMDGPU/R600InstrInfo.cpp
 1193   for (std::pair<unsigned, unsigned> LI : MRI.liveins()) {
lib/Target/AMDGPU/SIFoldOperands.cpp
  309   for (auto Candidate : FoldList) {
lib/Target/AMDGPU/SIFrameLowering.cpp
  304   for (MCPhysReg Reg : AllSGPR128s) {
  367   for (MCPhysReg Reg : AllSGPRs.drop_back(ReservedRegCount)) {
  718          : FuncInfo->getSGPRSpillVGPRs()) {
  877          : FuncInfo->getSGPRSpillVGPRs()) {
 1014   for (auto SSpill : MFI->getSGPRSpillVGPRs())
lib/Target/AMDGPU/SIInsertWaitcnts.cpp
  977       for (const MachineMemOperand *Memop : MI.memoperands()) {
 1012         for (const MachineMemOperand *Memop : MI.memoperands()) {
 1188   for (const MachineMemOperand *Memop : MI.memoperands()) {
lib/Target/AMDGPU/SIInstrInfo.cpp
 6054   for (const MachineMemOperand *MMO : MI.memoperands()) {
lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
  553   for (MachineInstr *MI : InstsToMove) {
  614   for (MachineInstr *InstToMove : InstsToMove) {
lib/Target/AMDGPU/SILowerI1Copies.cpp
  165     for (MachineBasicBlock *MBB : IncomingBlocks) {
  328     for (MachineBasicBlock *MBB : Blocks)
  350     if (llvm::find(Blocks, &MBB) != Blocks.end())
  630       for (MachineBasicBlock *MBB : PIA.predecessors())
lib/Target/AMDGPU/SILowerSGPRSpills.cpp
   97     for (const CalleeSavedInfo &CS : CSI) {
  304       for (auto SSpill : FuncInfo->getSGPRSpillVGPRs())
  307       for (MCPhysReg Reg : FuncInfo->getVGPRSpillAGPRs())
  310       for (MCPhysReg Reg : FuncInfo->getAGPRSpillVGPRs())
lib/Target/AMDGPU/SIMachineScheduler.cpp
 1439       for (const auto &Succ : Block->getSuccs())
 1715   for (const auto &Block : Parent->getSuccs()) {
lib/Target/AMDGPU/SIMemoryLegalizer.cpp
  528   for (const auto &MMO : MI->memoperands()) {
lib/Target/AMDGPU/SIPreAllocateWWMRegs.cpp
  106   for (unsigned PhysReg : RegClassInfo.getOrder(MRI->getRegClass(Reg))) {
lib/Target/AMDGPU/SIRegisterInfo.cpp
  254   for (MCPhysReg Reg : MFI->getAGPRSpillVGPRs())
  257   for (MCPhysReg Reg : MFI->getVGPRSpillAGPRs())
lib/Target/ARC/ARCOptAddrMode.cpp
  346   for (MachineInstr *MI : Uses) {
  365   for (MachineInstr *MI : Uses) {
lib/Target/ARM/ARMBaseRegisterInfo.cpp
  342   for (unsigned Reg : Order) {
lib/Target/ARM/ARMCallingConv.cpp
  262   for (auto Reg : RegList)
lib/Target/ARM/ARMISelLowering.cpp
 7682          I = ShuffleMask.begin(), E = ShuffleMask.end(); I != E; ++I)
16836   for (ShuffleVectorInst *SVI : Shuffles) {
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
  587   for (unsigned Reg : RegClassInfo.getOrder(&RegClass))
  614   for (const std::pair<unsigned, bool> &R : Regs)
  691         for (const std::pair<unsigned, bool> &R : Regs)
  817   for (const std::pair<unsigned, bool> &R : Regs)
lib/Target/ARM/ARMTargetTransformInfo.cpp
  973     for (auto *BB : L->getBlocks()) {
 1038   for (auto *BB : L->getBlocks()) {
lib/Target/ARM/MVETailPredication.cpp
  162   for (auto *BB : L->getBlocks()) {
  293   for (auto *BB : L->getBlocks()) {
lib/Target/Hexagon/HexagonBitTracker.cpp
 1287   for (std::pair<unsigned,unsigned> P : MRI.liveins())
lib/Target/Hexagon/HexagonExpandCondsets.cpp
  735   for (auto &Mo : MI->memoperands())
lib/Target/Hexagon/HexagonFrameLowering.cpp
 1994   for (unsigned Reg : RC->getRawAllocationOrder(MF)) {
 2103           for (auto *Mo : In.memoperands()) {
lib/Target/Hexagon/HexagonHardwareLoops.cpp
 1002   for (unsigned R : CheckRegs)
 1015   for (MachineBasicBlock *MBB : L->getBlocks()) {
 1372     for (MachineBasicBlock *MBB : L->getBlocks()) {
lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp
  786     for (int M : Mask)
  897   for (int Idx : Mask)
  916   for (int Idx : Mask) {
 1153   for (int M : SM.Mask) {
 1391   for (int I : Mask) {
 1456     for (SDValue Op : S->ops()) {
 1954   for (int M : SM.Mask) {
 1992   for (uint8_t C : Data)
 2011   std::vector<int> Mask(SN->getMask().begin(), SN->getMask().end());
lib/Target/Hexagon/HexagonISelLowering.cpp
 1879     if (llvm::find(Tys, ElemTy) != Tys.end()) {
 1934   SmallVector<int,8> Mask(AM.begin(), AM.end());
lib/Target/Hexagon/HexagonISelLoweringHVX.cpp
   72   for (MVT T : LegalV) {
  124   for (MVT T : LegalW) {
  170   for (MVT T : LegalW) {
  184   for (MVT T : LegalV) {
  205   for (const SDValue &Op : Ops)
  327   for (int M : Mask) {
  365     Words.assign(Values.begin(), Values.end());
  414     for (SDValue V : Values) {
  612     for (SDValue V : Values) {
 1057     for (SDValue V : Op.getNode()->ops())
 1101     SmallVector<SDValue,4> SV(U.begin(), U.end());
 1453   for (SDValue A : Op.getNode()->ops()) {
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
 2397   for (auto *BB : L->getBlocks()) {
lib/Target/Hexagon/HexagonSplitDouble.cpp
  155   for (auto &MO : MI->memoperands())
  688   for (auto &MO : MI->memoperands()) {
lib/Target/Hexagon/HexagonStoreWidening.cpp
  193   for (auto &I : MI->memoperands())
lib/Target/Hexagon/HexagonSubtarget.h
  247       for (MVT T : ElemTypes)
lib/Target/Hexagon/HexagonTargetObjectFile.cpp
  300     for (auto &E : STy->elements()) {
lib/Target/Hexagon/RDFGraph.cpp
  897   for (std::pair<unsigned,unsigned> P : MRI.liveins())
lib/Target/Hexagon/RDFRegisters.cpp
   75   for (const uint32_t *RM : TRI.getRegMasks())
lib/Target/Mips/MipsCallLowering.cpp
  679   for (auto &Arg : Args) {
lib/Target/NVPTX/NVPTXISelLowering.cpp
  186     for(auto *EI : STy->elements()) {
lib/Target/PowerPC/PPCFrameLowering.cpp
  352   for (std::pair<unsigned, unsigned> LI : MF->getRegInfo().liveins()) {
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
 5388     for (const SDValue &O : V.getNode()->ops()) {
 6317       for (const SDValue &V : PN->ops()) {
lib/Target/PowerPC/PPCISelLowering.cpp
 1261     for (auto *EltTy : STy->elements()) {
11897       for (const SDUse &O : ChainNext->ops())
lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
 1300       for (SDValue Op : StoredVal->ops())
lib/Target/SystemZ/SystemZISelLowering.cpp
 5552     for (SDValue Op : U->ops())
 6741     for (auto *I : MI.memoperands())
lib/Target/SystemZ/SystemZRegisterInfo.cpp
   66   for (MCPhysReg Reg : Order)
   70   for (MCPhysReg Reg : Order)
  188   for (MCPhysReg OrderReg : Order)
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
  473         for (const Value *A : Args) {
  483         for (const Value *A : Args) {
 1092     for (unsigned Index : Indices)
 1100     for (unsigned Index : Indices) {
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.cpp
  325   for (auto &Ty : List) {
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyTargetStreamer.cpp
   44   for (auto Type : Types) {
  103   for (auto Type : Types) {
lib/Target/WebAssembly/WebAssemblyExceptionInfo.h
   79   block_iterator block_end() const { return getBlocks().end(); }
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
 1464   for (int M : Mask) {
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
  334   for (Type *ParamTy : FTy->params())
lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.cpp
   62   for (auto *Param : Ty->params())
   70   for (MVT Ty : In)
lib/Target/X86/Disassembler/X86Disassembler.cpp
  829   for (const auto &Op : insn.operands) {
lib/Target/X86/X86CallLowering.cpp
  469                              NewRegs.assign(Regs.begin(), Regs.end());
lib/Target/X86/X86CallingConv.cpp
  101   for (auto Reg : RegList) {
lib/Target/X86/X86CmovConversion.cpp
  277   for (auto *MBB : Blocks) {
  425     for (auto *MBB : Blocks) {
lib/Target/X86/X86DomainReassignment.cpp
  486   for (auto *MI : C.instructions())
  503   for (auto *MI : C.instructions())
lib/Target/X86/X86EvexToVex.cpp
  256   if (I == Table.end() || I->EvexOpcode != MI.getOpcode())
lib/Target/X86/X86FloatingPoint.cpp
  600   if (I != Table.end() && I->from == Opcode)
lib/Target/X86/X86ISelDAGToDAG.cpp
 2905   for (SDValue Op : StoredVal->ops())
lib/Target/X86/X86ISelLowering.cpp
 2040     for (auto *EltTy : STy->elements()) {
 3166   return std::is_sorted(ArgLocs.begin(), ArgLocs.end(),
 3372     for (MCPhysReg Reg : ArgGPRs.slice(NumIntRegs)) {
 3380       for (MCPhysReg Reg : ArgXMMs.slice(NumXMMRegs)) {
 3530     for (std::pair<unsigned, unsigned> Pair : MRI.liveins())
 5338   SmallVector<int, 32> TargetMask(Mask.begin(), Mask.end());
 5638     for (SDValue Op : Ops) {
 5983       EltBits.assign(SrcEltBits.begin(), SrcEltBits.end());
 6874       Mask.append(ShuffleMask.begin(), ShuffleMask.end());
 9223   for (SDValue Elt : Op->ops()) {
10371   SmallVector<int, 4> CommutedMask(Mask.begin(), Mask.end());
11040   SmallVector<int, 64> Mask(Original.begin(), Original.end());
12314     SmallVector<int, 8> V1Mask(Mask.begin(), Mask.end());
12458   SmallVector<int, 4> NewMask(Mask.begin(), Mask.end());
12760   SmallVector<int, 4> CommutedMask(Mask.begin(), Mask.end());
13552         TripleInputSum - std::accumulate(TripleInputs.begin(), TripleInputs.end(), 0);
13570           std::count(AToBInputs.begin(), AToBInputs.end(), 2 * ADWord) +
13571           std::count(AToBInputs.begin(), AToBInputs.end(), 2 * ADWord + 1);
13573           std::count(BToBInputs.begin(), BToBInputs.end(), 2 * BDWord) +
13574           std::count(BToBInputs.begin(), BToBInputs.end(), 2 * BDWord + 1);
13672       for (int Input : InPlaceInputs) {
14002     SmallVector<int, 8> MutableMask(Mask.begin(), Mask.end());
14250       for (int I : InPlaceInputs) {
14651     for (int M : Mask)
14790   SmallVector<int, 32> InLaneMask(Mask.begin(), Mask.end());
16977   for (int M : Mask)
17003     for (int M : Mask.slice(0, NumElements / 2))
17072     SmallVector<int, 8> NewMask(OrigMask.begin(), OrigMask.end());
17097   SmallVector<int, 64> ZeroableMask(OrigMask.begin(), OrigMask.end());
17152   SmallVector<int, 64> Mask(OrigMask.begin(), OrigMask.end());
32157     SmallVector<int, 8> TargetMask(Mask.begin(), Mask.end());
32385     Mask = SmallVector<int, 64>(BaseMask.begin(), BaseMask.end());
32821   SmallVector<SDValue, 4> WideInputs(Inputs.begin(), Inputs.end());
32879   SmallVector<int, 64> WideMask(BaseMask.begin(), BaseMask.end());
33065   SmallVector<SDValue, 16> Ops(SrcOps.begin(), SrcOps.end());
33183                                                 SrcNodes.end());
34007   for (int Elt : SVOp->getMask())
36253     for (SDValue Op : Vec->ops())
40107     for (SDValue Op : V->ops()) {
40792       ShuffleMask.append(Mask.begin(), Mask.end());
40820         ShuffleMask.append(Mask.begin(), Mask.end());
45211   for (StringRef Piece : Pieces) {
lib/Target/X86/X86InstrFMA3Info.cpp
  164   assert(I != Table.end() && I->Opcodes[FormIndex] == Opcode &&
lib/Target/X86/X86InstrFoldTables.cpp
 5573   if (Data != Table.end() && Data->KeyOp == RegOp &&
lib/Target/X86/X86InstrInfo.cpp
 5016   for (auto Op : Ops) {
 5198   for (auto Op : Ops) {
 5368   for (MachineMemOperand *MMO : MMOs) {
 5389   for (MachineMemOperand *MMO : MMOs) {
 6542   for (const uint16_t (&Row)[3] : Table)
 6551   for (const uint16_t (&Row)[4] : Table)
lib/Target/X86/X86MCInstLower.cpp
 1648   SmallVector<int, 8> ShuffleMask(Mask.begin(), Mask.end());
lib/Target/X86/X86SelectionDAGInfo.cpp
   40   for (unsigned R : ClobberSet)
lib/Target/X86/X86SpeculativeLoadHardening.cpp
  698   for (const BlockCondInfo &Info : Infos) {
  749           for (X86::CondCode Cond : Conds) {
lib/Target/X86/X86VZeroUpper.cpp
  134   for (std::pair<unsigned, unsigned> LI : MRI.liveins())
lib/TextAPI/MachO/Platform.cpp
   59   for (const auto &Target : Targets)
lib/TextAPI/MachO/Target.cpp
   62   for (const auto &Target : Targets)
   69   for (const auto &Target : Targets)
lib/ToolDrivers/llvm-lib/LibDriver.cpp
   95   for (StringRef Dir : Paths) {
  269   SmallVector<const char *, 20> NewArgs(ArgsArr.begin(), ArgsArr.end());
lib/Transforms/Coroutines/CoroFrame.cpp
 1096   for (auto AI : LocalAllocas) {
lib/Transforms/Coroutines/CoroSplit.cpp
  824   SmallVector<Constant *, 4> Args(Fns.begin(), Fns.end());
 1272       for (auto ResultTy : Shape.getRetconResultTypes())
lib/Transforms/Coroutines/Coroutines.cpp
  216   for (Function *F : NewFuncs) {
  406       auto RI = ResultTys.begin(), RE = ResultTys.end();
lib/Transforms/IPO/ArgumentPromotion.cpp
  969         for (const auto *EltTy : STy->elements()) {
  991         for (const auto *EltTy : STy->elements()) {
lib/Transforms/IPO/Attributor.cpp
  359   for (const Attribute &Attr : DeducedAttrs) {
  447     for (Attribute::AttrKind AK : AKs)
  462     for (Attribute::AttrKind AK : AKs) {
 4369   for (unsigned Opcode : Opcodes) {
lib/Transforms/IPO/FunctionImport.cpp
  254   if (It == CalleeSummaryList.end())
  286   for (auto &VI : Summary.refs()) {
  306     for (auto &RefSummary : VI.getSummaryList())
  357   for (auto &Edge : Summary.calls()) {
  492           for (auto &Edge : ResolvedCalleeSummary->calls()) {
  496           for (auto &Ref : ResolvedCalleeSummary->refs()) {
  750     for (auto &S : VI.getSummaryList())
  794       for (auto &S : VI.getSummaryList()) {
  814     for (auto &S : VI.getSummaryList())
  822     for (auto &Summary : VI.getSummaryList()) {
  832       for (auto Ref : Summary->refs())
  835         for (auto Call : FS->calls())
lib/Transforms/IPO/HotColdSplitting.cpp
  223   for (BasicBlock *BB : Region)
  259   for (BasicBlock *BB : Region) {
  268       if (find(Region, SuccBB) == Region.end()) {
lib/Transforms/IPO/LowerTypeTests.cpp
  287     std::uninitialized_copy(Types.begin(), Types.end(),
  320     std::uninitialized_copy(Targets.begin(), Targets.end(),
  560     for (MDNode *Type : GlobalAndOffset.first->types()) {
  828   for (GlobalTypeMember *G : Globals) {
 1112   for (Metadata *TypeId : TypeIds) {
 1337   for (const auto GTM : Functions) {
 1566   for (GlobalTypeMember *GTM : Functions) {
 1601   for (GlobalTypeMember *GTM : Globals) {
 1602     for (MDNode *Type : GTM->types()) {
 1612   for (ICallBranchFunnel *JT : ICallBranchFunnels) {
 1615     for (GlobalTypeMember *T : JT->targets())
 1847           for (auto &Ref : GVS->refs())
 1873             for (auto &GVS : VI.getSummaryList())
 2061           for (GlobalValue::GUID G : FS->type_tests())
lib/Transforms/IPO/PartialInlining.cpp
  187         : Region(Region.begin(), Region.end()), EntryBlock(EntryBlock),
lib/Transforms/IPO/SampleProfile.cpp
 1046   for (const auto *BB2 : Descendants) {
lib/Transforms/IPO/WholeProgramDevirt.cpp
  143   for (const VirtualCallTarget &Target : Targets) {
  171   for (const VirtualCallTarget &Target : Targets) {
  856     for (auto VTP : VS->vTableFuncs()) {
  991   for (auto &S : TheFn.getSummaryList())
 1110       for (Type *T : CS.getFunctionType()->params())
 1228   for (uint64_t Arg : Args)
 1825         for (FunctionSummary::VFuncId VF : FS->type_test_assume_vcalls()) {
 1830         for (FunctionSummary::VFuncId VF : FS->type_checked_load_vcalls()) {
 1835         for (const FunctionSummary::ConstVCall &VC :
 1843         for (const FunctionSummary::ConstVCall &VC :
 1946       for (FunctionSummary::VFuncId VF : FS->type_test_assume_vcalls()) {
 1951       for (FunctionSummary::VFuncId VF : FS->type_checked_load_vcalls()) {
 1956       for (const FunctionSummary::ConstVCall &VC :
 1964       for (const FunctionSummary::ConstVCall &VC :
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
 1109     for (const auto *EltT : ST->elements()) {
lib/Transforms/Instrumentation/CGProfile.cpp
   63           for (const auto &VD :
lib/Transforms/Instrumentation/GCOVProfiling.cpp
 1213   for (const auto &I : CountersBySP) {
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  943   for (auto &E : Edges) {
 1703   for (const auto &ECI : EdgeCounts)
 1723         std::accumulate(EdgeCounts.begin(), EdgeCounts.end(), (uint64_t)0,
lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
  256            : VDs) { dbgs() << "  (" << VD.Value << "," << VD.Count << ")\n"; });
  279   for (auto &VD : VDs) {
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  730   for (auto I : IndirCalls) {
  746   for (auto I : SwitchTraceTargets) {
  785   for (auto BO : DivTraceTargets) {
  803   for (auto GEP : GepTraceTargets) {
  814   for (auto I : CmpTraceTargets) {
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
  564     for (const Use &ConstU : DeoptBundle->Inputs) {
lib/Transforms/Scalar/GVNSink.cpp
  132     for (BasicBlock *BB : Blocks)
  135     for (BasicBlock *BB : Blocks) {
  268     for (auto *I : Insts)
  599       for (auto *V : MPHI.getValues())
  634                                                                   : Insts) {
  639   for (auto *I : Insts) {
  663   for (auto *I : Insts) {
  701       PHIContents.insert(PHI.getValues().begin(), PHI.getValues().end());
  706   for (auto *V : NewPHI.getValues())
  744     PHIContents.insert(PHI.getValues().begin(), PHI.getValues().end());
  835   for (BasicBlock *BB : Blocks)
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
 1130   for (BasicBlock *BB : OriginalLoop.getBlocks()) {
 1360   for (BasicBlock *BB : BBs)
 1800   for (auto BBI : L->getBlocks())
lib/Transforms/Scalar/InferAddressSpaces.cpp
  653   SetVector<Value *> Worklist(Postorder.begin(), Postorder.end());
  655   for (Value *V : Postorder)
  881   for (Value* V : Postorder) {
  904   for (const WeakTrackingVH &WVH : Postorder) {
lib/Transforms/Scalar/JumpThreading.cpp
 2112     for (auto Pred : Preds)
lib/Transforms/Scalar/LICM.cpp
  353     for (auto *BB : L->getBlocks()) {
 1055     for (auto *BB : L->getBlocks())
 1065   for (auto *BB : L->getBlocks())
 1237       for (auto *BB : CurLoop->getBlocks())
 1757           for (BasicBlock *Pred : PredCache.get(BB))
 2265   for (BasicBlock *BB : CurLoop->getBlocks())
 2320   for (auto *BB : CurLoop->getBlocks())
lib/Transforms/Scalar/LoopDistribute.cpp
  163     for (auto *B : OrigLoop->getBlocks())
  218     for (auto *Block : OrigLoop->getBlocks())
  248     for (auto *BB : getDistributedLoop()->getBlocks())
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  412   for (auto *BB : CurLoop->getBlocks()) {
lib/Transforms/Scalar/LoopPredication.cpp
  496   for (Value *Op : Ops)
  507   for (const SCEV *Op : Ops)
lib/Transforms/Scalar/LoopSimplifyCFG.cpp
  448             for (auto *BB : DL->getBlocks())
lib/Transforms/Scalar/LoopSink.cpp
  224   for (BasicBlock *N : makeArrayRef(SortedBBsToSinkInto).drop_front(1)) {
lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp
  257   for (BasicBlock *BB : SubLoop->getBlocks()) {
lib/Transforms/Scalar/LoopVersioningLICM.cpp
  392   for (auto *Block : CurLoop->getBlocks())
  546   for (auto *Block : CurLoop->getBlocks()) {
  591   for (auto *Block : L->getBlocks()) {
lib/Transforms/Scalar/MergeICmps.cpp
  576     const int size = std::accumulate(Comparisons.begin(), Comparisons.end(), 0,
  639         std::find_if(Comparisons.begin(), Comparisons.end(),
  641     if (ToSplit != Comparisons.end()) {
  647         Comparisons.begin(), Comparisons.end(), 0u,
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
 1278     assert(ValIt != LiveVec.end() && "Val not found in LiveVec!");
 1469       for (Value *Arg : CallArgs)
 1717   for (Value *V : Live)
 1721   for (const auto &Info : Records)
 1740   for (const auto &Info : Records) {
 2207     for (Value *Arg : GetDeoptBundleOperands(Call)) {
lib/Transforms/Scalar/SROA.cpp
  267     Slices.append(NewSlices.begin(), NewSlices.end());
 1984     for (const Slice *S : P.splitSliceTails())
 2122   for (const Slice *S : P.splitSliceTails())
 3726     for (Slice *S : P.splitSliceTails()) {
 4190   for (Slice *S : P.splitSliceTails()) {
 4464   for (Instruction *DeadUser : AS.getDeadUsers()) {
 4476   for (Use *DeadOp : AS.getDeadOperands()) {
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
 1012   for (auto *ExitBB : ExitBlocks) {
 1219   for (auto *ExitBB : ExitBlocks)
 1456     for (auto &VMap : VMaps)
 1685   for (auto *ExitBB : ExitBlocks)
 2220     for (Value *Invariant : Invariants)
 2477   for (auto Candidate : UnswitchCandidates) {
 2948     for (auto *NewL : NewLoops)
lib/Transforms/Scalar/SpeculateAroundPHIs.cpp
  347   for (auto *PN : PNs)
  433   for (auto *PN : PNs) {
  722   for (auto *SpecPN : SpecPNs) {
lib/Transforms/Utils/BasicBlockUtils.cpp
   58   for (auto *BB : BBs) {
   97   SmallPtrSet<BasicBlock *, 4> Dead(BBs.begin(), BBs.end());
  110   for (BasicBlock *BB : BBs)
  468   for (BasicBlock *Pred : Preds) {
  502     for (BasicBlock *Pred : Preds) {
  532   SmallPtrSet<BasicBlock *, 16> PredSet(Preds.begin(), Preds.end());
lib/Transforms/Utils/BuildLibCalls.cpp
  968   Args.insert(Args.end(), VariadicArgs.begin(), VariadicArgs.end());
  978   Args.insert(Args.end(), VariadicArgs.begin(), VariadicArgs.end());
lib/Transforms/Utils/CloneFunction.cpp
  797   for (BasicBlock *BB : OrigLoop->getBlocks()) {
  817   for (BasicBlock *BB : OrigLoop->getBlocks()) {
lib/Transforms/Utils/CodeExtractor.cpp
  203   for (BasicBlock *BB : BBs) {
  510   for (AllocaInst *AI : CEAC.getAllocas()) {
 1023     for (Value *Mem : Objects) {
lib/Transforms/Utils/FunctionImportUtils.cpp
  212           for (auto &S : VI.getSummaryList()) {
lib/Transforms/Utils/InlineFunction.cpp
 1764                                  ParentDeopt->Inputs.end());
 1766                                  ChildOB.Inputs.end());
lib/Transforms/Utils/LCSSA.cpp
  152       for (BasicBlock *Pred : PredCache.get(ExitBB)) {
lib/Transforms/Utils/Local.cpp
 1619   for (auto *DII : DbgUsers) {
lib/Transforms/Utils/LoopUnroll.cpp
  219   for (BasicBlock *BB : L->getBlocks()) {
  588     for (BasicBlock *BB : L->getBlocks())
lib/Transforms/Utils/LoopUnrollAndJam.cpp
  299     for (BasicBlock *BB : L->getBlocks())
lib/Transforms/Utils/LoopUtils.cpp
  123   for (auto *Block : L->getBlocks())
  352   for (StringRef OptionName : FollowupOptions) {
  989   for (auto *V : VL) {
lib/Transforms/Utils/ModuleUtils.cpp
   86   for (auto *V : Values) {
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
  270       : Allocas(Allocas.begin(), Allocas.end()), DT(DT),
lib/Transforms/Utils/SSAUpdaterBulk.cpp
  115     for (BasicBlock *P : PredCache.get(BB)) {
  170       for (BasicBlock *Pred : PredCache.get(PBB))
lib/Transforms/Utils/SimplifyCFG.cpp
 1452   for (auto *I : Insts) {
 1473   for (auto *I : Insts)
 1534       for (auto *I : Insts)
 1550   for (auto *BB : Blocks) {
 1662       for (auto *BB : Blocks) {
 1775     InstructionsToSink.insert((*LRI).begin(), (*LRI).end());
 1782     for (auto *I : *LRI)
lib/Transforms/Utils/SimplifyLibCalls.cpp
   82     for (auto Param : FuncTy->params()) {
  196   for (unsigned ArgNo : ArgNos) {
  223   for (unsigned ArgNo : ArgNos) {
lib/Transforms/Utils/ValueMapper.cpp
  895     for (Type *Ty : FTy->params())
  977   for (auto *V : NewMembers) {
 1024   AppendingInits.append(NewMembers.begin(), NewMembers.end());
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
  284   SmallVector<Value *, 8> VL(IL.begin(), IL.end());
  570   for (Instruction *I : Chain) {
  608     for (Instruction *I : Chain) {
  945   for (Instruction *I : Chain) {
  966     InstructionsProcessed->insert(Chain.begin(), Chain.end());
  973     InstructionsProcessed->insert(Chain.begin(), Chain.end());
 1012     for (Instruction *I : Chain)
 1018   InstructionsProcessed->insert(Chain.begin(), Chain.end());
 1096   for (const auto &V : Chain) {
 1117     InstructionsProcessed->insert(Chain.begin(), Chain.end());
 1124     InstructionsProcessed->insert(Chain.begin(), Chain.end());
 1161   InstructionsProcessed->insert(Chain.begin(), Chain.end());
 1183     for (Instruction *I : Chain)
lib/Transforms/Vectorize/LoopVectorize.cpp
  916   for (Value *V : To) {
lib/Transforms/Vectorize/SLPVectorizer.cpp
  202   for (Value *i : VL)
 1200         return std::equal(VL.begin(), VL.end(), Scalars.begin());
 1203                  VL.begin(), VL.end(), ReuseShuffleIndices.begin(),
 1373       for (unsigned ReorderIdx : ReorderIndices)
 1394     Last->Scalars.insert(Last->Scalars.begin(), VL.begin(), VL.end());
 1397                                      ReuseShuffleIndices.end());
 1416       MustGather.insert(VL.begin(), VL.end());
 2092   for (auto *V : AV) {
 2208   for (Value *V : VL) {
 2234   for (Value *V : VL) {
 2249   for (Value *V : VL) {
 2274   for (Value *V : VL) {
 2343         for (Value *j : VL)
 2420       for (Value *V : VL) {
 2492       for (Value *V : VL) {
 2511         for (Value *V : VL)
 2524       for (Value *V : VL) {
 2549         for (Value *V : VL) {
 2605         for (Value *j : VL)
 2614       for (Value *V : VL) {
 2627       for (Value *V : VL) {
 2640       for (Value *V : VL) {
 2659         for (Value *V : VL)
 2682       for (Value *V : VL)
 2707       for (Value *V : VL) {
 2755         for (Value *V : VL) {
 2792         for (Value *V : VL)
 2826     for (const auto *Ty : ST->elements())
 2942         for (auto *V : VL) {
 2986         for (Value *V : VL) {
 3238         for (Value *V : VL) {
 3244       for (Value *V : VL) {
 3685     for (Value *V : VL) {
 4493   for (Value *V : VL) {
 4498   for (Value *V : VL) {
 5529   for (Value *V : VL) {
 7048       SetVector<Value *> Candidates(GEPList.begin(), GEPList.end());
lib/Transforms/Vectorize/VPlan.h
  528     for (auto *Pred : NewPreds)
lib/Transforms/Vectorize/VPlanSLP.cpp
   62     for (VPValue *V : Operands) {
  127           std::find(Operands.begin(), Operands.end(), VPI) != Operands.end())
  127           std::find(Operands.begin(), Operands.end(), VPI) != Operands.end())
  163   for (VPValue *V : Values) {
  349   for (auto Op : Values) {
  370     for (auto *V : Values) {
  439       for (VPValue *V : Values)
lib/Transforms/Vectorize/VPlanValue.h
  138     for (VPValue *Operand : Operands)
tools/bugpoint/OptimizerDriver.cpp
  225   Args.append(ExtraArgs.begin(), ExtraArgs.end());
tools/bugpoint/ToolRunner.cpp
   86     for (StringRef Arg : Args)
  110   for (StringRef Arg : Args)
tools/clang/include/clang/AST/ASTContext.h
  617             ->end();
tools/clang/include/clang/AST/ASTNodeTraverser.h
  250     for (const auto &TA : TALI->arguments())
  306     for (const QualType &PT : T->getParamTypes())
  361       for (const auto *Parameter : D->parameters())
  386     for (const auto *B : D->bindings())
  554       for (const ParmVarDecl *Parameter : D->parameters())
  575     for (const auto &I : D->parameters())
  578     for (const auto &I : D->captures())
  589     for (const auto *A : Node->getAttrs())
  602     for (const auto *C : Node->clauses())
  634       for (const auto &A : Node->getPartialArguments())
  647     for (const auto &TArg : TA.pack_elements())
tools/clang/include/clang/AST/AttrIterator.h
  108   return specific_attr_iterator<SpecificAttr, Container>(container.end());
tools/clang/include/clang/AST/Comment.h
  577     return reinterpret_cast<child_iterator>(Content.end());
  915     return reinterpret_cast<child_iterator>(Lines.end());
 1116     return reinterpret_cast<child_iterator>(Blocks.end());
tools/clang/include/clang/AST/Decl.h
 2341   param_const_iterator param_end() const { return parameters().end(); }
 2927   chain_iterator chain_end() const { return chain().end(); }
 4059   param_const_iterator param_end() const { return parameters().end(); }
 4088   capture_const_iterator capture_end() const { return captures().end(); }
tools/clang/include/clang/AST/DeclBase.h
 1237   iterator end() const { return iterator(Result.end(), Single); }
tools/clang/include/clang/AST/DeclCXX.h
 3443     std::uninitialized_copy(UsingDecls.begin(), UsingDecls.end(),
 3788     std::uninitialized_copy(Bindings.begin(), Bindings.end(),
 3790     for (auto *B : Bindings)
tools/clang/include/clang/AST/DeclOpenMP.h
   86   varlist_const_iterator varlist_end() const { return getVars().end(); }
  402     return getClauses().end();
  500   varlist_const_iterator varlist_end() const { return getVars().end(); }
  514     return getClauses().end();
tools/clang/include/clang/AST/DeclTemplate.h
  599     for (const TemplateArgument &TemplateArg : TemplateArgs)
 1892     for (const TemplateArgument &TemplateArg : TemplateArgs)
 2734     for (const TemplateArgument &TemplateArg : TemplateArgs)
tools/clang/include/clang/AST/ExprCXX.h
 4136     std::uninitialized_copy(PartialArgs.begin(), PartialArgs.end(), Args);
tools/clang/include/clang/AST/OpenMPClause.h
  216     std::copy(VL.begin(), VL.end(),
  239   varlist_const_iterator varlist_end() const { return getVarRefs().end(); }
 1955                                       getPrivateCopies().end());
 2042     return llvm::makeArrayRef(getPrivateCopies().end(), varlist_size());
 2082                                       getPrivateCopies().end());
 2094     return inits_const_range(getInits().begin(), getInits().end());
 2194     return llvm::makeArrayRef(getPrivateCopies().end(), varlist_size());
 2208     return llvm::makeArrayRef(getSourceExprs().end(), varlist_size());
 2221     return llvm::makeArrayRef(getDestinationExprs().end(), varlist_size());
 2273                                    getPrivateCopies().end());
 2283                                    getSourceExprs().end());
 2292                                    getDestinationExprs().end());
 2302                                    getAssignmentOps().end());
 2488     return llvm::makeArrayRef(getPrivates().end(), varlist_size());
 2503     return llvm::makeArrayRef(getLHSExprs().end(), varlist_size());
 2517     return llvm::makeArrayRef(getRHSExprs().end(), varlist_size());
 2583     return helper_expr_const_range(getPrivates().begin(), getPrivates().end());
 2591     return helper_expr_const_range(getLHSExprs().begin(), getLHSExprs().end());
 2599     return helper_expr_const_range(getRHSExprs().begin(), getRHSExprs().end());
 2608                                    getReductionOps().end());
 2723     return llvm::makeArrayRef(getPrivates().end(), varlist_size());
 2737     return llvm::makeArrayRef(getLHSExprs().end(), varlist_size());
 2751     return llvm::makeArrayRef(getRHSExprs().end(), varlist_size());
 2817     return helper_expr_const_range(getPrivates().begin(), getPrivates().end());
 2825     return helper_expr_const_range(getLHSExprs().begin(), getLHSExprs().end());
 2833     return helper_expr_const_range(getRHSExprs().begin(), getRHSExprs().end());
 2842                                    getReductionOps().end());
 2954     return llvm::makeArrayRef(getPrivates().end(), varlist_size());
 2968     return llvm::makeArrayRef(getLHSExprs().end(), varlist_size());
 2982     return llvm::makeArrayRef(getRHSExprs().end(), varlist_size());
 2993     return llvm::makeArrayRef(getReductionOps().end(), varlist_size());
 3062     return helper_expr_const_range(getPrivates().begin(), getPrivates().end());
 3070     return helper_expr_const_range(getLHSExprs().begin(), getLHSExprs().end());
 3078     return helper_expr_const_range(getRHSExprs().begin(), getRHSExprs().end());
 3087                                    getReductionOps().end());
 3097                                    getTaskgroupDescriptors().end());
 3206     return llvm::makeArrayRef(getPrivates().end(), varlist_size());
 3214     return llvm::makeArrayRef(getInits().end(), varlist_size());
 3222     return llvm::makeArrayRef(getUpdates().end(), varlist_size());
 3230     return llvm::makeArrayRef(getFinals().end() + 2, varlist_size() + 1);
 3296   const Expr *getStep() const { return *(getFinals().end()); }
 3302   const Expr *getCalcStep() const { return *(getFinals().end() + 1); }
 3325     return privates_const_range(getPrivates().begin(), getPrivates().end());
 3338     return inits_const_range(getInits().begin(), getInits().end());
 3351     return updates_const_range(getUpdates().begin(), getUpdates().end());
 3364     return finals_const_range(getFinals().begin(), getFinals().end());
 3379     return finals_const_range(getUsedExprs().begin(), getUsedExprs().end());
 3572     return llvm::makeArrayRef(getSourceExprs().end(), varlist_size());
 3586     return llvm::makeArrayRef(getDestinationExprs().end(), varlist_size());
 3630                                    getSourceExprs().end());
 3639                                    getDestinationExprs().end());
 3649                                    getAssignmentOps().end());
 3736     return llvm::makeArrayRef(getSourceExprs().end(), varlist_size());
 3750     return llvm::makeArrayRef(getDestinationExprs().end(), varlist_size());
 3793                                    getSourceExprs().end());
 3802                                    getDestinationExprs().end());
 3812                                    getAssignmentOps().end());
 4356     std::copy(UDs.begin(), UDs.end(), getUniqueDeclsRef().begin());
 4380     std::copy(DNLs.begin(), DNLs.end(), getDeclNumListsRef().begin());
 4406     std::copy(CLSs.begin(), CLSs.end(), getComponentListSizesRef().begin());
 4434     std::copy(Components.begin(), Components.end(), getComponentsRef().begin());
 4460       for (auto DI = Declarations.begin(), DE = Declarations.end(); DI != DE;
 4508         CI = std::copy(C.begin(), C.end(), CI);
 4546     std::copy(DMDs.begin(), DMDs.end(), getUDMapperRefs().begin());
 4607           ListSizeEnd(CumulativeListSizes.end()), End(Components.end()) {
 4607           ListSizeEnd(CumulativeListSizes.end()), End(Components.end()) {
 4625       for (; DeclCur != UniqueDecls.end(); ++DeclCur, ++NumListsCur) {
 4640       if (ListSizeCur == CumulativeListSizes.end()) {
 4713         MappableExprComponentListRef(getComponentsRef().end(),
 4714                                      getComponentsRef().end()));
 4742     return const_all_decls_range(A.begin(), A.end());
 4751     return const_all_num_lists_range(A.begin(), A.end());
 4760     return const_all_lists_sizes_range(A.begin(), A.end());
 4769     return const_all_components_range(A.begin(), A.end());
 6057     return llvm::makeArrayRef(getPrivateCopies().end(), varlist_size());
 6102                                       getPrivateCopies().end());
 6115     return inits_const_range(getInits().begin(), getInits().end());
tools/clang/include/clang/AST/RecursiveASTVisitor.h
 1013   for (const auto &E : T->exceptions()) {
 1094   for (auto typeArg : T->getTypeArgsAsWritten()) {
 1253   for (const auto &E : T->exceptions()) {
 1423   for (const auto &I : D->captures()) {
 1554   for (ParmVarDecl *Parameter : D->parameters()) {
 1952   for (auto *Binding : D->bindings()) {
 2463     for (Decl *D : S->getExplicitTemplateParameters()) {
 2476     for (const auto &E : T->exceptions())
 2698   for (auto *C : S->clauses()) {
tools/clang/include/clang/AST/Stmt.h
 1777     std::copy(Attrs.begin(), Attrs.end(), getAttrArrayPtr());
tools/clang/include/clang/AST/StmtOpenMP.h
  116           End(Clauses.end()) {
  145             used_clauses_child_iterator(llvm::makeArrayRef(Clauses.end(), 0))};
  169           End(Clauses.end()) {
  190                 llvm::makeArrayRef(Clauses.end(), 0))};
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
  688   return matchesFirstInRange(InnerMatcher, List.begin(), List.end(), Finder,
 6718                                     Clauses.end(), Finder, Builder);
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h
  104     for (const ArgT &Arg : Args)
 1391                                            PI(InnerMatchers.end()));
tools/clang/include/clang/Analysis/AnyCall.h
  152   param_const_iterator param_end() const { return parameters().end(); }
tools/clang/include/clang/Basic/Diagnostic.h
 1259   for (SourceRange R : Ranges)
 1278   for (const FixItHint &Hint : Hints)
tools/clang/include/clang/Basic/SourceManager.h
  794     StoredModuleBuildStack.append(stack.begin(), stack.end());
tools/clang/include/clang/Basic/TargetInfo.h
  904       for (int Exact : Exacts)
tools/clang/include/clang/CodeGen/CGFunctionInfo.h
  222     for (auto eltType : coerceToType->elements()) {
  673       for (auto paramInfo : getExtParameterInfos())
  700       for (auto paramInfo : paramInfos)
  705            i = argTypes.begin(), e = argTypes.end(); i != e; ++i) {
tools/clang/include/clang/CodeGen/ConstantInitBuilder.h
  216     Builder.Buffer.append(values.begin(), values.end());
tools/clang/include/clang/Index/DeclOccurrence.h
   31         Relations(Relations.begin(), Relations.end()) {}
tools/clang/include/clang/Lex/HeaderSearch.h
  292     SystemHeaderPrefixes.assign(P.begin(), P.end());
tools/clang/include/clang/Lex/MacroInfo.h
  173     std::copy(List.begin(), List.end(), ParameterList);
  510     std::copy(Overrides.begin(), Overrides.end(),
  603     for (auto *MM : getModuleMacros())
tools/clang/include/clang/Lex/Preprocessor.h
  464       ConditionalStack.append(s.begin(), s.end());
  687                                     Overrides.begin(), Overrides.end());
tools/clang/include/clang/Lex/PreprocessorLexer.h
  176     ConditionalStack.append(CL.begin(), CL.end());
tools/clang/include/clang/Sema/ParsedTemplate.h
  233       std::uninitialized_copy(TemplateArgs.begin(), TemplateArgs.end(),
tools/clang/include/clang/Sema/TypoCorrection.h
  174     CorrectionDecls.insert(CorrectionDecls.begin(), Decls.begin(), Decls.end());
tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
  205     for (const auto &R : Ranges)
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
  451     return llvm::map_iterator(parameters().end(), GetTypeFn());
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h
  744   for (const auto *I : D->chain()) {
tools/clang/include/clang/Tooling/Refactoring/ASTSelection.h
  139       : SelectedNode(SelectedNode), Parents(Parents.begin(), Parents.end()),
tools/clang/include/clang/Tooling/Refactoring/RefactoringActionRulesInternal.h
   77       for (const auto &Option : Requirement.getRefactoringOptions())
tools/clang/lib/ARCMigrate/ARCMT.cpp
   67          llvm::find(IDs, I->getID()) != IDs.end()) &&
tools/clang/lib/ARCMigrate/ObjCMT.cpp
  133     for (const std::string &Val : WhiteList)
 2183         I = Edits.begin(), E = Edits.end(); I != E; ++I) {
 2252          I = remapFiles.begin(), E = remapFiles.end(); I != E; ++I) {
tools/clang/lib/ARCMigrate/PlistReporter.cpp
   46          I = diags.begin(), E = diags.end(); I != E; ++I) {
   82          DI = diags.begin(), DE = diags.end(); DI != DE; ++DI) {
  108       for (auto &R : D.getRanges()) {
tools/clang/lib/ARCMigrate/TransBlockObjCVariable.cpp
   80     for (const auto &I : block->captures()) {
tools/clang/lib/ARCMigrate/TransformActions.cpp
  378   data.DiagIDs.append(IDs.begin(), IDs.end());
tools/clang/lib/AST/ASTContext.cpp
  484   for (const Decl *D : Decls) {
 1105                                  IDs.begin(), IDs.end());
 3745     for (QualType ET : ESI.Exceptions) {
 3836         for (QualType ET : EPI.ExceptionSpec.Exceptions) {
 4088   for (const auto &P : ArgPack.pack_elements()) {
 4180   for (const TemplateArgumentLoc &Arg : Args.arguments())
 4188   for (const TemplateArgument &Arg : Args)
 4250   for (const TemplateArgument &Arg : Args)
 4593                                           effectiveTypeArgs.end(),
 4604       for (auto typeArg : effectiveTypeArgs)
 4614       canonProtocolsVec.append(protocols.begin(), protocols.end());
 4663       protocolsVec.append(protocols.begin(), protocols.end());
 6339   for (auto PI : Decl->parameters()) {
 6354   for (auto PVDecl : Decl->parameters()) {
 6383   for (auto PI : Decl->parameters()) {
 6397   for (auto PVDecl : Decl->parameters()) {
10091     for (const auto *BD : DD->bindings())
tools/clang/lib/AST/ASTImporter.cpp
  634           InContainer.begin(), InContainer.end(), OutContainer.begin());
 1206   for (const auto &E : T->exceptions()) {
 1508   for (auto TypeArg : T->getTypeArgsAsWritten()) {
 1973   for (const auto &FromLoc : Container) {
 3496   for (auto *PI : D->chain())
 3976   for (auto *FromP : D->parameters()) {
tools/clang/lib/AST/Decl.cpp
  322   for (const TemplateArgument &Arg : Args) {
 1927     std::copy(TPLists.begin(), TPLists.end(), TemplParamLists);
 3199     std::copy(NewParamInfo.begin(), NewParamInfo.end(), ParamInfo);
 3212   for (auto *Param : parameters())
 4474     std::copy(NewParamInfo.begin(), NewParamInfo.end(), ParamInfo);
 4492   for (const auto &I : captures())
 4846   std::uninitialized_copy(IdentifierLocs.begin(), IdentifierLocs.end(),
tools/clang/lib/AST/DeclBase.cpp
  149     for (auto *Binding : DD->bindings()) {
 1259   for (auto *D : Decls) {
 1374     for (auto *D : Decls) {
tools/clang/lib/AST/DeclCXX.cpp
 3048   for (const auto *B : bindings()) {
tools/clang/lib/AST/DeclObjC.cpp
  876   std::copy(Params.begin(), Params.end(), getParams());
  877   std::copy(SelLocs.begin(), SelLocs.end(), getStoredSelLocs());
 1430   std::copy(typeParams.begin(), typeParams.end(), begin());
tools/clang/lib/AST/DeclOpenMP.cpp
   52   std::uninitialized_copy(VL.begin(), VL.end(), getTrailingObjects<Expr *>());
   88   std::uninitialized_copy(VL.begin(), VL.end(), getTrailingObjects<Expr *>());
   94   std::uninitialized_copy(CL.begin(), CL.end(),
  126   std::uninitialized_copy(CL.begin(), CL.end(),
  215   std::uninitialized_copy(CL.begin(), CL.end(), Clauses.data());
tools/clang/lib/AST/DeclPrinter.cpp
 1275   for (const auto *PI : OMD->parameters()) {
tools/clang/lib/AST/DeclTemplate.cpp
   92   for (const NamedDecl *P : asArray()) {
  650     std::uninitialized_copy(Expansions.begin(), Expansions.end(),
  710   std::uninitialized_copy(Args.begin(), Args.end(),
 1149   for (const TemplateArgumentLoc &Loc : ArgsInfo.arguments())
tools/clang/lib/AST/Expr.cpp
 2238   InitExprs.insert(C, InitExprs.end(), initExprs.begin(), initExprs.end());
 4151   std::copy(AssocExprs.begin(), AssocExprs.end(),
 4153   std::copy(AssocTypes.begin(), AssocTypes.end(),
 4175   std::copy(AssocExprs.begin(), AssocExprs.end(),
 4177   std::copy(AssocTypes.begin(), AssocTypes.end(),
tools/clang/lib/AST/ExprCXX.cpp
 1784   std::uninitialized_copy(Converted.begin(), Converted.end(),
 1788   for (const TemplateArgumentLoc& LocInfo : ArgsAsWritten->arguments()) {
tools/clang/lib/AST/ExprConstant.cpp
  291         Entries.insert(Entries.end(), VEntries.begin(), VEntries.end());
 1653       Path.insert(Path.end(), P.begin(), P.end());
 2740   for (const auto *C : IFD->chain())
 4319     for (auto *BD : DD->bindings())
 5660       for (auto *C : IndirectFieldChain) {
10253       for (auto *FD : IFD->chain()) {
14350   for (ArrayRef<const Expr*>::iterator I = Args.begin(), E = Args.end();
tools/clang/lib/AST/ExprObjC.cpp
  201       std::copy(SelLocs.begin(), SelLocs.end(), getStoredSelLocs());
tools/clang/lib/AST/ExternalASTMerger.cpp
  413   for (const ImporterSource &S : Sources) {
  424     for (const ImporterSource &S : Sources)
  431                        for (const ImporterSource &S : Sources) {
  441     for (const ImporterSource &S : Sources) {
tools/clang/lib/AST/Interp/ByteCodeEmitter.cpp
   41   for (const ParmVarDecl *PD : F->parameters()) {
tools/clang/lib/AST/Interp/State.cpp
   71                                  Diags.end());
tools/clang/lib/AST/ItaniumCXXABI.cpp
   73   Iterator end() const { return Iterator(Bindings.end()); }
tools/clang/lib/AST/ItaniumMangle.cpp
 1274       for (auto *BD : DD->bindings())
 1776   for (auto *D : Lambda->getLambdaExplicitTemplateParameters())
 2825       for (auto ExceptTy : T->exceptions())
 3280     for (auto typeArg : T->getTypeArgs())
 3721     for (const auto &Designator : DIE->designators()) {
 4319       for (const auto &A : SPE->getPartialArguments())
 4614     for (const auto &P : A.pack_elements())
tools/clang/lib/AST/JSONNodeDumper.cpp
  515     for (QualType QT : E.ExceptionSpec.Exceptions)
 1329       for (const ExprWithCleanups::CleanupObject &CO : EWC->getObjects())
 1379       for (const TemplateArgumentLoc &TAL : DSME->template_arguments())
tools/clang/lib/AST/MicrosoftMangle.cpp
 1530       for (const TemplateArgument &PA : TemplateArgs)
 2799     for (const auto &TA : T->getTypeArgs())
 3111   for (const CXXRecordDecl *RD : BasePath)
 3128   for (const CXXRecordDecl *RD : BasePath)
tools/clang/lib/AST/NSAPI.cpp
  598            I = Ids.begin(), E = Ids.end(); I != E; ++I)
tools/clang/lib/AST/ODRHash.cpp
  182       for (auto SubTA : TA.pack_elements()) {
  193   for (auto *ND : TPL->asArray()) {
  539     for (const TemplateArgument &TA : SpecializationArgs->asArray()) {
  561   for (auto Param : Function->parameters())
  644     for (const TemplateArgument &TA : List.asArray())
  891     for (auto ParamType : T->getParamTypes())
  918     for (auto Arg : TypeArgs) {
  924     for (auto Protocol : Protocols) {
  942     for (auto Protocol : Protocols) {
 1006     for (const auto &TA : T->template_arguments()) {
 1071     for (const auto &TA : T->template_arguments()) {
tools/clang/lib/AST/OpenMPClause.cpp
  319   std::copy(VL.begin(), VL.end(), varlist_end());
  344   std::copy(VL.begin(), VL.end(), varlist_end());
  350   std::copy(VL.begin(), VL.end(), getPrivateCopies().end());
  377   std::copy(PrivateCopies.begin(), PrivateCopies.end(), varlist_end());
  384   std::copy(SrcExprs.begin(), SrcExprs.end(), getPrivateCopies().end());
  391   std::copy(DstExprs.begin(), DstExprs.end(), getSourceExprs().end());
  398   std::copy(AssignmentOps.begin(), AssignmentOps.end(),
  445   std::copy(PL.begin(), PL.end(), varlist_end());
  451   std::copy(IL.begin(), IL.end(), getPrivates().end());
  457   std::copy(UL.begin(), UL.end(), getInits().end());
  463   std::copy(FL.begin(), FL.end(), getUpdates().end());
  470   std::copy(UE.begin(), UE.end(), getFinals().end() + 2);
  540   std::copy(SrcExprs.begin(), SrcExprs.end(), varlist_end());
  547   std::copy(DstExprs.begin(), DstExprs.end(), getSourceExprs().end());
  554   std::copy(AssignmentOps.begin(), AssignmentOps.end(),
  581   std::copy(SrcExprs.begin(), SrcExprs.end(), varlist_end());
  588   std::copy(DstExprs.begin(), DstExprs.end(), getSourceExprs().end());
  595   std::copy(AssignmentOps.begin(), AssignmentOps.end(),
  622   std::copy(Privates.begin(), Privates.end(), varlist_end());
  629   std::copy(LHSExprs.begin(), LHSExprs.end(), getPrivates().end());
  636   std::copy(RHSExprs.begin(), RHSExprs.end(), getLHSExprs().end());
  643   std::copy(ReductionOps.begin(), ReductionOps.end(), getRHSExprs().end());
  675   std::copy(Privates.begin(), Privates.end(), varlist_end());
  682   std::copy(LHSExprs.begin(), LHSExprs.end(), getPrivates().end());
  689   std::copy(RHSExprs.begin(), RHSExprs.end(), getLHSExprs().end());
  696   std::copy(ReductionOps.begin(), ReductionOps.end(), getRHSExprs().end());
  728   std::copy(Privates.begin(), Privates.end(), varlist_end());
  735   std::copy(LHSExprs.begin(), LHSExprs.end(), getPrivates().end());
  742   std::copy(RHSExprs.begin(), RHSExprs.end(), getLHSExprs().end());
  749   std::copy(ReductionOps.begin(), ReductionOps.end(), getRHSExprs().end());
  757   std::copy(TaskgroupDescriptors.begin(), TaskgroupDescriptors.end(),
  874   auto It = std::next(getVarRefs().end(), NumLoop);
  881   for (auto &C : ComponentLists)
  890   for (const ValueDecl *D : Declarations) {
 1053   std::copy(VL.begin(), VL.end(), varlist_end());
 1059   std::copy(VL.begin(), VL.end(), getPrivateCopies().end());
tools/clang/lib/AST/RecordLayout.cpp
   39   FieldOffsets.append(Ctx, fieldoffsets.begin(), fieldoffsets.end());
   65   FieldOffsets.append(Ctx, fieldoffsets.begin(), fieldoffsets.end());
tools/clang/lib/AST/RecordLayoutBuilder.cpp
 3171     for (const NamedDecl *ND : IFD->chain())
tools/clang/lib/AST/Stmt.cpp
  315   std::copy(Stmts.begin(), Stmts.end(), body_begin());
  810   std::copy(exprs.begin(), exprs.end(), Exprs);
  813   std::copy(asmtoks.begin(), asmtoks.end(), AsmToks);
  816   std::transform(constraints.begin(), constraints.end(), Constraints,
  823   std::transform(clobbers.begin(), clobbers.end(), Clobbers,
 1232   std::copy(Captures.begin(), Captures.end(), Buffer);
tools/clang/lib/AST/StmtCXX.cpp
   44   std::copy(handlers.begin(), handlers.end(), Stmts + 1);
  125   std::copy(Args.ParamMoves.begin(), Args.ParamMoves.end(),
tools/clang/lib/AST/StmtOpenMP.cpp
   22   std::copy(Clauses.begin(), Clauses.end(), getClauses().begin());
   47   std::copy(A.begin(), A.end(), getCounters().begin());
   54   std::copy(A.begin(), A.end(), getPrivateCounters().begin());
   60   std::copy(A.begin(), A.end(), getInits().begin());
   66   std::copy(A.begin(), A.end(), getUpdates().begin());
   72   std::copy(A.begin(), A.end(), getFinals().begin());
tools/clang/lib/AST/StmtPrinter.cpp
  234   for (const auto *Attr : Node->getAttrs()) {
  646   for (auto *Clause : Clauses)
 1799     for (const auto &P : Pack.pack_elements()) {
tools/clang/lib/AST/StmtProfile.cpp
  779   for (ArrayRef<OMPClause *>::iterator I = Clauses.begin(), E = Clauses.end();
 1241   for (const DesignatedInitExpr::Designator &D : S->designators()) {
 1864     for (const auto &TA : Args)
 2065     for (const auto &P : Arg.pack_elements())
tools/clang/lib/AST/TemplateBase.cpp
  146     for (const auto &P : pack_elements())
  185     for (const auto &P : pack_elements())
  242     for (const auto &P : pack_elements())
  443     for (const auto &P : pack_elements()) {
tools/clang/lib/AST/TextNodeDumper.cpp
  242     for (Module *M : D->getASTContext().getModulesWithMergedDefinition(
 1266   for (const auto *Child : D->chain())
 1406   for (Decl *InitD :
tools/clang/lib/AST/Type.cpp
  684   for (auto typeArg : typeArgs) {
  975     for (auto paramType : T->getParamTypes()) {
  991       for (auto exceptionType : info.ExceptionSpec.Exceptions) {
 1131     for (auto typeArg : T->getTypeArgsAsWritten()) {
 1270     for (auto paramType : funcProtoType->getParamTypes()) {
 1287       for (auto exceptionType : info.ExceptionSpec.Exceptions) {
 1319       for (auto typeArg : objcObjectType->getTypeArgsAsWritten()) {
 2713   for (const TemplateArgument &Arg : Args) {
 2731   for (const TemplateArgument &Arg : Args)
 2997     for (QualType ExceptionType : epi.ExceptionSpec.Exceptions) {
 3073   for (QualType ET : exceptions())
 3085   for (QualType ET : exceptions())
 3168     for (QualType Ex : epi.ExceptionSpec.Exceptions)
 3409   for (const auto &P : ArgPack.pack_elements())
 3423   for (const TemplateArgumentLoc &ArgLoc : Args) {
 3456   for (const TemplateArgument &Arg : Args) {
 3488   for (const TemplateArgument &Arg : Args)
 3515   for (auto typeArg : typeArgs)
 3518   for (auto proto : protocols)
 3534   for (auto proto : protocols)
tools/clang/lib/AST/TypePrinter.cpp
 1607     for (auto typeArg : T->getTypeArgsAsWritten()) {
 1686   for (const auto &Arg : Args) {
tools/clang/lib/AST/VTableBuilder.cpp
 3218   for (const CXXRecordDecl *Decl : B) {
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
  289   for (const DynTypedMatcher &InnerMatcher : InnerMatchers) {
  302   for (const DynTypedMatcher &InnerMatcher : InnerMatchers) {
  317   for (const DynTypedMatcher &InnerMatcher : InnerMatchers) {
  330   for (auto *Name : NameRefs)
  406     for (StringRef Name : Names)
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h
  237   for (const ast_type_traits::ASTNodeKind &NodeKind : RetKinds) {
  272         RetKinds(RetKinds.begin(), RetKinds.end()),
  273         ArgKinds(ArgKinds.begin(), ArgKinds.end()) {}
tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
  570   for (const auto &CtxEntry : Context) {
  600     for (const ArgKind& Kind : AcceptedTypes) {
tools/clang/lib/ASTMatchers/Dynamic/VariantValue.cpp
   67   for (const auto &InnerMatcher : InnerMatchers) {
  431   for (const ArgKind& Kind : Kinds) {
tools/clang/lib/Analysis/AnalysisDeclContext.cpp
  153     for (const auto &I : BD->captures()) {
  640   for (const auto &CI : BD->captures()) {
tools/clang/lib/Analysis/CFG.cpp
 3215   for (const BlockDecl::Capture &CI : E->getBlockDecl()->captures()) {
tools/clang/lib/Analysis/Consumed.cpp
 1324   for (const auto *PI : D->parameters())
tools/clang/lib/Analysis/ExprMutationAnalyzer.cpp
   88   for (const auto &Nodes : Matches) {
  131   for (const auto &Finder : Finders) {
  442       for (const ParmVarDecl *Parm : Ctor->parameters()) {
tools/clang/lib/Analysis/LiveVariables.cpp
  121     for (const BindingDecl *BD : DD->bindings())
  425       for (const auto *BD : DD->bindings())
tools/clang/lib/Analysis/PathDiagnostic.cpp
  181         for (const auto &I : Ranges) {
 1081   for (const auto &I : Ranges) {
tools/clang/lib/Analysis/RetainSummaryManager.cpp
  207   for (ParmVarDecl *Param : MD->parameters()) {
tools/clang/lib/Analysis/ThreadSafety.cpp
 2024   for (auto Arg = ArgBegin; Param != Params.end() && Arg != ArgEnd;
tools/clang/lib/Analysis/ThreadSafetyCommon.cpp
  829   for (auto *Pm : Parms) {
tools/clang/lib/Analysis/ThreadSafetyTIL.cpp
  169   for (auto *Block : successors())
  238   for (auto *Succ : successors()) {
tools/clang/lib/Analysis/UninitializedValues.cpp
  729   for (const auto &I : bd->captures()) {
tools/clang/lib/Basic/Diagnostic.cpp
 1097   this->Ranges.assign(Info.getRanges().begin(), Info.getRanges().end());
 1098   this->FixIts.assign(Info.getFixItHints().begin(), Info.getFixItHints().end());
 1106       Ranges(Ranges.begin(), Ranges.end()), FixIts(FixIts.begin(), FixIts.end())
 1106       Ranges(Ranges.begin(), Ranges.end()), FixIts(FixIts.begin(), FixIts.end())
tools/clang/lib/Basic/TargetInfo.cpp
  480   for (const AddlRegName &ARN : getGCCAddlRegNames())
  491   for (const GCCRegAlias &GRA : getGCCRegAliases())
  521   for (const AddlRegName &ARN : getGCCAddlRegNames())
  532   for (const GCCRegAlias &RA : getGCCRegAliases())
tools/clang/lib/CodeGen/CGAtomic.cpp
  692   for (auto S : Scopes)
  703   for (auto S : Scopes) {
tools/clang/lib/CodeGen/CGBlocks.cpp
  569   for (const auto &CI : block->captures()) {
  805   for (const auto &CI : block->captures()) {
  867     for (const ExprWithCleanups::CleanupObject &C : EWC->getObjects())
 1038   for (const auto &CI : blockDecl->captures()) {
 1617   for (const auto &CI : blockDecl->captures()) {
 1654     for (const auto &CI : blockDecl->captures()) {
 1754   for (const auto &CI : BlockInfo.getBlockDecl()->captures()) {
tools/clang/lib/CodeGen/CGBuiltin.cpp
  511   for (const auto &Type : Types) {
  520   for (const auto &Type : Types) {
 5127   if (Builtin != IntrinsicMap.end() && Builtin->BuiltinID == BuiltinID)
10077   for (const StringRef &FeatureStr : FeatureStrs) {
tools/clang/lib/CodeGen/CGCall.cpp
  127   for (const auto &ParamInfo : proto->getExtParameterInfos()) {
  477   for (const auto *I : MD->parameters()) {
  710     paramInfos.append(sigParamInfos.begin(), sigParamInfos.end());
 1648       for (auto EltTy : ArgInfo.getCoerceAndExpandTypeSequence()) {
 3444     for (ArrayRef<QualType>::iterator I = ArgTypes.begin(), E = ArgTypes.end();
tools/clang/lib/CodeGen/CGClass.cpp
  599     for (const auto *I : IndirectField->chain())
 2088     for (auto *P : Ctor->parameters())
 2207     for (const auto *Param : OuterCtor->parameters()) {
 2895   for (auto param : BD->parameters())
 2914   for (auto Param : MD->parameters())
tools/clang/lib/CodeGen/CGCoroutine.cpp
  610     for (auto *PM : S.getParamMoves()) {
tools/clang/lib/CodeGen/CGDebugInfo.cpp
 3339   for (const ParmVarDecl *Parm : FD->parameters())
 3506     for (const auto *PI : OMethod->parameters())
 4251   for (const auto &capture : blockDecl->captures()) {
 4650     for (auto Parm : FD->parameters()) {
tools/clang/lib/CodeGen/CGDecl.cpp
  124     for (auto *Using : cast<UsingPackDecl>(D).expansions())
  138       for (auto *B : DD->bindings())
  641       for (const auto &I : block->captures()) {
 1605     for (const auto &I : Block->captures()) {
tools/clang/lib/CodeGen/CGExpr.cpp
 3413   for (auto idx : indices.drop_back())
tools/clang/lib/CodeGen/CGExprConstant.cpp
  434   for (llvm::Constant *C : Elems)
  448     UnpackedElemStorage.assign(Elems.begin(), Elems.end());
 1463           PlaceholderAddresses(addresses.begin(), addresses.end()) {
tools/clang/lib/CodeGen/CGLoopInfo.cpp
   27   NewLoopProperties.append(LoopProperties.begin(), LoopProperties.end());
   48       NewLoopProperties.append(LoopProperties.begin(), LoopProperties.end());
   61   Args.append(LoopProperties.begin(), LoopProperties.end());
  103   FollowupLoopProperties.append(LoopProperties.begin(), LoopProperties.end());
  116   Args.append(LoopProperties.begin(), LoopProperties.end());
  158       NewLoopProperties.append(LoopProperties.begin(), LoopProperties.end());
  168   FollowupLoopProperties.append(LoopProperties.begin(), LoopProperties.end());
  179   Args.append(LoopProperties.begin(), LoopProperties.end());
  228       NewLoopProperties.append(LoopProperties.begin(), LoopProperties.end());
  240   FollowupLoopProperties.append(LoopProperties.begin(), LoopProperties.end());
  253   Args.append(LoopProperties.begin(), LoopProperties.end());
  328       NewLoopProperties.append(LoopProperties.begin(), LoopProperties.end());
  346   Args.append(LoopProperties.begin(), LoopProperties.end());
  379       NewLoopProperties.append(LoopProperties.begin(), LoopProperties.end());
  391   Args.append(LoopProperties.begin(), LoopProperties.end());
  427                         AdditionalLoopProperties.end());
  579   for (const auto *Attr : Attrs) {
tools/clang/lib/CodeGen/CGObjCGNU.cpp
  959     for (auto *Arg : Args)
 1176     for (auto *M : Methods) {
 1584       for (auto *F : Init)
 2808   for (const auto *OMD : Methods) {
 2993   for (auto *M : Methods) {
 3014   for (const std::string *iter = Protocols.begin(), *endIter = Protocols.end();
tools/clang/lib/CodeGen/CGObjCMac.cpp
 2223     for (const auto *ParamDecl : Method->parameters()) {
 2395   for (const auto &CI : blockDecl->captures()) {
 2925   for (const auto &CI : blockDecl->captures()) {
 3944     for (auto MD : methods) {
 3961   for (auto MD : methods) {
 6710   for (auto MD : methods) {
 7195     for (const auto *ParamDecl : method->parameters()) {
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
  980   for (const Expr *Ref : Shareds) {
 1340   for (StringRef Part : Parts) {
 3067     RealArgs.append(CapturedVars.begin(), CapturedVars.end());
 3093     OutlinedFnArgs.append(CapturedVars.begin(), CapturedVars.end());
 4403     for (const auto &Pair : Privates) {
 4673   for (const Expr *E : PrivateVars) {
 4684   for (const Expr *E : FirstprivateVars) {
 4695   for (const Expr *E : LastprivateVars) {
 4777   for (const PrivateDataTy &Pair : Privates) {
 4855   for (const PrivateDataTy &Pair : Privates) {
 5627   for (const Expr *E : ReductionOps) {
 5724     for (const Expr *E : ReductionOps) {
 5737   for (const Expr *E : Privates) {
 5827     for (const Expr *E : ReductionOps) {
 5860     for (const Expr *E : ReductionOps) {
 7268         != MapModifiers.end())
 7271         != MapModifiers.end())
 7651                    Component : OverlappedElements) {
 7653             for (const OMPClauseMappableExprCommon::MappableComponent &MC :
 8315       for (const MapData &L1 : makeArrayRef(DeclComponentLists).slice(Count)) {
 9913   RealArgs.append(CapturedVars.begin(), CapturedVars.end());
10342       for (const ParamAttrTy &ParamAttr : ParamAttrs) {
10480   for (const auto &ParamAttr : ParamAttrs) {
10678   for (const ParmVarDecl *P : FD->parameters()) {
10795     std::copy(CallArgs.begin(), CallArgs.end(), std::begin(Args));
10957     std::copy(CallArgs.begin(), CallArgs.end(), std::begin(Args));
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
  238   for (const ValueDecl *D : EscapedDecls)
  244   for (const ValueDecl *D : EscapedDeclsForTeams)
  258       EscapedDeclsForTeams.begin(), EscapedDeclsForTeams.end());
  393           for (const OMPClause *C : Clauses) {
  406             for (const auto *E : Vars) {
  442       : CGF(CGF), EscapedDecls(TeamsReductions.begin(), TeamsReductions.end()) {
  502     for (const BlockDecl::Capture &C : E->getBlockDecl()->captures()) {
 2016     for (const Expr *E : C->getVarRefs())
 2469   OutlinedFnArgs.append(CapturedVars.begin(), CapturedVars.end());
 2509     OutlinedFnArgs.append(CapturedVars.begin(), CapturedVars.end());
 2566       for (llvm::Value *V : CapturedVars) {
 2678     OutlinedFnArgs.append(CapturedVars.begin(), CapturedVars.end());
 2978   for (const Expr *Private : Privates) {
 3238   for (const Expr *Private : Privates) {
 3674   for (const Expr *Private : Privates) {
 3875   for (const Expr *Private : Privates) {
 4292   for (const Expr *E : Privates) {
 4354     for (const Expr *DRE : Privates) {
 4420     for (const Expr *E : ReductionOps) {
 4516       TargetArgs.append(std::next(Args.begin(), I), Args.end());
 4699       EscapedVariableLengthDecls.begin(), EscapedVariableLengthDecls.end());
 4701   for (const ValueDecl *VD : VarChecker.getEscapedDecls()) {
 4713     for (const ValueDecl *VD : VarChecker.getEscapedDecls()) {
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
   29     for (const auto *C : S.clauses()) {
  124     for (const auto *E : S.counters()) {
  191     for (const auto *C : S.clauses()) {
  977     for (const Expr *C : LoopDirective->counters()) {
 1051     for (const Expr *F : LoopDirective->finals()) {
 1346   for (const Expr *UE : D.updates())
 1361   for (const Expr *E : D.finals_conditions()) {
 1557   for (const Expr *E : S.counters()) {
 1612     for (const Expr *I : S.inits()) {
 1619   for (const Expr * E: S.dependent_counters()) {
 1630   for (const Expr *E : S.dependent_inits()) {
 1647     for (const Expr *C : LoopDirective->counters()) {
 1718   for (const Expr *F : D.finals()) {
 4084   for (const OMPClause *C : S.clauses()) {
 5182         for (const Expr *E : LD->counters()) {
tools/clang/lib/CodeGen/CGVTables.cpp
  335   for (const ParmVarDecl *PD : MD->parameters())
tools/clang/lib/CodeGen/CodeGenAction.cpp
  467       for (const std::pair<unsigned, unsigned> &Range : D.getRanges()) {
tools/clang/lib/CodeGen/CodeGenFunction.cpp
 1109     for (auto *Param : FD->parameters()) {
 2302   for (const MultiVersionResolverOption &RO : Options) {
 2308       assert(&RO == Options.end() - 1 &&
tools/clang/lib/CodeGen/CodeGenFunction.h
 4336           : Architecture(Arch), Features(Feats.begin(), Feats.end()) {}
tools/clang/lib/CodeGen/CodeGenModule.cpp
 5245       for (auto *B : DD->bindings())
 5420       for (auto *D : Context.getModuleInitializers(Mod))
tools/clang/lib/CodeGen/CodeGenPGO.cpp
 1032   uint64_t MaxWeight = *std::max_element(Weights.begin(), Weights.end());
 1041   for (uint64_t W : Weights)
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
  287     for (const auto &I : SkippedRanges) {
 1295   for (const auto &R : Regions) {
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
  413      for (const auto &VtableComponent : VtableLayout.vtable_components()) {
  439     for (const auto &VtableComponent : VtableLayout.vtable_components()) {
 2598   for (const VarDecl *VD : CXXThreadLocals) {
tools/clang/lib/CodeGen/MacroPPCallbacks.cpp
   52   for (const auto &T : MI.tokens()) {
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
 2743     for (const CXXRecordDecl *PathElem : MemberPointerPath) {
 3967   for (const ParmVarDecl *PD : params) {
tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
  124       for (auto i : D->parameters())
tools/clang/lib/CodeGen/TargetInfo.cpp
  116   for (llvm::Type *type : scalarTypes) {
 9893   for (auto &P : InvokeFT->params())
tools/clang/lib/Driver/Driver.cpp
  160   for (const char *ArgPtr : Args) {
  739   for (const StringRef &Dir : Dirs) {
 4220     for (auto &UI : UA->getDependentActionsInfo()) {
 4610   for (const auto &Name : Names) {
tools/clang/lib/Driver/Job.cpp
   42   for (const auto &II : Inputs)
  312   Environment.assign(NewEnvironment.begin(), NewEnvironment.end());
tools/clang/lib/Driver/Multilib.cpp
  196                      MultilibSegments.end());
  198     for (const auto &New : MultilibSegments) {
tools/clang/lib/Driver/ToolChain.cpp
  834   for (const auto Path : Paths) {
tools/clang/lib/Driver/ToolChains/Clang.cpp
 5528   for (const InputInfo &Input : FrontendInputs) {
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
  777     for (const auto &Mode : TC.getXRayArgs().modeList())
tools/clang/lib/Driver/ToolChains/Gnu.cpp
 1816                              ExtraTripleAliases.end());
 1837       for (StringRef Candidate : ExtraTripleAliases) // Try these first.
tools/clang/lib/Driver/ToolChains/Linux.cpp
  847   for (StringRef Dir : MultiarchIncludeDirs) {
tools/clang/lib/Format/AffectedRangeManager.h
   29       : SourceMgr(SourceMgr), Ranges(Ranges.begin(), Ranges.end()) {}
tools/clang/lib/Format/BreakableToken.cpp
   53   for (StringRef KnownPrefix : KnownPrefixes) {
tools/clang/lib/Format/Format.cpp
 1827   for (auto Range : Ranges) {
tools/clang/lib/Format/TokenAnalyzer.cpp
   44   for (const tooling::Range &Range : Ranges) {
tools/clang/lib/Frontend/ASTMerge.cpp
   89 : AdaptedAction(std::move(adaptedAction)), ASTFiles(ASTFiles.begin(), ASTFiles.end()) {
tools/clang/lib/Frontend/ASTUnit.cpp
  795   for (const auto &RemappedFile : RemappedFiles)
 1273   for (const auto &Range : InDiag.getRanges())
 1275   for (const auto &FixIt : InDiag.getFixIts())
 1759   for (const auto &RemappedFile : RemappedFiles) {
 1847   for (const auto &RemappedFile : RemappedFiles) {
 2227   for (const auto &RemappedFile : RemappedFiles) {
tools/clang/lib/Frontend/CompilerInstance.cpp
  532   for (auto &Listener : DependencyCollectors)
 1775       ModuleBuildStack::iterator Pos = ModPath.begin(), PosEnd = ModPath.end();
tools/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
   36   SmallVector<const char *, 16> Args(ArgList.begin(), ArgList.end());
tools/clang/lib/Frontend/DependencyFile.cpp
  352   for (StringRef File : Files) {
  370     for (auto I = Files.begin(), E = Files.end(); I != E; ++I) {
tools/clang/lib/Frontend/DiagnosticRenderer.cpp
   63   for (const auto &Hint : FixItHints)
  103                                                    Ranges.end());
  111     for (const auto &Hint : FixItHints)
  251   for (const auto &I : Stack) {
  363   for (const auto &Range : Ranges) {
  492   for (const auto &Range : Ranges)
tools/clang/lib/Frontend/MultiplexConsumer.cpp
  119     : Listeners(L.begin(), L.end()) {
tools/clang/lib/Frontend/PrecompiledPreamble.cpp
  371   for (auto &Filename : PreambleDepCollector->getDependencies()) {
tools/clang/lib/Frontend/PrintPreprocessedOutput.cpp
   66   for (const auto &T : MI.tokens()) {
  534   for (ArrayRef<int>::iterator I = Ids.begin(), E = Ids.end(); I != E; ++I)
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
 1289   for (const auto *PDecl : OMD->parameters()) {
 2663   for (const auto PI : BoxingMethod->parameters())
 2784   for (const auto *PI : ArrayMethod->parameters())
 2928   for (const auto *PI : DictMethod->parameters()) {
 3491     for (const auto *PI : OMD->parameters()) {
 5357         for (const auto &CI : block->captures()) {
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
 1121   for (const auto *PDecl : OMD->parameters()) {
 2920     for (const auto *PI : OMD->parameters()) {
 4494         for (const auto &CI : block->captures()) {
tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp
  699   for (ArrayRef<FixItHint>::iterator I = Hints.begin(), E = Hints.end();
tools/clang/lib/Frontend/TextDiagnostic.cpp
  868          RE = Ranges.end();
 1078   for (ArrayRef<FixItHint>::iterator I = Hints.begin(), E = Hints.end();
 1328   for (ArrayRef<FixItHint>::iterator I = Hints.begin(), E = Hints.end();
 1336   for (ArrayRef<FixItHint>::iterator I = Hints.begin(), E = Hints.end();
tools/clang/lib/Index/IndexBody.cpp
  431         for (Expr *init : SyntaxForm->inits()) {
tools/clang/lib/Index/IndexDecl.cpp
  106           for (auto PI : FD->parameters()) {
  115           for (const auto *PV : FD->parameters()) {
  170     for (const auto *I : D->parameters()) {
  278       for (const auto &Arg : TemplateArgInfo->arguments())
  301     for (const auto *Binding : D->bindings())
tools/clang/lib/Index/IndexingAction.cpp
  185   for (const Decl *D : Decls)
tools/clang/lib/Index/IndexingContext.cpp
  343   for (auto &Rel : Relations) {
  439   for (auto &Rel : Relations) {
tools/clang/lib/Index/USRGeneration.cpp
  258   for (auto PD : D->parameters()) {
  836       for (auto *Prot : OIT->getProtocols())
  967     for (const auto &P : Arg.pack_elements())
tools/clang/lib/Lex/DependencyDirectivesSourceMinimizer.cpp
  911   for (const Token &T : Input) {
tools/clang/lib/Lex/HeaderSearch.cpp
  778     for (const auto &IncluderAndDir : Includers) {
tools/clang/lib/Lex/MacroArgs.cpp
   69     std::copy(UnexpArgTokens.begin(), UnexpArgTokens.end(),
tools/clang/lib/Lex/ModuleMap.cpp
  872   for (const Module::Header &H : Headers) {
tools/clang/lib/Lex/PPCaching.cpp
  160                       NewToks.end());
tools/clang/lib/Lex/PPDirectives.cpp
  688     for (auto Header : HeaderInfo.getModuleMap().findAllModulesForHeader(FE)) {
tools/clang/lib/Lex/PPMacroExpansion.cpp
  147   for (auto *O : Overrides) {
  215       for (auto *O : MM->overrides())
  272     for (auto *O : State->getOverriddenMacros())
  286   for (auto *MM : State ? State->getActiveModuleMacros(*this, II) : None)
  289   llvm::SmallVector<ModuleMacro *, 16> Worklist(Leaf.begin(), Leaf.end());
  307       for (auto *O : MM->overrides()) {
 1032   MacroExpandedTokens.append(tokens.begin(), tokens.end());
tools/clang/lib/Lex/Preprocessor.cpp
  347       std::equal(Tokens.begin(), Tokens.end(), MI->tokens_begin());
 1138     std::copy(Toks.begin(), Toks.end(), ToksCopy.get());
tools/clang/lib/Parse/ParseExpr.cpp
 3121   for (const auto &Spec : AvailSpecs) {
tools/clang/lib/Sema/DeclSpec.cpp
  307     std::uninitialized_copy(Bindings.begin(), Bindings.end(),
tools/clang/lib/Sema/JumpDiagnostics.cpp
  533       for (const auto &CI : BDecl->captures()) {
tools/clang/lib/Sema/Sema.cpp
 1695     for (const BlockDecl::Capture &BC : BD->captures()) {
tools/clang/lib/Sema/SemaChecking.cpp
  492   for (ArrayRef<QualType>::iterator I = Params.begin(), E = Params.end();
 4221         for (const auto *Arg : Args)
 4248     for (ArrayRef<ParmVarDecl*>::iterator I = parms.begin(), E = parms.end();
 4280       for (auto paramType : Proto->getParamTypes()) {
12454       Exprs.append(InitList->inits().begin(), InitList->inits().end());
13047   for (ParmVarDecl *Param : Parameters) {
tools/clang/lib/Sema/SemaCodeComplete.cpp
 4298     for (auto Parameter : Parameters) {
 5076   for (auto &Candidate : Candidates) {
 5137     ArgExprs.append(Args.begin(), Args.end());
 5171         ArgExprs.append(Args.begin(), Args.end());
 7098     for (const IdentifierLocPair &Pair : Protocols)
 8780   for (const char *Platform : llvm::makeArrayRef(Platforms)) {
tools/clang/lib/Sema/SemaCoroutine.cpp
   93   for (QualType T : FnType->getParamTypes())
tools/clang/lib/Sema/SemaDecl.cpp
 1727     for (auto *BD : DD->bindings()) {
 6832       for (auto *B : Bindings)
 6940       for (auto *B : Bindings)
 8314     if (Names.end() != Match)
 8971       for (NamedDecl *NonParmDecl : FTI.getDeclsInPrototype()) {
11153     SmallVector<Expr*, 8> InitsCopy(DeduceInits.begin(), DeduceInits.end());
11285     for (auto I : ILE->inits()) {
11997     for (auto *BD : DD->bindings())
12646     for (auto *BD : DD->bindings()) {
13108   for (const ParmVarDecl *Parameter : Parameters) {
13133   for (const ParmVarDecl *Parameter : Parameters) {
16440   for (ArrayRef<Decl *>::iterator i = Fields.begin(), end = Fields.end();
16469     bool IsLastField = (i + 1 == Fields.end());
17240   for (auto *Element : Elements) {
17261   for (auto *Element : Elements) {
17500   for (auto *D : Elements) {
17566     for (Decl *D : Elements) {
tools/clang/lib/Sema/SemaDeclCXX.cpp
  215   for (const auto &E : Proto->exceptions())
  818   for (auto &B : D.getDecompositionDeclarator().bindings()) {
  885   for (auto *B : Bindings) {
  949   for (auto &Arg : Args.arguments()) {
 1160   for (auto *B : Bindings) {
 1421     for (auto *B : DD->bindings())
 4827     for (auto *C : Indirect->chain()) {
 4983         for (auto *C : F->chain()) {
15999     for (const auto &E : Proto->exceptions()) {
tools/clang/lib/Sema/SemaDeclObjC.cpp
  397   for (auto *Param : MDecl->parameters()) {
  784   for (auto typeParam : typeParams) {
 1296   for (const IdentifierLocPair &Pair : ProtocolId) {
 1773   for (const IdentifierLocPair &IdentPair : IdentList) {
 4505   for (const ParmVarDecl *P : Method->parameters()) {
tools/clang/lib/Sema/SemaExceptionSpec.cpp
  404     for (const auto &E : OldProto->exceptions()) {
  578     for (const auto &I : Old->exceptions())
  581     for (const auto &I : New->exceptions()) {
  817   for (QualType SubI : Subset->exceptions()) {
  823     for (QualType SuperI : Superset->exceptions()) {
tools/clang/lib/Sema/SemaExpr.cpp
 1644   for (const Token &Tok : StringToks)
 1678     for (const Token &Tok : StringToks) {
 5222       for (Expr *A : Args.slice(ArgIx)) {
 5231       for (Expr *A : Args.slice(ArgIx)) {
 5239     for (Expr *A : Args.slice(ArgIx))
13881   for (const OffsetOfComponent &OC : Components) {
14003       for (auto *FI : IndirectMemberDecl->chain()) {
14409     for (const auto &CI : Result->getBlockDecl()->captures()) {
16537     for (Expr *OrigAssocExpr : GSE->getAssocExprs()) {
18007   if (Spec != AvailSpecs.end())
tools/clang/lib/Sema/SemaExprCXX.cpp
  613     for (const TemplateArgument &TA : TAL.asArray()) {
 2829     for (QualType T : Params) {
 4942     for (const auto *TSI : Args) {
 6081       for (QualType E : Exceptions)
tools/clang/lib/Sema/SemaExprObjC.cpp
   48     for (Expr *E : Strings) {
tools/clang/lib/Sema/SemaLambda.cpp
  532   LSI->TemplateParams.append(TParams.begin(), TParams.end());
  550       for (const auto &Capture : Captures) {
  646   ArrayRef<ReturnStmt*>::iterator i = returns.begin(), e = returns.end();
  669          i = returns.begin(), e = returns.end(); i != e; ++i) {
tools/clang/lib/Sema/SemaLookup.cpp
 1570   for (const Module *Merged : Context.getModulesWithMergedDefinition(Def))
 1577   for (const Module *Merged : Context.getModulesWithMergedDefinition(Def))
 2708       for (const auto &P : Arg.pack_elements())
 5312   OwningModules.insert(OwningModules.end(), Merged.begin(), Merged.end());
 5360   for (auto *M : Modules) {
 5397     for (Module *M : Modules) {
 5472   for (const PartialDiagnostic &PD : Correction.getExtraDiagnostics())
tools/clang/lib/Sema/SemaModule.cpp
  164   for (auto &Piece : Path) {
  317     for (auto &Piece : Path) {
tools/clang/lib/Sema/SemaOpenMP.cpp
  557     for (OMPClause *CNew : ClauseList) {
  790     MEC.Components.back().append(Components.begin(), Components.end());
 2156     for (OMPClause *C : D->clauses()) {
 2425   for (Expr *RefExpr : VarList) {
 2615   for (Expr *RefExpr : VarList) {
 2688     for (const OMPClause *CNew : ClauseList) {
 2696         for (SourceLocation TargetLoc : TargetLocations) {
 3026     for (OMPClause *C : S->clauses()) {
 3084       for (DeclRefExpr *E : Stack->getLinkGlobals())
 3651   for (OMPClause *Clause : Clauses) {
 3997   for (const OMPClause *C : Clauses) {
 4019       for (auto NM : AllowedNameModifiers) {
 4248   ClausesWithImplicit.append(Clauses.begin(), Clauses.end());
 4277         DSAChecker.getImplicitFirstprivate().end());
 4279                                         DSAChecker.getImplicitMap().end());
 4281     for (OMPClause *C : Clauses) {
 4588     for (OMPClause *C : Clauses) {
 4750   for (const Expr *E : Uniforms) {
 4777   for (const Expr *E : Aligneds) {
 4827   for (Expr *E : Alignments) {
 4845   for (const Expr *E : Linears) {
 4911   for (Expr *E : Steps) {
 6877     for (Expr *E : PostUpdates) {
 7605   for (const OMPClause *Clause : Clauses) {
 7666     for (OMPClause *C : Clauses) {
 7705     for (OMPClause *C : Clauses) {
 7741     for (OMPClause *C : Clauses) {
 7826   for (const OMPClause *Clause : Clauses) {
 7867   for (const OMPClause *C : Clauses) {
 7943     for (OMPClause *C : Clauses) {
 7984     for (OMPClause *C : Clauses) {
 8108   for (const OMPClause *C : Clauses) {
 8432   for (const OMPClause *C : Clauses) {
 8985     for (OMPClause *C : Clauses) {
 9202   for (const OMPClause *C : Clauses) {
 9226   for (const OMPClause *C : Clauses) {
 9307     for (OMPClause *C : Clauses) {
 9392     for (OMPClause *C : Clauses) {
 9583     for (OMPClause *C : Clauses) {
 9639     for (OMPClause *C : Clauses) {
 9695     for (OMPClause *C : Clauses) {
 9750     for (OMPClause *C : Clauses) {
 9854     for (OMPClause *C : Clauses) {
 9916     for (OMPClause *C : Clauses) {
10099     for (OMPClause *C : Clauses) {
10156     for (OMPClause *C : Clauses) {
10213     for (OMPClause *C : Clauses) {
11400   auto S = Exclude.begin(), E = Exclude.end();
12017   for (Expr *RefExpr : VarList) {
12183   for (Expr *RefExpr : VarList) {
12459   for (Expr *RefExpr : VarList) {
12615   for (Expr *RefExpr : VarList) {
13146   auto IR = UnresolvedReductions.begin(), ER = UnresolvedReductions.end();
13148   for (Expr *RefExpr : VarList) {
13805   for (Expr *RefExpr : VarList) {
14036   for (Expr *RefExpr : VarList) {
14114   for (Expr *RefExpr : VarList) {
14208   for (Expr *RefExpr : VarList) {
14355   for (Expr *RefExpr : VarList) {
15049               auto End = CI != CE ? CurComponents.end() : StackComponents.end();
15049               auto End = CI != CE ? CurComponents.end() : StackComponents.end();
15278   auto UMIt = UnresolvedMappers.begin(), UMEnd = UnresolvedMappers.end();
15288   for (Expr *RE : MVLI.VarList) {
15635   for (const auto &TyData : ReductionTypes) {
16390   for (Expr *RefExpr : VarList) {
16472   for (Expr *RefExpr : VarList) {
16582   for (Expr *RefExpr : VarList) {
tools/clang/lib/Sema/SemaOverload.cpp
 9575   for (auto *E : Equiv) {
11105   auto I = Cands.begin(), E = Cands.end();
14171       SmallVector<Expr *, 4> AssocExprs(A.begin(), A.end());
tools/clang/lib/Sema/SemaStmt.cpp
 2398         for (auto *Binding : DD->bindings())
 4359                                                  E = Params.end();
tools/clang/lib/Sema/SemaTemplate.cpp
 1911     for (auto *OldParam : TL.getParams()) {
 2019     for (auto *Param : Params)
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
 2257   for (const auto &A : Args) {
 2535     for (const auto &P : Arg.pack_elements()) {
 3714   for (Expr *E : ILE->inits())
 3720     for (Expr *E : ILE->inits()) {
 4391     for (auto R : Ranges)
 4523     for (Expr *E : InitList->inits())
 5656     for (const auto &P : TemplateArg.pack_elements())
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp
  885         for (auto *New : NewDecls)
 1722   for (ParmVarDecl *P : FP.getParams()) {
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
  853   for (auto *OldBD : D->bindings())
 1069   for (auto *PI : D->chain()) {
 2959   for (auto *UD : D->expansions()) {
 5445           for (TemplateArgument Arg : TemplateArgs.getInnermost().take_front(
 5450             for (TemplateArgument UnpackedArg : Unpacked)
tools/clang/lib/Sema/SemaTemplateVariadic.cpp
  303     for (auto &Pack : Unexpanded) {
  658                                                  end = Unexpanded.end();
 1132   for (TemplateArgument Elem : Pack.pack_elements()) {
tools/clang/lib/Sema/TreeTransform.h
 5506   for (QualType T : ESI.Exceptions) {
 6798   for (const auto *I : S->getAttrs()) {
 7878   for (ArrayRef<OMPClause *>::iterator I = Clauses.begin(), E = Clauses.end();
10871     for (auto *D : Decls) {
12046   for (const TemplateArgument &Arg : PackArgs) {
12096                                    PackLocIterator(*this, PackArgs.end()),
12105   for (auto &Loc : TransformedPackArgs.arguments()) {
12780     for (const auto &I : oldBlock->captures()) {
13062     for (auto *E : UPD->expansions()) {
tools/clang/lib/Serialization/ASTReader.cpp
 8041   if (EndIt != DInfo.Decls.end())
 8356     for (const auto &Entry :
10390               for (auto *D : TD->getTemplateParameters()->asArray()) {
11211                 for (const TemplateArgument &TA : TAL->asArray()) {
11216                   for (const TemplateArgument &PackTA : TA.getPackAsArray()) {
12239   for (const auto &Ext : Extensions) {
tools/clang/lib/Serialization/ASTWriter.cpp
  557   for (auto TypeArg : T->getTypeArgsAsWritten())
 2022       for (auto ModInfo : Data.KnownHeaders)
 2088       for (auto ModInfo : Data.KnownHeaders)
 2518     for (const auto &Cond : PP.getPreambleConditionalStack()) {
 2577     SmallVector<ModuleMacro*, 8> Worklist(Leafs.begin(), Leafs.end());
 2586       for (auto *M : Macro->overrides())
 2593       for (auto *M : Macro->overrides())
 2652       for (const IdentifierInfo *Param : MI->params())
 2800     for (auto const& Range : SkippedRanges)
 3024       for (auto *H : TopHeaders)
 3076     for (Decl *D : Context->getModuleInitializers(Mod))
 4579   for (const auto *A : Attrs)
 4674   for (const auto &Ext : Extensions) {
 6062     for (const auto &P : Arg.pack_elements())
 6133   for (auto &Base : Bases)
 6151   for (auto *Init : CtorInits) {
 6703   for (Expr *NumIter : C->getLoopNumIterations())
tools/clang/lib/Serialization/ASTWriterDecl.cpp
  228       for (auto &Entry : getPartialSpecializations(Common))
  235       Record.append(LazySpecializations.begin(), LazySpecializations.end());
  696   for (const auto *P : D->parameters())
  939   for (const auto *P : D->chain())
 1111   for (auto *B : D->bindings())
 1148   for (const auto &capture : D->captures()) {
 1246   for (auto *E : D->expansions())
tools/clang/lib/Serialization/ASTWriterStmt.cpp
  402   for (const TemplateArgument &Arg : TemplateArgs)
  597   for (auto *SubStmt : E->exprs())
 1799     for (const auto &TA : E->getPartialArguments())
 2009   for (auto I : D->counters()) {
 2012   for (auto I : D->private_counters()) {
 2015   for (auto I : D->inits()) {
 2018   for (auto I : D->updates()) {
 2021   for (auto I : D->finals()) {
 2024   for (Stmt *S : D->dependent_counters())
 2026   for (Stmt *S : D->dependent_inits())
 2028   for (Stmt *S : D->finals_conditions())
tools/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp
 2326       I = Regions.begin(), E = Regions.end(); I != E; ++I) {
tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
 1318   for (const auto *CtorParam : CtorD->parameters()) {
tools/clang/lib/StaticAnalyzer/Checkers/MoveChecker.cpp
  718     for (const auto *Region : RequestedRegions) {
  729     for (const auto *Region : InvalidatedRegions)
tools/clang/lib/StaticAnalyzer/Checkers/NSErrorChecker.cpp
   63   for (const auto *I : D->parameters())  {
  110   for (auto I : D->parameters())  {
tools/clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp
  360   for (const auto *ParamDecl : Params) {
  652   for (const ParmVarDecl *Param : Call.parameters()) {
  869       for (auto Param : M.parameters()) {
tools/clang/lib/StaticAnalyzer/Checkers/ObjCMissingSuperCallChecker.cpp
  105   for (ArrayRef<SelectorDescriptor>::iterator I = Sel.begin(), E = Sel.end();
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountChecker.cpp
 1193   for (const MemRegion *I : ExplicitRegions)
tools/clang/lib/StaticAnalyzer/Checkers/SimpleStreamChecker.cpp
  221   for (SymbolRef LeakedStream : LeakedStreams) {
tools/clang/lib/StaticAnalyzer/Checkers/StackAddrEscapeChecker.cpp
  128   for (const auto &C : B.captures()) {
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
 2488   for (const auto I : bugReports) {
 2505   for (PathSensitiveBugReport *Report : bugReports) {
 2812     for (PathDiagnosticConsumer *PC : consumers) {
 2893     for (auto &J : EQ.getReports()) {
 2910   for (const auto &I: EQ.getReports()) {
 3008       for (SourceRange Range : report->getRanges())
 3022         for (const auto &R: Piece->getRanges())
 3033     for (const auto &I : report->getFixits())
 3124   for (auto *Consumer : consumers)
 3214       reinterpret_cast<PathSensitiveBugReport *const *>(&*bugReports.end()));
 3253   for (const auto &SR : Ranges)
 3255   for (const auto &FH : Fixits)
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
  317       L, BR.getDescription(), Ranges.begin() == Ranges.end());
  318   for (SourceRange Range : Ranges)
 2779   for (const auto ParamDecl : parms) {
tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp
  515   ArrayRef<ParmVarDecl*>::iterator I = parameters.begin(), E = parameters.end();
tools/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp
  459   for (const auto Sink : Sinks)
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
 2733   for (const auto I : ExplicitRegions) {
 3012       for (const auto &I : EQ.getReports()) {
tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
  950   for (const auto &Range : Ranges) {
tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
  203   for (auto &R : Ranges)
  236   for (const auto &fixit : fixits) {
  611     for (const SourceRange &Range : Ranges) {
 1125   for (const IdentifierInfo *UnexpArgII : MacroArgs) {
tools/clang/lib/StaticAnalyzer/Core/ProgramState.cpp
  165                                   End = Regions.end(); I != End; ++I)
tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp
 1308                                 E = Values.end(); I != E; ++I) {
tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
  121             for (const FixItHint &Hint : Fixits) {
  690       for (const auto &P : FD->parameters()) {
tools/clang/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp
  133   for (const std::string &Plugin : Plugins) {
  167   for (const auto &Fn : CheckerRegistrationFns)
tools/clang/lib/Tooling/CompilationDatabase.cpp
  210     for (const std::string *I = Arr.begin(), *E = Arr.end(); I != E; ++I)
  381                          CommandLine.begin(), CommandLine.end());
tools/clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp
   43           for (const auto &Dep : Dependencies)
tools/clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
   34     for (const auto &File : getDependencies()) {
tools/clang/lib/Tooling/InterpolatingCompilationDatabase.cpp
  395       for (const auto &Entry : Range)
  477     if (It == Idx.end())
tools/clang/lib/Tooling/JSONCompilationDatabase.cpp
  316   for (const auto &CommandRef : CommandsRef) {
tools/clang/lib/Tooling/Refactoring/AtomicChange.cpp
  150   for (const auto &Change : Changes) {
  151     for (llvm::StringRef Header : Change.getInsertedHeaders()) {
  164     for (const std::string &Header : Change.getRemovedHeaders()) {
  186   for (const auto &Change : Changes)
tools/clang/lib/Tooling/Refactoring/Rename/RenamingAction.cpp
  171   for (const auto &AtomicChange : AtomicChanges) {
tools/clang/lib/Tooling/Refactoring/Rename/USRFinder.cpp
   46     for (const auto &Range : NameRanges) {
tools/clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp
  254     for (unsigned Offset : SymbolOffsets) {
  258     for (const std::string &QualifiedName : QualifiedNames) {
tools/clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp
  158       : USRSet(USRs.begin(), USRs.end()), Context(Context) {}
tools/clang/lib/Tooling/Syntax/BuildTree.cpp
  106       for (auto &T : A.tokenBuffer().expandedTokens().drop_back())
  118               std::next(It)->first == Range.end()) &&
  135       auto EndChildren = Trees.lower_bound(NodeTokens.end());
  137               EndChildren->first == NodeTokens.end()) &&
  163                 : A.tokenBuffer().expandedTokens().end() - It->first;
  267   assert(It != Tokens.end());
tools/clang/lib/Tooling/Syntax/Tokens.cpp
  196   unsigned EndExpanded = Expanded.end() - ExpandedTokens.data();
tools/clang/lib/Tooling/Syntax/Tree.cpp
   72   for (const auto &T : Tokens) {
tools/clang/lib/Tooling/Transformer/RewriteRule.cpp
   36   for (const auto &Edit : Edits) {
  108   for (auto &Rule : Rules)
tools/clang/tools/arcmt-test/arcmt-test.cpp
  230          I = resultFiles.begin(), E = resultFiles.end(); I != E; ++I) {
tools/clang/tools/c-index-test/core_main.cpp
  124     for (auto &SymRel : Relations) {
  213   ArgsWithProgName.append(Args.begin(), Args.end());
tools/clang/tools/clang-import-test/clang-import-test.cpp
  148       for (const CharSourceRange &Range : Info.getRanges()) {
tools/clang/tools/clang-offload-wrapper/ClangOffloadWrapper.cpp
  204     for (ArrayRef<char> Buf : Bufs) {
tools/clang/tools/clang-refactor/ClangRefactor.cpp
  551       for (const RefactoringOption *Opt : Visitor.getMissingRequiredOptions())
tools/clang/tools/diagtool/FindDiagnosticID.cpp
   31   for (const auto &Diag : Diagnostics) {
   50   for (const char *A : llvm::makeArrayRef(argv, argc))
tools/clang/tools/diagtool/ListWarnings.cpp
   53   for (const DiagnosticRecord &DR : getBuiltinDiagnosticsByName()) {
tools/clang/tools/diagtool/ShowEnabledWarnings.cpp
  116   for (const DiagnosticRecord &DR : getBuiltinDiagnosticsByName()) {
tools/clang/tools/diagtool/TreeView.cpp
   87     if (Found == AllGroups.end() || Found->getName() != RootGroup) {
  101     for (const GroupRecord &GR : AllGroups) {
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
  368   for (const auto &Pattern : WhiteListedSymbolPatterns)
tools/clang/tools/extra/clang-doc/Serialize.cpp
  308   for (const ParmVarDecl *P : D->parameters()) {
tools/clang/tools/extra/clang-include-fixer/IncludeFixer.cpp
  176     for (const PartialDiagnostic &PD : Correction.getExtraDiagnostics())
  329   for (const auto &Symbol : MatchedSymbols) {
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/tool/FindAllSymbolsMain.cpp
   85     for (const auto &Symbol : NewSymbols) {
tools/clang/tools/extra/clang-query/Query.cpp
   86   for (auto &AST : QS.ASTs) {
tools/clang/tools/extra/clang-reorder-fields/ReorderFieldsAction.cpp
   70   for (const auto &Name : DesiredFieldsOrder) {
tools/clang/tools/extra/clang-tidy/ClangTidy.cpp
  581   for (const ClangTidyError &Error : Errors) {
tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
   77     for (const auto &FixIt : Hints) {
  474   for (auto Hint : Info.getFixItHints())
  476   for (auto Range : Info.getRanges())
tools/clang/tools/extra/clang-tidy/bugprone/LambdaFunctionNameCheck.cpp
   40     for (const auto& T : MD.getMacroInfo()->tokens()) {
tools/clang/tools/extra/clang-tidy/bugprone/MacroRepeatedSideEffectsCheck.cpp
   52           MI->tokens().begin(), MI->tokens().end(), [](const Token &T) {
   57           }) != MI->tokens().end())
   92   for (const auto &T : MI->tokens()) {
tools/clang/tools/extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp
  239       for (const auto &Match : Matches) {
tools/clang/tools/extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp
   31   for (const auto &Arg : TemplateArgs) {
tools/clang/tools/extra/clang-tidy/modernize/AvoidBindCheck.cpp
   77       std::max_element(Args.begin(), Args.end(),
   83   if (MaxPlaceholderIt == Args.end() || MaxPlaceholderIt->PlaceHolderIndex == 0)
   99   for (const auto &B : Args) {
  110   for (const BindArgument &B : Args) {
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
   34     for (ParmVarDecl *Param : F.parameters())
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp
  134                                  Function->parameters().end(), Param) -
tools/clang/tools/extra/clang-tidy/portability/SIMDIntrinsicsCheck.cpp
   29   for (const ParmVarDecl *Parm : Node.parameters()) {
tools/clang/tools/extra/clang-tidy/readability/IsolateDeclarationCheck.cpp
  209   for (const auto &Range : Ranges) {
tools/clang/tools/extra/clang-tidy/readability/NonConstParameterCheck.cpp
   51     for (const auto *Parm : Ctor->parameters())
   72         for (const auto *Par : FD->parameters()) {
tools/clang/tools/extra/clang-tidy/utils/DeclRefExprUtils.cpp
   36   for (const auto &Match : Matches)
tools/clang/tools/extra/clang-tidy/utils/ExceptionAnalyzer.cpp
  128     for (const QualType Ex : FPT->exceptions())
tools/clang/tools/extra/clang-tidy/utils/IncludeSorter.cpp
   19   for (StringRef Suffix : Suffixes) {
tools/clang/tools/extra/clang-tidy/utils/OptionsUtils.cpp
   31   return llvm::join(Strings.begin(), Strings.end(), StringsDelimiter);
tools/clang/tools/extra/clangd/ClangdLSPServer.cpp
  865   for (auto &S : Symbols)
tools/clang/tools/extra/clangd/CodeComplete.cpp
  303         for (llvm::StringRef Scope : QueryScopes) {
tools/clang/tools/extra/clangd/Diagnostics.cpp
   92   for (const auto &CR : D.getRanges()) {
   98   for (const auto &F : D.getFixItHints()) {
  540     for (auto &FixIt : Info.getFixItHints()) {
tools/clang/tools/extra/clangd/DraftStore.cpp
   55   for (const TextDocumentContentChangeEvent &Change : Changes) {
tools/clang/tools/extra/clangd/FileDistance.cpp
  195   for (llvm::StringRef S : QueryScopes) {
tools/clang/tools/extra/clangd/FindSymbols.cpp
  187     for (auto &TopLevel : AST.getLocalTopLevelDecls())
tools/clang/tools/extra/clangd/HeaderSourceSwitch.cpp
   56   for (llvm::StringRef NewExt : NewExts) {
  149   for (auto *TopLevel : AST.getLocalTopLevelDecls())
tools/clang/tools/extra/clangd/QueryDriverDatabase.cpp
  151   for (llvm::StringRef Include : SystemIncludes) {
  189   for (llvm::StringRef Glob : Globs)
tools/clang/tools/extra/clangd/Selection.cpp
   42     for (const auto& Tok : Spelled) {
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp
  354   return ArrayRef<HighlightingToken>(StartLineIt, AllTokens.end())
  406   assert(std::is_sorted(New.begin(), New.end()) &&
  408   assert(std::is_sorted(Old.begin(), Old.end()) &&
  429   auto NewEnd = New.end();
  430   auto OldEnd = Old.end();
  432     int NextNew = NewLine.end() != NewEnd ? NewLine.end()->R.start.line
  432     int NextNew = NewLine.end() != NewEnd ? NewLine.end()->R.start.line
  434     int NextOld = OldLine.end() != OldEnd ? OldLine.end()->R.start.line
  434     int NextOld = OldLine.end() != OldEnd ? OldLine.end()->R.start.line
  439   for (int LineNumber = 0; NewLine.end() < NewEnd || OldLine.end() < OldEnd;
  439   for (int LineNumber = 0; NewLine.end() < NewEnd || OldLine.end() < OldEnd;
  441     NewLine = takeLine(New, NewLine.end(), LineNumber);
  442     OldLine = takeLine(Old, OldLine.end(), LineNumber);
  473   for (const auto &Line : Tokens) {
tools/clang/tools/extra/clangd/XRefs.cpp
  653     for (const ParmVarDecl *PVD : FD->parameters()) {
tools/clang/tools/extra/clangd/index/Background.cpp
  269     for (const auto &R : SymRefs.second) {
tools/clang/tools/extra/clangd/index/BackgroundIndexLoader.cpp
  127   for (llvm::StringRef MainFile : MainFiles) {
tools/clang/tools/extra/clangd/index/FileIndex.cpp
  185         MergedRefs[Sym.first].append(Sym.second.begin(), Sym.second.end());
tools/clang/tools/extra/clangd/index/MemIndex.cpp
   79     for (const auto &O : SymRefs->second) {
tools/clang/tools/extra/clangd/index/MemIndex.h
   28       this->Refs.try_emplace(R.first, R.second.begin(), R.second.end());
tools/clang/tools/extra/clangd/index/Serialization.cpp
  348   for (const auto &Ref : Refs) {
tools/clang/tools/extra/clangd/index/SymbolCollector.cpp
  425   for (const auto &R : Relations) {
tools/clang/tools/extra/clangd/index/dex/Dex.cpp
  116   for (const auto &Path : ProximityPaths) {
  153   for (const auto &T : Types)
  258     for (const auto &Ref : Refs.lookup(ID)) {
tools/clang/tools/extra/clangd/index/dex/PostingList.cpp
   34   bool reachedEnd() const override { return CurrentChunk == Chunks.end(); }
   79     for (const Chunk &C : Chunks)
   95     if (CurrentChunk == Chunks.end()) // Reached the end of PostingList.
  103     if ((CurrentChunk != Chunks.end() - 1) &&
  106           std::partition_point(CurrentChunk + 1, Chunks.end(),
  174   for (DocID Doc : Documents.drop_front()) {
tools/clang/tools/extra/clangd/indexer/IndexerMain.cpp
   61             for (const auto &Ref : Sym.second)
tools/clang/tools/extra/clangd/refactor/Rename.cpp
  150   for (Decl *TopLevelDecl : AST.getLocalTopLevelDecls()) {
tools/clang/tools/extra/clangd/refactor/tweaks/ExpandMacro.cpp
  110   for (const syntax::Token &T : Expansion.Expanded) {
tools/clang/tools/extra/clangd/refactor/tweaks/RemoveUsingNamespace.cpp
  146   for (auto &D : Inputs.AST.getLocalTopLevelDecls()) {
tools/clang/tools/extra/clangd/unittests/DiagnosticsTests.cpp
  476                     std::vector<clangd::Fix>(Fixes.begin(), Fixes.end())});
  495                     std::vector<clangd::Fix>(Fixes.begin(), Fixes.end())});
  521   for (const auto &S : Syms) {
tools/clang/tools/extra/clangd/unittests/ExpectedTypeTest.cpp
   57     for (auto &Cls : Classes)
   67     for (llvm::StringRef Name : DeclNames) {
tools/clang/tools/extra/clangd/unittests/ParsedASTTests.cpp
   59       for (const auto Arg : Args->asArray()) {
tools/clang/tools/extra/clangd/unittests/SemanticHighlightingTests.cpp
   78       Tokens.begin(), Tokens.end(),
   85   for (auto &T : Tokens) {
tools/clang/tools/extra/clangd/unittests/TestIndex.cpp
  109   Req.IDs.insert(IDs.begin(), IDs.end());
tools/clang/tools/extra/modularize/ModuleAssistant.cpp
  233                                              E = HeaderFileNames.end();
  237     for (auto &ProblemFile : ProblemFileNames) {
tools/clang/tools/extra/modularize/PreprocessorTracker.cpp
  407   for (const auto &T : MI->tokens()) {
tools/clang/tools/extra/pp-trace/PPCallbacksTracker.cpp
  583   for (auto *MM : Value.getModuleMacros()) {
tools/clang/tools/extra/unittests/clang-tidy/ClangTidyTest.h
  109   Args.insert(Args.end(), ExtraArgs.begin(), ExtraArgs.end());
tools/clang/tools/libclang/CIndex.cpp
  975   for (const auto *P : ND->parameters()) {
 2751                                        E = D->clauses().end();
 3466   for (auto &UF : unsaved_files) {
 4116   for (auto &UF : unsaved_files) {
 7113           for (const auto *P : Method->parameters()) {
tools/clang/tools/libclang/CIndexCodeCompletion.cpp
  604                                                 E = SelIdents.end();
  725   for (auto &UF : unsaved_files) {
tools/clang/tools/libclang/CXIndexDataConsumer.cpp
  212       for (const auto &SymRel : Relations) {
tools/clang/tools/libclang/CXType.cpp
  201   for (const auto &A : TA) {
 1126   for (const auto &Arg : TA)
tools/clang/tools/libclang/Indexing.cpp
  139     ParsedRegions.insert(Regions.begin(), Regions.end());
  533   for (auto &UF : unsaved_files) {
tools/clang/unittests/AST/ASTVectorTest.cpp
   77   I = V.insert(Ctxt, V.begin(), IntVec.begin(), IntVec.end());
   85   I = V.insert(Ctxt, V.end(), IntVec.begin(), IntVec.end());
tools/clang/unittests/ASTMatchers/ASTMatchersTest.h
   94   std::vector<std::string> Args(CompileArgs.begin(), CompileArgs.end());
tools/clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
  164     for (const auto &E : Es)
tools/clang/unittests/Format/CleanupTest.cpp
   41     for (auto Offset : Offsets)
tools/clang/unittests/Tooling/DependencyScannerTest.cpp
   41     Deps.insert(Deps.end(), NewDeps.begin(), NewDeps.end());
tools/clang/unittests/Tooling/Syntax/TokensTest.cpp
   67   return A.begin() == arg.begin() && A.end() == arg.end();
   67   return A.begin() == arg.begin() && A.end() == arg.end();
  180     for (auto Begin = Range.begin(); Begin < Range.end(); ++Begin) {
  183            ItSub != Subrange.end() && It != Range.end(); ++ItSub, ++It) {
  183            ItSub != Subrange.end() && It != Range.end(); ++ItSub, ++It) {
  190     return llvm::makeArrayRef(Range.end(), Range.end());
  190     return llvm::makeArrayRef(Range.end(), Range.end());
  211     if (Found.begin() == Tokens.end()) {
  217                      llvm::makeArrayRef(Found.end(), Tokens.end()), TextMatches)
  217                      llvm::makeArrayRef(Found.end(), Tokens.end()), TextMatches)
  218             .begin() != Tokens.end()) {
  698   for (const auto &T : ID1.drop_front())
  706   for (const auto &T : ID2.drop_front())
  723   for (const auto &T : DefineFoo.drop_front())
  732   for (const auto &T : PragmaOnce.drop_front())
tools/clang/utils/TableGen/ClangAttrEmitter.cpp
 1944   for (auto *E : LangOpts) {
 1986     for (const auto &Rule : It->getSecond().getAggregateRuleSet()) {
 4031     for (StringRef Spelling : Doc.SupportedSpellings[K]) {
tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
  224                                                     DE = GroupDiags.end();
  242                                                DE = GroupDiags.end();
tools/clang/utils/TableGen/ClangOptionDocEmitter.cpp
  237   for (auto Arg : Args) {
tools/clang/utils/TableGen/NeonEmitter.cpp
 1498   for (auto *I : Body->getValues()) {
tools/dsymutil/DebugMap.h
   94         BinaryUUID(BinaryUUID.begin(), BinaryUUID.end()) {}
tools/dsymutil/DwarfLinker.cpp
 1155       OutputBuffer.append(ULEBbytes.begin(), ULEBbytes.end());
 1205   for (auto Byte : Bytes)
tools/dsymutil/MachODebugMapParser.cpp
   29       : BinaryPath(BinaryPath), Archs(Archs.begin(), Archs.end()),
tools/gold/gold-plugin.cpp
  568   for (auto &Sym : Obj->symbols()) {
tools/lld/COFF/Chunks.cpp
  551   for (const coff_relocation &rel : getRelocs()) {
  625   for (SectionChunk *c : sections)
tools/lld/COFF/Driver.cpp
  624   for (StringRef path : searchPaths) {
  629   for (StringRef path : filePaths)
  929       while (cur != contents.end()) {
  932         uint64_t symIndex = decodeULEB128(cur, &size, contents.end(), &err);
  943       for (Symbol *s : syms)
 1819       for (auto *s : lto::LTO::getRuntimeLibcallSymbols())
tools/lld/COFF/DriverUtils.cpp
  708   for (MemoryBufferRef mb : mbs) {
  721   for (ObjFile *f : objs) {
tools/lld/COFF/ICF.cpp
  163   if (!std::equal(a->getRelocs().begin(), a->getRelocs().end(),
  188   return std::equal(a->getRelocs().begin(), a->getRelocs().end(),
  248   for (Chunk *c : vec) {
tools/lld/COFF/InputFiles.cpp
  159     for (const lto::InputFile::Symbol &sym : obj->symbols()) {
  907   for (const lto::InputFile::Symbol &objSym : obj->symbols()) {
tools/lld/COFF/LTO.cpp
  126   for (const lto::InputFile::Symbol &objSym : obj.symbols()) {
tools/lld/COFF/MapFile.cpp
   51     for (Symbol *b : file->getSymbols())
   61   for (DefinedRegular *s : syms)
  108   for (OutputSection *sec : outputSections) {
tools/lld/COFF/MarkLive.cpp
   32   for (Chunk *c : chunks)
tools/lld/COFF/PDB.cpp
  589   for (const TiReference &ref : typeRefs) {
  922           if (sym.data().data() == bulkSymbols.end()) {
 1190   for (SectionChunk *debugChunk : file->getDebugChunks()) {
 1241     for (Chunk *c : chunks) {
 1373   for (StringRef a : args) {
 1658   for (OutputSection *os : outputSections) {
 1720   for (SectionChunk *dbgC : c->file->getDebugChunks()) {
 1726     for (const coff_relocation &r : dbgC->getRelocs()) {
tools/lld/COFF/SymbolTable.cpp
   89   for (Symbol *s : sc->file->getSymbols()) {
  145   for (Chunk *c : file->getChunks()) {
  149     for (const coff_relocation &r : sc->getRelocs()) {
  335     for (Symbol *sym : symbols) {
  714     res.insert(res.end(), v.begin(), v.end());
tools/lld/COFF/Writer.cpp
 1010     for (Chunk *c : delayIdata.getCodeChunks())
 1156       for (Symbol *b : file->getSymbols()) {
 1550   for (Chunk *c : file->getChunks()) {
 1557     for (const coff_relocation &reloc : sc->getRelocs()) {
 1626   for (SectionChunk *c : symIdxChunks) {
 1647     for (uint32_t symIndex : symIndices) {
tools/lld/Common/Strings.cpp
   35   for (StringRef s : pat) {
tools/lld/ELF/AArch64ErrataFix.cpp
  444     for (Symbol *b : f->getLocalSymbols()) {
tools/lld/ELF/ARMErrataFix.cpp
  320     for (Symbol *s : f->getLocalSymbols()) {
tools/lld/ELF/Arch/AMDGPU.cpp
   52   for (InputFile *f : makeArrayRef(objectFiles).slice(1)) {
tools/lld/ELF/Arch/MipsArchTree.cpp
   73   for (const FileFlags &f : files) {
   96   for (const FileFlags &f : files)
  106   for (const FileFlags &f : files.slice(1)) {
  120   for (const FileFlags &f : files.slice(1))
  280   for (const FileFlags &f : files.slice(1)) {
tools/lld/ELF/CallGraphSort.cpp
  249         for (Symbol *sym : sections[i]->file->getSymbols())
tools/lld/ELF/DWARF.cpp
   29   for (InputSectionBase *sec : obj->getSections()) {
   87   if (it == rels.end() || it->r_offset != pos)
tools/lld/ELF/Driver.cpp
  713     for (Symbol *sym : file->getSymbols())
  750     for (const Elf_CGProfile_Impl<ELFT> &cgpe : obj->cgProfile) {
 1351         for (Symbol *sym : file->getSymbols())
 1493       while (cur != contents.end()) {
 1496         uint64_t symIndex = decodeULEB128(cur, &size, contents.end(), &err);
 1505       for (Symbol *s : syms)
 1581     for (Symbol *sym : obj->getGlobalSymbols())
 1642   for (const WrappedSymbol &w : wrapped) {
 1656   for (const WrappedSymbol &w : wrapped)
 1786     for (auto *s : lto::LTO::getRuntimeLibcallSymbols())
 1855     for (InputSectionBase *s : f->getSections())
 1859     for (InputSectionBase *s : f->getSections())
tools/lld/ELF/EhFrame.cpp
   99   if (end == d.end())
tools/lld/ELF/ICF.cpp
  431   for (RelTy rel : rels) {
tools/lld/ELF/InputFiles.cpp
  326   for (const Elf_Shdr &sec : sections)
  570       for (uint32_t secIndex : entries.slice(1)) {
  823     for (const char *d = data.begin(), *e = data.end(); d < e;) {
 1181   for (const Elf_Shdr &sec : sections) {
 1204   for (const Elf_Dyn &dyn : dynamicTags) {
 1432   for (StringRef s : obj->getComdatTable())
 1436   for (const lto::InputFile::Symbol &objSym : obj->symbols())
 1439   for (auto l : obj->getDependentLibraries())
 1508     for (const lto::InputFile::Symbol &sym : obj->symbols()) {
 1525   for (const typename ELFT::Shdr &sec : sections) {
tools/lld/ELF/InputSection.cpp
  285   for (Symbol *b : file->getSymbols())
  348   for (Symbol *b : file->getSymbols())
  394   for (uint32_t idx : from.slice(1))
  412   for (const RelTy &rel : rels) {
  835   for (const RelTy &rel : rels) {
tools/lld/ELF/LinkerScript.cpp
  555   for (BaseCommand *base : vec)
tools/lld/ELF/MapFile.cpp
   57     for (Symbol *b : file->getSymbols())
   68   for (Defined *dr : syms)
  125   for (const CieRecord *rec : sec->getCieRecords()) {
  237     for (Symbol *sym : file->getSymbols()) {
tools/lld/ELF/MarkLive.cpp
  277       for (const typename ELFT::Rela &rel : sec.template relas<ELFT>())
  280       for (const typename ELFT::Rel &rel : sec.template rels<ELFT>())
  300     for (Symbol *s : file->getSymbols())
tools/lld/ELF/Relocations.cpp
  463   for (const Elf_Phdr &phdr :
  484   for (const Elf_Sym &s : file.template getGlobalELFSyms<ELFT>()) {
  706     for (const Symbol *s : sym.file->getSymbols())
 1394   for (auto i = rels.begin(), end = rels.end(); i != end;)
 1442   for (OutputSection *os : outputSections) {
tools/lld/ELF/Symbols.cpp
  227   for (const VersionDefinition &ver : namedVersionDefs()) {
tools/lld/ELF/SyntheticSections.cpp
 1834     for (const Elf_Rela &r : g) {
 2210   for (const SymbolTableEntry &entry : in.symTab->getSymbols()) {
 2436   for (const SymbolTableEntry &s : symTab->getSymbols()) {
 2605     for (const DWARFDebugPubTable::Set &set : table.getData()) {
 2656     for (ArrayRef<NameAttrEntry> entries : nameAttrs) {
 2657       for (const NameAttrEntry &ent : entries) {
 2866   for (const VersionDefinition &v : namedVersionDefs())
 2900   for (const VersionDefinition &v : namedVersionDefs()) {
 2932   for (const SymbolTableEntry &s : getPartition().dynSymTab->getSymbols()) {
 3230   for (const ExidxEntry entry : cur->getDataAs<ExidxEntry>())
 3479     for (InputFile *file : makeArrayRef(objectFiles).slice(1))
tools/lld/ELF/Writer.cpp
  682     for (Symbol *b : f->getLocalSymbols()) {
 1247     for (Symbol *sym : file->getSymbols())
 1316   for (InputSection *isec : makeArrayRef(unorderedSections).slice(0, insPt))
 1320   for (InputSection *isec : makeArrayRef(unorderedSections).slice(insPt))
 1800     for (const SymbolTableEntry &e : part.dynSymTab->getSymbols())
tools/lld/MinGW/Driver.cpp
  125     for (StringRef dir : searchPaths)
  132   for (StringRef dir : searchPaths) {
tools/lld/lib/Core/Resolver.cpp
  372   for (const StringRef &name : _ctx.deadStripRoots()) {
tools/lld/lib/Core/SymbolTable.cpp
  218                                                      content.end()));
tools/lld/lib/ReaderWriter/MachO/ArchHandler_arm.cpp
 1019   std::copy(atom.rawContent().begin(), atom.rawContent().end(),
tools/lld/lib/ReaderWriter/MachO/ArchHandler_arm64.cpp
  543   std::copy(atom.rawContent().begin(), atom.rawContent().end(),
tools/lld/lib/ReaderWriter/MachO/ArchHandler_x86.cpp
  416   std::copy(atom.rawContent().begin(), atom.rawContent().end(),
tools/lld/lib/ReaderWriter/MachO/ArchHandler_x86_64.cpp
  550   std::copy(atom.rawContent().begin(), atom.rawContent().end(),
tools/lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp
  177       for (auto &entry : pages[i].entries)
  197       for (auto &entry : page.entries) {
  230     for (auto &entry : page.entries) {
tools/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
   92   for (StringRef str : llvm::makeArrayRef(parts).slice(1)) {
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
 1224   for (const auto *dylib : _ctx.allDylibs()) {
 1519           std::copy(sectionContent.begin(), sectionContent.end(),
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp
  324       for (auto &c : content) {
tools/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
  831       for (uint8_t x : cont)
tools/lld/wasm/Driver.cpp
  627   for (const WrappedSymbol &w : wrapped) {
  641   for (const WrappedSymbol &w : wrapped)
tools/lld/wasm/InputChunks.cpp
   48   for (const WasmRelocation &rel : relocations) {
  107   for (const WasmRelocation &rel : relocations) {
  154   for (const WasmRelocation &rel : relocations) {
  242   for (const WasmRelocation &rel : relocations) {
  280   for (const WasmRelocation &rel : relocations) {
  305   for (const WasmRelocation &rel : relocations) {
tools/lld/wasm/InputFiles.cpp
  224   assert(std::is_sorted(relocs.begin(), relocs.end(),
  234   auto relocsEnd = relocs.end();
  267   for (const WasmElemSegment &seg : wasmObj->elements()) {
  313   for (StringRef comdat : comdats) {
  319   for (const WasmSegment &s : wasmObj->dataSegments()) {
  340   for (const WasmGlobal &g : wasmObj->globals())
  344   for (const WasmEvent &e : wasmObj->events())
  549   for (StringRef s : obj->getComdatTable())
  552   for (const lto::InputFile::Symbol &objSym : obj->symbols())
tools/lld/wasm/LTO.cpp
   95   for (const lto::InputFile::Symbol &objSym : obj.symbols()) {
tools/lld/wasm/MarkLive.cpp
   85   for (Symbol *sym : symtab->getSymbols())
  112     for (const WasmRelocation reloc : c->getRelocations()) {
tools/lld/wasm/OutputSections.cpp
   89   for (InputFunction *func : functions) {
  113   for (const InputChunk *chunk : functions)
  119   for (const InputChunk *func : functions)
  125   for (const InputChunk *c : functions)
  132       std::count_if(segments.begin(), segments.end(),
  142   for (OutputSegment *segment : segments) {
  188   for (const OutputSegment *segment : segments) {
  203   for (const OutputSegment *seg : segments)
  210   for (const OutputSegment *seg : segments)
  216   for (const OutputSegment *seg : segments)
  228   for (InputSection *section : inputSections) {
  251   for (const InputSection *section : inputSections)
  257   for (const InputSection *inputSect : inputSections)
  263   for (const InputSection *s : inputSections)
tools/lld/wasm/Relocations.cpp
   61   for (const WasmRelocation &reloc : chunk->getRelocations()) {
tools/lld/wasm/SymbolTable.cpp
  640   for (Symbol *sym : getSymbols()) {
tools/lld/wasm/SyntheticSections.cpp
  371           segments.begin(), segments.end(),
tools/lld/wasm/Writer.cpp
  391     for (auto &feature : file->getWasmObj()->getTargetFeatures()) {
  462     for (auto &feature : file->getWasmObj()->getTargetFeatures()) {
  481   for (Symbol *sym : symtab->getSymbols()) {
  515   for (Symbol *sym : symtab->getSymbols()) {
  552   for (Symbol *sym : symtab->getSymbols())
  558     for (Symbol *sym : file->getSymbols())
tools/lldb/include/lldb/Utility/AnsiTerminal.h
  122     for (const auto &code : codes) {
tools/lldb/include/lldb/Utility/UUID.h
   95   UUID(llvm::ArrayRef<uint8_t> bytes) : m_bytes(bytes.begin(), bytes.end()) {}
tools/lldb/source/Breakpoint/BreakpointIDList.cpp
   90   for (const char *str : string_array) {
  332   for (auto specifier_str : BreakpointID::GetRangeSpecifiers()) {
tools/lldb/source/Commands/CommandObjectBreakpoint.cpp
 1687     for (auto &entry : command.entries()) {
 1714     for (auto &entry : command.entries()) {
tools/lldb/source/Commands/CommandObjectCommands.cpp
 1014       for (auto &entry : command.entries().drop_front()) {
 1443     for (auto &entry : command.entries()) {
tools/lldb/source/Commands/CommandObjectHelp.cpp
  109       for (auto &entry : command.entries().drop_front()) {
tools/lldb/source/Commands/CommandObjectLog.cpp
  300       for (const auto &entry : args.entries())
tools/lldb/source/Commands/CommandObjectPlatform.cpp
 1341           for (auto &entry : args.entries()) {
tools/lldb/source/Commands/CommandObjectProcess.cpp
  922     for (auto &entry : command.entries()) {
  985     for (auto &entry : command.entries()) {
tools/lldb/source/Commands/CommandObjectTarget.cpp
  626       for (auto &entry : args.entries()) {
 2204     for (const Args::ArgEntry &arg : command.entries()) {
 2547       for (auto &entry : args.entries()) {
 4322         for (auto &entry : args.entries()) {
tools/lldb/source/Commands/CommandObjectThread.cpp
  851         for (auto &entry : command.entries()) {
tools/lldb/source/Commands/CommandObjectType.cpp
  681     for (auto &arg_entry : command.entries()) {
 1330     for (auto &entry : command.entries()) {
 1356   for (auto &entry : command.entries()) {
 1430   for (auto &arg_entry : command.entries()) {
 1787     for (auto &entry : command.entries()) {
 2230   for (auto &entry : command.entries()) {
 2295   for (auto &arg_entry : command.entries()) {
 2596     for (auto &arg_entry : command.entries()) {
tools/lldb/source/Commands/CommandObjectWatchpoint.cpp
   91   for (auto &entry : args.entries()) {
tools/lldb/source/Core/ValueObject.cpp
  502   for (size_t idx : idxs) {
  518   for (std::pair<size_t, bool> idx : idxs) {
  535   for (ConstString name : names) {
  552   for (std::pair<ConstString, bool> name : names) {
tools/lldb/source/Expression/DWARFExpression.cpp
  878   for (const CallSiteParameter &param : call_edge->GetCallSiteParameters()) {
tools/lldb/source/Host/common/Editline.cpp
  871   for (const CompletionResult::Completion &c : results) {
  889       std::max_element(results.begin(), results.end(), [](auto &c1, auto &c2) {
tools/lldb/source/Host/common/NativeProcessProtocol.cpp
   46   m_signals_to_ignore.insert(signals.begin(), signals.end());
tools/lldb/source/Interpreter/CommandAlias.cpp
   66       for (auto &entry : args.entries()) {
tools/lldb/source/Interpreter/OptionArgParser.cpp
   61   for (const auto &enum_value : enum_values) {
   70   for (const auto &enum_value : enum_values) {
tools/lldb/source/Interpreter/OptionValueBoolean.cpp
   85   for (auto entry : entries)
tools/lldb/source/Interpreter/OptionValueEnumeration.cpp
   92   for (const auto &enumerator : enumerators) {
tools/lldb/source/Interpreter/OptionValueProperties.cpp
   52   for (const auto &definition : defs) {
tools/lldb/source/Interpreter/Options.cpp
  168   for (const auto &def : opt_defs) {
  187     for (const auto &def : opt_defs) {
  338   for (auto &def : opt_defs) {
  447       for (auto &def : opt_defs) {
  472       for (auto &def : opt_defs) {
  500       for (auto &def : opt_defs) {
  509       for (auto &def : opt_defs) {
  557     for (auto &def : opt_defs)
  601         for (const auto &enum_value : opt_defs[i].enum_values) {
  671         for (auto &def : opt_defs) {
  681         for (auto &def : opt_defs) {
  711           for (auto &def : opt_defs) {
  752     for (const auto &enum_value : enum_values)
  923   for (const char *arg : parsed) {
tools/lldb/source/Plugins/ABI/MacOSX-arm/ABIMacOSX_arm.cpp
 1355   llvm::ArrayRef<addr_t>::iterator ai = args.begin(), ae = args.end();
tools/lldb/source/Plugins/ABI/MacOSX-i386/ABIMacOSX_i386.cpp
  751   for (addr_t arg : args) {
tools/lldb/source/Plugins/ABI/SysV-arc/ABISysV_arc.cpp
  178   for (const auto &arg : args)
  223   for (const auto &arg : args) {
  254   for (const auto &arg : args) {
tools/lldb/source/Plugins/ABI/SysV-arm/ABISysV_arm.cpp
 1358   llvm::ArrayRef<addr_t>::iterator ai = args.begin(), ae = args.end();
tools/lldb/source/Plugins/ABI/SysV-i386/ABISysV_i386.cpp
  240   for (addr_t arg : args) {
tools/lldb/source/Plugins/ABI/SysV-mips/ABISysV_mips.cpp
  595   llvm::ArrayRef<addr_t>::iterator ai = args.begin(), ae = args.end();
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
  130     for (const std::pair<IdentifierInfo *, SourceLocation> &component : path)
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionSourceCode.cpp
  396     for (const std::string &module : modules) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
  300   for (auto &component : llvm::ArrayRef<ConstString>(module.path).drop_front()) {
  438     for (clang::ModuleMacro *module_macro :
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
  535            llvm::make_range(imported_modules.begin(), imported_modules.end()));
tools/lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp
  346     for (auto &entry : command.entries()) {
tools/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
 3215     for (const elf::ELFProgramHeader &H : ProgramHeaders()) {
 3363   for (const ELFProgramHeader &H : ProgramHeaders()) {
 3376   for (const ELFProgramHeader &H : ProgramHeaders()) {
tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
  302   for (const auto &tid : tids) {
tools/lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp
  177   for (const elf::ELFProgramHeader &H : segments) {
  525   for (const auto &note : notes) {
  603   for (const auto &note : notes) {
  728   for (const auto &note : notes) {
  775   for (const auto &note : notes) {
tools/lldb/source/Plugins/Process/elf-core/RegisterUtilities.cpp
   17   for (const auto &Entry : RegsetDescs) {
   37   return Iter == Notes.end() ? DataExtractor() : Iter->data;
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
 3639   for (const FileSpec &module_file_spec : module_file_specs) {
 3974   auto range = llvm::make_range(signals.begin(), signals.end());
tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
 4273     for (const FileSpec &spec : module_file_specs)
tools/lldb/source/Plugins/Process/minidump/MinidumpParser.cpp
  284   for (const auto &module : *ExpectedModules) {
  338     for (const auto &memory_desc : *ExpectedMemory) {
  372     for (const auto &memory_desc64 : memory64_list) {
  477   for (const MemoryDescriptor &memory_desc : *ExpectedMemory) {
  507   for (const auto &memory_desc : memory64_list) {
tools/lldb/source/Plugins/Process/minidump/ProcessMinidump.cpp
  384   for (const minidump::Thread &thread : m_thread_list) {
  775       for (const auto &stream_desc : minidump.GetMinidumpFile().streams())
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDwp.cpp
   74   for (const auto &entry : m_debug_cu_index.getRows())
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp
  116   for (llvm::ms_demangle::Node *n : scopes) {
  253     for (llvm::ms_demangle::Node *scope : scopes) {
  525   for (const MSVCUndecoratedNameSpecifier &spec : specs) {
 1145   for (TypeIndex arg_index : arg_indices) {
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbFPOProgramToDWARFExpression.cpp
   47   if (it == register_names.end())
tools/lldb/source/Symbol/CxxModuleHandler.cpp
  155   for (const TemplateArgument &arg : a) {
  227   for (const TemplateArgument &arg : foreign_args.asArray()) {
tools/lldb/source/Symbol/Type.cpp
   39   auto ctx_end = context_chain.end();
   40   for (const CompilerContext &pat : pattern) {
tools/lldb/source/Utility/Args.cpp
  307   for (auto arg : llvm::makeArrayRef(argv, argc)) {
tools/lldb/source/Utility/Log.cpp
   45   for (const auto &category : entry.second.m_channel.categories)
   62   for (const char *category : categories) {
   74     if (cat != entry.second.m_channel.categories.end()) {
tools/lldb/source/Utility/StringList.cpp
  107   for (auto arg : args.drop_front()) {
tools/lldb/tools/lldb-vscode/LLDBUtils.cpp
   22   for (const auto &command : commands) {
tools/lldb/tools/lldb-vscode/lldb-vscode.cpp
  119   for (const auto &s : strs)
tools/lldb/unittests/Expression/CppModuleConfigurationTest.cpp
   45   for (const std::string &path : paths)
tools/lldb/unittests/Process/POSIX/NativeProcessELFTest.cpp
   41   for (auto &pair : auxv_data) {
tools/lldb/unittests/Target/PathMappingListTest.cpp
   29   for (const auto &fail : fails) {
   34   for (const auto &match : matches) {
tools/lldb/unittests/tools/lldb-server/tests/MessageObjects.cpp
  372                        make_range(Bytes.begin(), Bytes.end()))
tools/lldb/unittests/tools/lldb-server/tests/TestClient.cpp
   89   for (StringRef arg : ServerArgs)
   94     for (StringRef arg : InferiorArgs)
tools/llvm-cov/CodeCoverage.cpp
  256   for (const auto &Expansion : Expansions) {
  314     for (const FunctionRecord *Function : Group.getInstantiations()) {
  367       for (const auto &HashMismatch : Coverage->getHashMismatches())
tools/llvm-cov/CoverageExporterJson.cpp
   78   for (const auto &Region : Regions)
  121   for (const auto &Expansion : FileCoverage.getExpansions())
tools/llvm-cov/CoverageReport.cpp
   96   for (StringRef Filename : Files)
   98   for (StringRef Funcname : Functions)
  106   size_t Length = std::accumulate(ColumnWidths.begin(), ColumnWidths.end(), 0);
  283   for (StringRef Filename : Files) {
  329     for (const coverage::FunctionRecord *F : Group.getInstantiations()) {
  368   for (StringRef Filename : Files) {
tools/llvm-cov/CoverageSummaryInfo.cpp
   65   for (const auto &FCS : Summaries.drop_front()) {
tools/llvm-cov/SourceCoverageViewText.cpp
  114   for (const auto *S : Segments) {
  185   for (const auto *S : Segments) {
tools/llvm-cxxdump/llvm-cxxdump.cpp
  352     for (little32_t Offset : VBTable.second) {
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
  369   for (const auto &Name : Names) {
tools/llvm-dwp/llvm-dwp.cpp
  221   for (const DWARFUnitIndex::Entry &E : TUIndex.getRows()) {
  231     for (auto Kind : TUIndex.getColumnKinds()) {
  299   for (auto &C : ContributionOffsets)
  535   for (const auto &Input : Inputs) {
  589     for (const DWARFUnitIndex::Entry &E : CUIndex.getRows()) {
  608       for (auto Kind : CUIndex.getColumnKinds()) {
tools/llvm-elfabi/ELFObjHandler.cpp
   90   for (auto &Entry : DynTable) {
  161   for (Elf_Word Val : Table.buckets()) {
  166       reinterpret_cast<const Elf_Word *>(Table.values(BucketVal).end());
  265   for (auto RawSym : DynSym.drop_front(1)) {
tools/llvm-exegesis/lib/Assembler.cpp
   41   for (const RegisterValue &RV : RegisterInitialValues) {
  119   for (const MCInst &Inst : Insts)
  190   for (const unsigned Reg : LiveIns)
  194   for (const auto &InitValue : RegisterInitialValues) {
  199   for (const unsigned Reg : LiveIns)
tools/llvm-exegesis/lib/Clustering.cpp
  221                                        PointsOfOpcode.end());
tools/llvm-exegesis/lib/CodeTemplate.cpp
  108   for (const auto Bit : getAllExecutionBits())
tools/llvm-exegesis/lib/LlvmState.cpp
   41   for (const unsigned Reg : TheExegesisTarget->getUnavailableRegisters())
tools/llvm-exegesis/lib/MCInstrDescView.cpp
  305   for (const auto &Op : Operands) {
tools/llvm-exegesis/lib/PerfHelper.h
   92   for (const auto &Event : Events) {
tools/llvm-exegesis/lib/SnippetRepetitor.cpp
   77       for (unsigned Reg : Filler.getRegistersSetUp())
tools/llvm-exegesis/lib/Target.cpp
  120              CpuPfmCounters.begin(), CpuPfmCounters.end(),
  128       std::lower_bound(CpuPfmCounters.begin(), CpuPfmCounters.end(), CpuName);
  129   if (Found == CpuPfmCounters.end() || StringRef(Found->CpuName) != CpuName) {
  131     if (CpuPfmCounters.begin() != CpuPfmCounters.end() &&
tools/llvm-exegesis/lib/Uops.cpp
  128   for (const Variable *Var : TiedVariables) {
tools/llvm-lipo/llvm-lipo.cpp
  265     for (auto arch : MachOObjectFile::getValidArchs())
  434   for (const InputFile &IF : InputFiles) {
  468   for (StringRef Arch : VerifyArchList)
  473     for (StringRef Arch : VerifyArchList) {
  482     for (StringRef Arch : VerifyArchList)
  526   for (auto &IB : InputBinaries) {
  534   for (auto &IB : InputBinaries) {
  588   for (const auto &S : Slices) {
  613            }) != Slices.end();
  629   for (auto &IB : InputBinaries) {
  658   for (const auto &S : Slices) {
  748   for (const auto &OB : ReplacementBinaries) {
tools/llvm-lto2/llvm-lto2.cpp
  292     for (const InputFile::Symbol &Sym : Input->symbols()) {
  380       for (auto L : Input->getDependentLibraries())
  386     for (const InputFile::Symbol &Sym : Input->symbols()) {
tools/llvm-mca/Views/BottleneckAnalysis.cpp
   72   for (const ResourceUse &Use : Event.UsedResources) {
  119     for (const InstRef &IR : Event.AffectedInstructions) {
  132     for (const InstRef &IR : Event.AffectedInstructions) {
  139     for (const InstRef &IR : Event.AffectedInstructions) {
tools/llvm-mca/Views/ResourcePressureView.cpp
   56   for (const std::pair<ResourceRef, ResourceCycles> &Use :
  159   for (const MCInst &MCI : Source) {
tools/llvm-mca/Views/SchedulerStatistics.cpp
   76   for (const unsigned Buffer : Buffers) {
   85   for (const unsigned Buffer : Buffers) {
tools/llvm-mca/Views/TimelineView.cpp
   48   for (const unsigned Buffer : Buffers) {
  192   for (const MCInst &Inst : Source) {
  302     for (const MCInst &Inst : Source) {
tools/llvm-mca/llvm-mca.cpp
  467     for (const MCInst &MCI : Insts) {
tools/llvm-nm/llvm-nm.cpp
  654   for (auto I : makeArrayRef(DarwinStabNames))
tools/llvm-objcopy/COFF/Object.cpp
   20   for (Symbol S : NewSymbols) {
   64   for (Section S : NewSections) {
tools/llvm-objcopy/COFF/Object.h
   72     std::copy(In.begin(), In.end(), Opaque);
tools/llvm-objcopy/COFF/Reader.cpp
   71     for (const coff_relocation &R : Relocs)
  158   for (const Symbol &Sym : Obj.getSymbols()) {
tools/llvm-objcopy/COFF/Writer.cpp
  112   for (const auto &S : Obj.getSections())
  116   for (const auto &S : Obj.getSymbols())
  290   for (const auto &S : Obj.getSections()) {
  297   for (const auto &S : Obj.getSections()) {
  300     std::copy(Contents.begin(), Contents.end(), Ptr);
  319   for (const auto &S : Obj.getSymbols()) {
  337         std::copy(Ref.begin(), Ref.end(), Ptr);
  379   for (const auto &S : Obj.getSections()) {
tools/llvm-objcopy/CopyConfig.cpp
  117   for (StringRef Flag : SectionFlags) {
tools/llvm-objcopy/ELF/ELFObjcopy.cpp
  174   for (const auto &Phdr : *PhdrsOrErr) {
  297       std::copy(Sec.OriginalData.begin(), Sec.OriginalData.end(),
tools/llvm-objcopy/ELF/Object.cpp
  198   for (uint8_t X : Data)
  479     std::copy(Sec.OriginalData.begin(), Sec.OriginalData.end(), Buf);
 1270   for (const auto &Phdr : unwrapOrError(HeadersFile.program_headers())) {
 1365   for (const auto &Sym : Symbols) {
 1416   for (const auto &Rel : RelRange) {
 1506   for (const auto &Shdr : unwrapOrError(ElfFile.sections())) {
tools/llvm-objcopy/llvm-objcopy.cpp
  113   for (const NewArchiveMember &Member : NewMembers) {
tools/llvm-objdump/COFFDump.cpp
  142   for (const UnwindCode *I = UCs.begin(), *E = UCs.end(); I < E; ) {
  616     for (const RuntimeFunction &RF : RFs)
  621   for (const RuntimeFunction &RF : RFs) {
tools/llvm-objdump/ELFDump.cpp
   30   for (const typename ELFT::Dyn &Dyn : *DynamicEntriesOrError) {
   44   for (const typename ELFT::Shdr &Sec : *SectionsOrError) {
  138   for (const typename ELFT::Phdr &Phdr : *PhdrRangeOrErr)
  163   for (const typename ELFT::Dyn &Dyn : DynamicEntries) {
  193   for (const typename ELFT::Phdr &Phdr : *ProgramHeaderOrError) {
  312   for (const typename ELFT::Shdr &Shdr : Sections) {
tools/llvm-objdump/llvm-objdump.cpp
  837       for (uint32_t D : makeArrayRef(
  842       for (unsigned char B : Bytes)
tools/llvm-pdbutil/BytesOutputStyle.cpp
  308   for (const auto &Id : Indices) {
tools/llvm-pdbutil/DumpOutputStyle.cpp
  402       std::vector<uint32_t> BV(Blocks.begin(), Blocks.end());
  541   for (const auto &H : Headers)
 1297   for (const auto &I : Indices) {
 1358     for (const auto &I : TiList) {
 1892   for (const auto &Header : Headers) {
 1940           Names.begin(), Names.end(),
 1942       MaxNameLen = (Max == Names.end() ? 0 : Max->size());
tools/llvm-pdbutil/ExplainOutputStyle.cpp
  237   assert(Iter != StreamBlocks.end());
tools/llvm-pdbutil/FormatUtil.cpp
   94   for (const auto &S : Strings) {
tools/llvm-pdbutil/LinePrinter.cpp
  166   for (const auto &R : Runs) {
tools/llvm-pdbutil/MinimalSymbolDumper.cpp
  335   for (const auto &G : Gaps) {
tools/llvm-pdbutil/MinimalTypeDumper.cpp
  305   auto Max = std::max_element(Indices.begin(), Indices.end());
  308   for (auto I : Indices)
  320   auto Max = std::max_element(Indices.begin(), Indices.end());
  323   for (auto I : Indices)
tools/llvm-pdbutil/PrettyClassDefinitionDumper.cpp
   68     for (auto BC : Layout.bases()) {
tools/llvm-pdbutil/PrettyClassLayoutGraphicalDumper.cpp
   38     for (auto &Other : Layout.other_items())
   40     for (auto &Func : Layout.funcs())
   47   for (auto &Item : Layout.layout_items()) {
tools/llvm-pdbutil/TypeReferenceTracker.cpp
  110   for (const auto &Ref : DepList) {
  120     for (TypeIndex RefTI : TIs)
tools/llvm-pdbutil/YAMLOutputStyle.cpp
   91   Obj.Headers->DirectoryBlocks.assign(Blocks.begin(), Blocks.end());
  133                           File.getStreamSizes().end());
  143   for (auto &Stream : StreamMap) {
  145     BlockList.Blocks.assign(Stream.begin(), Stream.end());
tools/llvm-rc/ResourceScriptStmt.h
  817       FixedInfo[Type] = SmallVector<uint32_t, 4>(Value.begin(), Value.end());
tools/llvm-readobj/ARMEHABIPrinter.h
  311     for (const auto &RE : ring()) {
  376   for (const Elf_Sym &Sym : unwrapOrError(FileName, ELF->symbols(Symtab)))
  402   for (const Elf_Shdr &Sec : unwrapOrError(FileName, ELF->sections())) {
  411     for (const Elf_Rel &R : unwrapOrError(FileName, ELF->rels(&Sec))) {
  574   for (const Elf_Shdr &Sec : unwrapOrError(FileName, ELF->sections())) {
tools/llvm-readobj/ARMWinEHPrinter.cpp
  867     for (const EpilogueScope ES : EpilogueScopes) {
tools/llvm-readobj/COFFDumper.cpp
 1830         std::copy(RawEntryNameString.begin(), RawEntryNameString.end(),
tools/llvm-readobj/DwarfCFIEHPrinter.h
   54   for (const auto &Shdr : *Sections)
   69   for (const auto &Phdr : *PHs) {
   88   for (const auto &Shdr : *Sections) {
tools/llvm-readobj/ELFDumper.cpp
  350   if (Syms.begin() == Syms.end())
  357                                }) != Syms.end();
  361   for (const auto &Sym : Syms)
  497     for (const auto &EnumItem : EnumValues)
  508     for (const auto &Flag : EnumValues) {
  870   for (const auto &Shdr : unwrapOrError(FileName, Obj->sections()))
  879   for (const auto &Shdr : unwrapOrError(FileName, Obj.sections()))
 1434   for (const Elf_Phdr &Phdr :
 1444   for (const Elf_Shdr &Sec :
 1568   for (const Elf_Shdr &Sec :
 1710   for (const Elf_Dyn &Dyn : dynamic_table()) {
 1956   for (const auto &Flag : Flags) {
 2180   for (const auto &Entry : dynamic_table())
 2211   unsigned NumSyms = std::distance(Syms.begin(), Syms.end());
 2259   for (const ELFO::Elf_Shdr &Sec :
 2366   for (const auto &Entry : DynTable) {
 2690   for (const auto &Sec : unwrapOrError(ObjF->getFileName(), Obj->sections())) {
 2840   for (const Elf_Shdr &Sec : unwrapOrError(FileName, Obj->sections())) {
 2866     for (uint32_t Ndx : Data.slice(1)) {
 2878   for (const GroupSection &G : Groups)
 2996   for (const Elf_Shdr &Sec : unwrapOrError(this->FileName, Obj->sections())) {
 3031       for (const auto &R : unwrapOrError(this->FileName, Obj->rels(&Sec))) {
 3040       for (const auto &R : unwrapOrError(this->FileName, Obj->relas(&Sec)))
 3046         for (const auto &R : unwrapOrError(this->FileName, Obj->relrs(&Sec)))
 3210   for (const Elf_Shdr &Sec : Sections) {
 3566   for (const auto &Phdr :
 3591   for (const Elf_Phdr &Phdr :
 3595     for (const Elf_Shdr &Sec : unwrapOrError(this->FileName, Obj->sections())) {
 3618   for (const Elf_Shdr &Sec : unwrapOrError(this->FileName, Obj->sections())) {
 3684   for (auto Entry : Table) {
 3709     for (const Elf_Rela &Rela : this->dumper()->dyn_relas())
 3719     for (const Elf_Rel &Rel : this->dumper()->dyn_rels()) {
 3750     for (const Elf_Rela &Rela : DynPLTRelRegion.getAsArrayRef<Elf_Rela>())
 3754     for (const Elf_Rel &Rel : DynPLTRelRegion.getAsArrayRef<Elf_Rel>()) {
 4414                            reinterpret_cast<const Elf_Word *>(Desc.end()));
 4435   for (const auto &B : Desc)
 4657       for (uint8_t B : Descriptor)
 4665     for (const auto &S : Sections) {
 4676     for (const auto &P :
 5017     for (auto &E : Parser.getLocalEntries())
 5032     for (auto &E : Parser.getGlobalEntries()) {
 5084     for (auto &E : Parser.getPltEntries()) {
 5243   for (const Elf_Shdr &Sec : unwrapOrError(this->FileName, Obj->sections())) {
 5271     for (const Elf_Rel &R : unwrapOrError(this->FileName, Obj->rels(Sec))) {
 5280     for (const Elf_Rela &R : unwrapOrError(this->FileName, Obj->relas(Sec)))
 5287       for (const Elf_Relr &R : Relrs)
 5348   for (const Elf_Shdr &Sec : Sections) {
 5406       for (const Elf_Sym &Sym :
 5509   for (auto Entry : Table) {
 5532     for (const Elf_Rela &Rela : this->dumper()->dyn_relas())
 5535     for (const Elf_Rel &Rel : this->dumper()->dyn_rels()) {
 5550     for (const Elf_Rela &Rela : DynPLTRelRegion.getAsArrayRef<Elf_Rela>())
 5553     for (const Elf_Rel &Rel : DynPLTRelRegion.getAsArrayRef<Elf_Rel>()) {
 5599   for (const Elf_Phdr &Phdr :
 5628   for (const Elf_Sym &Sym : Dumper->dynamic_symbols()) {
 5742   for (const Elf_CGProfile &CGPE : CGProfile) {
 5761   const uint8_t *End = Data.end();
 5908     for (const auto &S : Sections) {
 5920     for (const auto &P :
 5939   for (const Elf_Shdr &Shdr : unwrapOrError(this->FileName, Obj->sections())) {
 5945     for (const uint8_t *P = Contents.begin(), *E = Contents.end(); P < E; ) {
 6000     for (auto &E : Parser.getLocalEntries()) {
 6011     for (auto &E : Parser.getGlobalEntries()) {
 6062     for (auto &E : Parser.getPltEntries()) {
tools/llvm-readobj/ObjDumper.cpp
   47   for (StringRef Section : Sections) {
tools/llvm-readobj/WasmDumper.cpp
  187       for (const WasmSegment &Segment : Obj->dataSegments()) {
  200       for (const wasm::WasmLimits &Memory : Obj->memories()) {
tools/llvm-readobj/Win64EHDumper.cpp
  255     for (const UnwindCode *UCI = UC.begin(), *UCE = UC.end(); UCI < UCE; ++UCI) {
  331     for (const auto &RF : RuntimeFunctions) {
tools/llvm-readobj/WindowsResourceDumper.cpp
   27   for (UTF16 Ch : UTF16Str) {
tools/llvm-readobj/XCOFFDumper.cpp
  143   for (const auto &Sec : Sections) {
  155     for (auto Reloc : Relocations) {
  495   for (const T &Sec : Sections) {
tools/lto/lto.cpp
  545     for (auto Arg : ArrayRef<const char *>(options, number))
tools/obj2yaml/dwarf2yaml.cpp
  172                 std::copy(BlockData.begin(), BlockData.end(),
tools/obj2yaml/elf2yaml.cpp
  178   for (const Elf_Shdr &Sec : Sections) {
  217   for (const Elf_Shdr &Sec : Sections) {
  366   for (const auto &Sym : (*SymtabOrErr).drop_front()) {
  594   for (const Elf_Dyn &Dyn : *DynTagsOrErr)
  616     for (const Elf_Rel &Rel : *Rels) {
  626     for (const Elf_Rela &Rel : *Rels) {
  672   for (const Elf_Word &E : *EntriesOrErr)
  827   for (const Elf_Half &E : *VersionsOrErr)
  924   for (Elf_Word Member : *MembersOrErr) {
tools/obj2yaml/macho2yaml.cpp
  257   for (auto OpCode = RebaseOpcodes.begin(); OpCode != RebaseOpcodes.end();
  305   for (auto OpCode = OpcodeBuffer.begin(); OpCode != OpcodeBuffer.end();
  464   processExportNode(ExportsTrie.begin(), ExportsTrie.end(), LEData.ExportTrie);
tools/obj2yaml/wasm2yaml.cpp
   67     for (const llvm::wasm::WasmFunctionName &Func : Obj.debugNames()) {
   80     for (StringRef ComdatName : Comdats)
   82     for (auto &Func : Obj.functions()) {
   90     for (const object::WasmSegment &Segment : Obj.dataSegments()) {
  161     for (auto &E : Obj.getTargetFeatures()) {
  198       for (const auto &FunctionSig : Obj.types()) {
  212       for (auto &Import : Obj.imports()) {
  243       for (const auto &Func : Obj.functionTypes()) {
  251       for (const wasm::WasmTable &Table : Obj.tables()) {
  259       for (const wasm::WasmLimits &Memory : Obj.memories()) {
  267       for (auto &Global : Obj.globals()) {
  280       for (auto &Event : Obj.events()) {
  298       for (auto &Export : Obj.exports()) {
  310       for (auto &Segment : Obj.elements()) {
  324       for (auto &Func : Obj.functions()) {
  341       for (const object::WasmSegment &Segment : Obj.dataSegments()) {
tools/polly/include/polly/CodeGen/RuntimeDebugBuilder.h
  111     Values.insert(Values.end(), Array.begin(), Array.end());
tools/polly/include/polly/ScopInfo.h
 1552     Instructions.assign(Range.begin(), Range.end());
tools/polly/lib/Analysis/ScopBuilder.cpp
 1261   for (auto *Stmt : scop->getStmtListFor(RN)) {
 1377   for (auto MemberTy : DescriptorDimTy->elements()) {
 1997   for (Instruction *Inst : ModeledInsts) {
 2025   for (Instruction *Inst : ModeledInsts) {
 2075   for (Instruction *Inst : ModeledInsts) {
tools/polly/lib/Analysis/ScopInfo.cpp
  341                         NewSizes.end());
  893       Sizes(Sizes.begin(), Sizes.end()), AccessInstruction(AccessInst),
  895       Subscripts(Subscripts.begin(), Subscripts.end()), AccessRelation(nullptr),
tools/polly/lib/CodeGen/BlockGenerators.cpp
  780                                MA->getIncoming().end(),
 1644   for (auto &Pair : Incoming) {
tools/polly/lib/CodeGen/CodeGeneration.cpp
  293   for (auto *SubF : NodeBuilder.getParallelSubfunctions())
tools/polly/lib/CodeGen/RuntimeDebugBuilder.cpp
  122   for (auto Val : Values) {
  182   ToPrint.insert(ToPrint.end(), Values.begin(), Values.end());
  265   Arguments.insert(Arguments.end(), Values.begin(), Values.end());
tools/polly/lib/Support/RegisterPasses.cpp
  636     for (const auto &E : Pipeline)
  673   for (auto &Element : Pipeline) {
tools/polly/lib/Support/VirtualInstruction.cpp
  287   WorklistInsts.append(RootInsts.begin(), RootInsts.end());
  288   WorklistAccs.append(RootAccs.begin(), RootAccs.end());
  342           WorklistAccs.append(IncomingMAs.begin(), IncomingMAs.end());
  356           for (auto Incoming : Acc->getIncoming()) {
tools/polly/lib/Transform/DeLICM.cpp
  621     for (auto *MA : S->getValueUses(SAI))
  768     for (auto *MA : S->getValueUses(SAI)) {
  807     for (auto *MA : S->getPHIIncomings(SAI)) {
  878     for (auto *MA : S->getPHIIncomings(SAI))
  969     for (auto *MA : S->getPHIIncomings(SAI)) {
 1093         for (auto *PHIWrite : S->getPHIIncomings(SAI)) {
 1096           for (auto Incoming : PHIWrite->getIncoming()) {
tools/polly/lib/Transform/MaximalStaticExpansion.cpp
  175     for (auto MA : S.getValueUses(SAI))
  188     for (auto Write : Writes) {
  419   for (auto MA : S.getPHIIncomings(SAI))
tools/polly/lib/Transform/ZoneAlgo.cpp
  550   for (MemoryAccess *MA : S->getPHIIncomings(SAI)) {
  911   for (MemoryAccess *Incoming : Incomings) {
 1035       for (MemoryAccess *MA : S->getPHIIncomings(SAI)) {
unittests/ADT/ArrayRefTest.cpp
  133   ArrayRef<int> AR2(AR1.end() - 1, 1);
unittests/Analysis/UnrollAnalyzerTest.cpp
   41       for (auto *BB : L->getBlocks())
unittests/DebugInfo/DWARF/DwarfGenerator.cpp
  212   Contents.insert(Contents.end(), Operands.begin(), Operands.end());
  220   Contents.insert(Contents.end(), Operands.begin(), Operands.end());
  242   for (auto Entry : Data) {
unittests/DebugInfo/MSF/MSFBuilderTest.cpp
  382   std::vector<uint32_t> Blocks(BlocksRef.begin(), BlocksRef.end());
unittests/DebugInfo/MSF/MappedBlockStreamTest.cpp
   32       : Blocks(Blocks.begin(), Blocks.end()), Data(Data.begin(), Data.end()) {}
unittests/Remarks/YAMLRemarksSerializerTest.cpp
   41   for (const remarks::Remark &R : Rs)
unittests/Support/ItaniumManglingCanonicalizerTest.cpp
  283   for (const auto &Testcase : Testcases) {
unittests/Support/VirtualFileSystemTest.cpp
  753   SmallVector<StringRef, 4> Expected(ExpectedOut.begin(), ExpectedOut.end());
usr/include/c++/7.4.0/bits/range_access.h
   68     end(_Container& __cont) -> decltype(__cont.end())
   69     { return __cont.end(); }
   78     end(const _Container& __cont) -> decltype(__cont.end())
   79     { return __cont.end(); }
utils/TableGen/AsmMatcherEmitter.cpp
 1226         RegisterSet(RC.getOrder().begin(), RC.getOrder().end()));
 1303                                                    RC.getOrder().end())];
 1362     for (Init *I : Supers->getValues()) {
 1503     for (const CodeGenInstruction *CGI : Target.getInstructionsByEnumValue()) {
utils/TableGen/CodeEmitterGen.cpp
  300     for (const RecordVal &RV : R->getValues()) {
  311   for (const RecordVal &RV : EncodingDef->getValues()) {
  357   for (const CodeGenInstruction *CGI : NumberedInstructions) {
  403   for (const CodeGenInstruction *CGI : NumberedInstructions) {
  551   for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue()) {
  612   for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue()) {
utils/TableGen/CodeGenDAGPatterns.cpp
   70   for (const ValueTypeByHwMode &VVT : VTList) {
  971       for (Init *Val : AddressSpaces->getValues()) {
 1770     for (Init *I : LI->getValues()) {
 2659   for (Init *I : RawPat->getValues())
 3562   for (Init *I : LI->getValues()) {
 3862   for (Init *I : L->getValues()) {
utils/TableGen/CodeGenMapTable.cpp
  134     for (Init *I : ColValList->getValues()) {
  244     for (Init *RowField : RowFields->getValues()) {
  317   for (Init *RowField : RowFields->getValues()) {
  491     for (Init *CF : ColFields->getValues()) {
utils/TableGen/CodeGenRegisters.cpp
  125     ConcatenationOf.assign(Parts.begin(), Parts.end());
  127     assert(std::equal(Parts.begin(), Parts.end(),
  679       for (const auto &SuperPair : Supers)
utils/TableGen/CodeGenSchedule.cpp
   37   for (unsigned Idx : V)
  120       for (auto *Inst : Generics) {
  142           std::equal_range(Pseudos.begin(), Pseudos.end(), Prefix, Comp());
  143       auto Range2 = std::equal_range(NonPseudos.begin(), NonPseudos.end(),
  274   int64_t MaxIndex = *std::max_element(Indices.begin(), Indices.end());
  277   for (const int64_t Index : Indices) {
  299   for (const Record *Def : Fn.getDefinitions()) {
  330   for (const Record *Def : Fn.getDefinitions()) {
  599   for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue()) {
  714   for (auto I = Seq.begin(), E = Seq.end(); I != E; ++I) {
  875   for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue()) {
  902   for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue()) {
  981   for (unsigned Idx : OperWrites) {
  986   for (unsigned Idx : OperReads) {
 1023                    ProcIndices.begin(), ProcIndices.end(),
 1085               for (Record *Inst : InstDefs) {
 1121           for (Record *InstDef : InstDefs) {
 1137     for (Record *InstDef : InstDefs)
 1363   for (const PredCheck &PC: Term) {
 1403   for (const PredTransition &PTI : Transitions) {
 1653          I = LastTransitions.begin(), E = LastTransitions.end(); I != E; ++I) {
 1697                                             ProcIndices.end());
 1699   for (unsigned WriteIdx : OperWrites) {
 1708   for (unsigned ReadIdx : OperReads) {
 1932   for (const CodeGenProcModel &ProcModel : procModels()) {
 1936     for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue()) {
 2014       for (unsigned Idx : ProcIndices)
 2018       for (unsigned Idx : ProcIndices)
 2047   for (unsigned Idx : Writes)
 2050   for (unsigned Idx : Reads)
utils/TableGen/CodeGenTarget.cpp
  235   for (const CodeGenInstruction *Inst : getInstructionsByEnumValue()) {
  369       Result.insert(Result.end(), InVTs.begin(), InVTs.end());
utils/TableGen/CodeGenTarget.h
  178   inst_iterator inst_end() const { return getInstructionsByEnumValue().end(); }
utils/TableGen/DAGISelMatcher.h
  187     : Matcher(Scope), Children(children.begin(), children.end()) {
  471     : Matcher(SwitchOpcode), Cases(cases.begin(), cases.end()) {}
  521   : Matcher(SwitchType), Cases(cases.begin(), cases.end()) {}
  910     : Matcher(EmitMergeInputChains), ChainNodes(nodes.begin(), nodes.end()) {}
 1003       VTs(vts.begin(), vts.end()), Operands(operands.begin(), operands.end()),
 1003       VTs(vts.begin(), vts.end()), Operands(operands.begin(), operands.end()),
 1096   : Matcher(CompleteMatch), Results(results.begin(), results.end()),
utils/TableGen/DAGISelMatcherGen.cpp
  466   for (const std::string &Name : Names) {
  477     for (const std::string &Name : Names) {
  493   for (const std::string &Name : Names)
utils/TableGen/DFAEmitter.cpp
  338   for (StringRef A : Parent->getActionSymbolFields()) {
utils/TableGen/DFAPacketizerEmitter.cpp
  472     for (unsigned Stage : InsnClass) {
  504     for (unsigned Resources : InsnClass) {
utils/TableGen/FixedLenDecoderEmitter.cpp
 2393   for (const auto &NumberedInstruction : NumberedInstructions) {
 2411   for (const auto &NumberedInstruction : NumberedInstructions) {
utils/TableGen/GlobalISelEmitter.cpp
  240       for (Init *Val : AddrSpaces->getValues()) {
  668   for (Matcher *Rule : Rules)
 1654     for (const CodeGenInstruction *I : Target.getInstructionsByEnumValue())
 1889         MMOIdx(MMOIdx), AddrSpaces(AddrSpaces.begin(), AddrSpaces.end()) {}
 3454   for (const Predicate &P : Predicates) {
 3518         for (Init *Val : AddrSpaces->getValues()) {
 4084   for (auto PhysInput : InsnMatcher.getPhysRegInputs()) {
 4353   for (const auto *DefaultOp : DefaultOps->getArgs()) {
 4904   for (Matcher *Rule : Rules) {
utils/TableGen/InstrDocsEmitter.cpp
   69   for (const CodeGenInstruction *II : Target.getInstructionsByEnumValue()) {
utils/TableGen/InstrInfoEmitter.cpp
  202   for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue()) {
  228   for (const CodeGenInstruction *Inst : NumberedInstructions) {
  374     for (const CodeGenInstruction *Inst : NumberedInstructions) {
  530   for (const CodeGenInstruction *II : Target.getInstructionsByEnumValue()) {
  557   for (const CodeGenInstruction *Inst : NumberedInstructions) {
  573   for (const CodeGenInstruction *Inst : NumberedInstructions) {
  776   for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue())
utils/TableGen/PredicateExpander.cpp
  432   for (const PredicateInfo &PI : OI.getPredicates()) {
  481   for (const OpcodeGroup &Group : Fn.getGroups()) {
  482     for (const Record *Opcode : Group.getOpcodes()) {
utils/TableGen/RegisterInfoEmitter.cpp
  295            PSetE = PSetIDs.end(); PSetI != PSetE; ++PSetI) {
  949     LaneMaskVec.insert(LaneMaskVec.begin(), RUMasks.begin(), RUMasks.end());
 1049     for (Record *Reg : Order) {
 1058     for (Record *Reg : Order) {
 1225       AllocatableRegs.insert(Order.begin(), Order.end());
 1358       for (const auto *Super : Supers)
 1651     for (const CodeGenRegisterClass *SRC : RC.getSuperClasses()) {
utils/TableGen/SearchableTableEmitter.cpp
  751     for (const RecordVal &Field : Class->getValues()) {
utils/TableGen/SubtargetEmitter.cpp
  385   for (const CodeGenProcModel &ProcModel : SchedModels.procModels()) {
  438   for (const CodeGenProcModel &ProcModel : SchedModels.procModels()) {
  990   for (const CodeGenSchedClass &SC : SchedModels.schedClasses()) {
 1340   for (const CodeGenProcModel &PM : SchedModels.procModels()) {
 1418   for (const CodeGenProcModel &ProcModel : SchedModels.procModels()) {
 1525   for (const CodeGenSchedClass &SC : SchedModels.schedClasses()) {
 1659   for (const STIPredicateFunction &Fn : SchedModels.getSTIPredicates())
 1763   for (const STIPredicateFunction &Fn : SchedModels.getSTIPredicates())
 1775   for (const STIPredicateFunction &Fn : SchedModels.getSTIPredicates())
 1882   for (const STIPredicateFunction &Fn : SchedModels.getSTIPredicates())
utils/TableGen/X86EVEX2VEXTablesEmitter.cpp
  177   for (const CodeGenInstruction *Inst : NumberedInstructions) {
utils/TableGen/X86FoldTablesEmitter.cpp
  586   for (const CodeGenInstruction *Inst : NumberedInstructions) {
utils/unittest/googlemock/include/gmock/gmock-matchers.h
 2569            it != lhs_stl_container.end(); ++it) {
 2570         if (internal::ArrayAwareFind(expected_.begin(), expected_.end(), *it) ==
 2571             expected_.end()) {
 2585            it != expected_.end(); ++it) {
 2587                 lhs_stl_container.begin(), lhs_stl_container.end(), *it) ==
 2588             lhs_stl_container.end()) {
 3186     for (; it != stl_container.end() && exam_pos != count(); ++it, ++exam_pos) {
 3207     for (; it != stl_container.end(); ++it) {
 3391                                          stl_container.end(),
utils/unittest/googletest/include/gtest/gtest-printers.h
  378        it != container.end(); ++it, ++count) {