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

References

examples/Kaleidoscope/Chapter9/toy.cpp
  287     for (const auto &Arg : Args)
  347     for (const auto &NamedVar : VarNames)
include/llvm/ADT/MapVector.h
   71   iterator end() { return Vector.end(); }
  149     return Pos == Map.end()? Vector.end() :
  176     if (Next == Vector.end())
  211   for (auto I = O, E = Vector.end(); I != E; ++I) {
  226   Vector.erase(O, Vector.end());
include/llvm/ADT/PriorityWorklist.h
  122     V.insert(V.end(), std::begin(Input), std::end(Input));
  197     if (E == V.end())
  202     V.erase(E, V.end());
include/llvm/ADT/STLExtras.h
 1129   for (auto V : C)
 1151     -> decltype(std::distance(Range.begin(), Range.end())) {
 1152   return std::distance(Range.begin(), Range.end());
 1333   C.erase(remove_if(C, P), C.end());
include/llvm/ADT/SetVector.h
   93     return vector_.end();
  160       assert(I != vector_.end() && "Corrupted SetVector instances!");
  202     if (I == vector_.end())
  204     vector_.erase(I, vector_.end());
include/llvm/ADT/StringExtras.h
  379   return join(R.begin(), R.end(), Separator);
include/llvm/ADT/UniqueVector.h
   81   iterator end() { return Vector.end(); }
include/llvm/Analysis/BlockFrequencyInfoImpl.h
 1067   std::reverse(RPOT.begin(), RPOT.end());
include/llvm/Analysis/CallGraph.h
  190   inline iterator end() { return CalledFunctions.end(); }
include/llvm/Analysis/Interval.h
  106   return I->Successors.end();
  116   return I->Predecessors.end();
include/llvm/Analysis/IntervalIterator.h
   84   Int->Nodes.insert(Int->Nodes.end(), I->Nodes.begin(), I->Nodes.end());
   84   Int->Nodes.insert(Int->Nodes.end(), I->Nodes.begin(), I->Nodes.end());
  231                                           Int->Successors.end(), NodeHeader),
  232                               Int->Successors.end());
include/llvm/Analysis/LoopInfo.h
  386     assert(I != SubLoops.end() && "Cannot remove end iterator!");
  412     std::reverse(Blocks.begin() + from, Blocks.end());
  443     assert(I != Blocks.end() && "N is not in this list!");
  485     for (auto *SubLoop : SubLoops)
  874     for (auto *L : TopLevelLoops)
  886     for (auto *L : TopLevelLoops)
  972     assert(I != TopLevelLoops.end() && "Old loop not at top level!");
include/llvm/Analysis/LoopInfoImpl.h
  271   assert(I != SubLoops.end() && "OldChild not in loop!");
  443       ReverseCFGWorklist.insert(ReverseCFGWorklist.end(),
  515                  Subloop->getSubLoopsVector().end());
include/llvm/Analysis/RegionInfo.h
  562   iterator end() { return children.end(); }
include/llvm/Analysis/RegionInfoImpl.h
  398                        }) == children.end() &&
  432       std::move_iterator<typename RegionSet::iterator>(Keep.end()));
  443   assert(I != children.end() && "Region does not exit. Unable to remove.");
include/llvm/Analysis/Trace.h
   87   iterator                end  ()       { return BasicBlocks.end();   }
include/llvm/BinaryFormat/MsgPackDocument.h
  226   ArrayTy::iterator end() { return Array->end(); }
include/llvm/Bitstream/BitstreamWriter.h
  223       CurAbbrevs.insert(CurAbbrevs.end(), Info->Abbrevs.begin(),
  224                         Info->Abbrevs.end());
include/llvm/CodeGen/GCMetadata.h
  135   iterator end() { return SafePoints.end(); }
  140   roots_iterator roots_end() { return Roots.end(); }
  169   FuncInfoVec::iterator funcinfo_end() { return Functions.end(); }
include/llvm/CodeGen/LiveInterval.h
  620       assert(std::is_sorted(R.begin(), R.end()));
  621       auto Idx = R.begin(), EndIdx = R.end();
include/llvm/CodeGen/LiveVariables.h
   95       if (I == Kills.end())
include/llvm/CodeGen/MachineBasicBlock.h
  266   pred_iterator        pred_end()         { return Predecessors.end();   }
  282   succ_iterator        succ_end()         { return Successors.end();     }
  456     BranchProbability::normalizeProbabilities(Probs.begin(), Probs.end());
include/llvm/CodeGen/MachineOutliner.h
  216     for (Candidate &C : Candidates)
include/llvm/CodeGen/MachineScheduler.h
  552   iterator end() { return Queue.end(); }
include/llvm/CodeGen/PBQPRAConstraint.h
   53     for (auto &C : Constraints)
include/llvm/CodeGen/ScheduleDAG.h
  681       return nodes_iterator(G->SUnits.end());
  765     iterator end() { return Index2Node.end(); }
include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h
  151       for (auto &X : Items) {
  160       for (auto &X : Items) {
  183       for (auto &Item : Items) {
include/llvm/DebugInfo/CodeView/SymbolVisitorCallbackPipeline.h
   25     for (auto Visitor : Pipeline) {
   33     for (auto Visitor : Pipeline) {
   41     for (auto Visitor : Pipeline) {
   49     for (auto Visitor : Pipeline) {
include/llvm/DebugInfo/CodeView/TypeRecord.h
  706     MethodNames.insert(MethodNames.end(), Methods.begin(), Methods.end());
include/llvm/DebugInfo/CodeView/TypeVisitorCallbackPipeline.h
   26     for (auto Visitor : Pipeline) {
   34     for (auto Visitor : Pipeline) {
   42     for (auto Visitor : Pipeline) {
   50     for (auto Visitor : Pipeline) {
   58     for (auto Visitor : Pipeline) {
   66     for (auto Visitor : Pipeline) {
   74     for (auto Visitor : Pipeline) {
  100     for (auto Visitor : Pipeline) {
  109     for (auto Visitor : Pipeline) {
include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h
   56   iterator end() { return Instructions.end(); }
include/llvm/DebugInfo/DWARF/DWARFUnit.h
  481     if (It != DieArray.end() && It->getOffset() == Offset)
  495     return die_iterator_range(DieArray.begin(), DieArray.end());
include/llvm/ExecutionEngine/JITLink/JITLink.h
  222     return make_range(Edges.begin(), Edges.end());
  802                       section_iterator(Sections.end()));
  823     return make_range(defined_symbol_iterator(Sections.begin(), Sections.end()),
  824                       defined_symbol_iterator(Sections.end(), Sections.end()));
  824                       defined_symbol_iterator(Sections.end(), Sections.end()));
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
  232       for (auto BLK : BaseLayerVModuleKeys)
  241       for (auto &BLK : BaseLayerVModuleKeys)
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
  158       for (auto &Frame : RegisteredEHFrames) {
  167       for (auto &ObjAllocs : Unmapped) {
  182       for (auto &ObjAllocs : Unfinalized) {
  197       for (auto &EHFrame : UnfinalizedEHFrames) {
  271       for (auto &Alloc : Allocs) {
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h
  179     for (auto &Arg : Args)
include/llvm/ExecutionEngine/Orc/RPCSerialization.h
  605     for (auto &E : V)
include/llvm/FuzzMutate/Random.h
   54     for (auto &I : Items)
include/llvm/IR/InstrTypes.h
 1070     Inputs.insert(Inputs.end(), OBU.Inputs.begin(), OBU.Inputs.end());
include/llvm/IR/ModuleSummaryIndex.h
 1390           FunctionSummary::ExternalNode.CallGraphEdgeList.end(),
 1394     return ChildIteratorType(F->CallGraphEdgeList.end(), &valueInfoFromEdge);
 1408       return FunctionSummary::ExternalNode.CallGraphEdgeList.end();
 1412     return F->CallGraphEdgeList.end();
include/llvm/IR/ModuleSummaryIndexYAML.h
  216     for (auto &FSum : FSums) {
  218       for (auto &RefGUID : FSum.Refs) {
  238       for (auto &Sum : P.second.SummaryList) {
  290       index.CfiFunctionDefs = {CfiFunctionDefs.begin(), CfiFunctionDefs.end()};
  294                                 CfiFunctionDecls.end()};
include/llvm/IR/TypeFinder.h
   50   iterator end() { return StructTypes.end(); }
include/llvm/MC/MCAssembler.h
  339   iterator end() { return Sections.end(); }
  350   symbol_iterator symbol_end() { return Symbols.end(); }
  379     return IndirectSymbols.end();
  409   data_region_iterator data_region_end() { return DataRegions.end(); }
include/llvm/PassAnalysisSupport.h
  157     for (const auto &AnalysisImpl : AnalysisImpls) {
include/llvm/ProfileData/InstrProf.h
  545   AddrToMD5Map.erase(std::unique(AddrToMD5Map.begin(), AddrToMD5Map.end()),
  546                      AddrToMD5Map.end());
  560       std::lower_bound(MD5NameMap.begin(), MD5NameMap.end(), FuncMD5Hash,
  563   if (Result != MD5NameMap.end() && Result->first == FuncMD5Hash)
  571       std::lower_bound(MD5FuncMap.begin(), MD5FuncMap.end(), FuncMD5Hash,
  574   if (Result != MD5FuncMap.end() && Result->first == FuncMD5Hash)
include/llvm/Support/BinaryItemStream.h
   92         std::lower_bound(ItemEndOffsets.begin(), ItemEndOffsets.end(), Offset);
include/llvm/Support/CommandLine.h
 1463   iterator end() { return Storage.end(); }
include/llvm/Support/Error.h
  401         for (auto &Payload : E2List.Payloads)
  910     for (auto &P : List.Payloads)
include/llvm/Support/GenericDomTree.h
   77   iterator end() { return Children.end(); }
  122     assert(I != IDom->Children.end() &&
  631       assert(I != IDom->Children.end() &&
include/llvm/Support/GenericDomTreeConstruction.h
 1144     assert(ChIt != IDom->Children.end());
 1323     for (const NodePtr N : NumToNode) {
include/llvm/Support/JSON.h
  180   iterator end() { return V.end(); }
include/llvm/Support/VirtualFileSystem.h
  614     iterator contents_end() { return Contents.end(); }
include/llvm/Support/YAMLTraits.h
  874     if (this->canElideEmptySequence() && !(Val.begin() != Val.end()))
 1100     for (StringRef key : io.keys())
lib/Analysis/AliasAnalysis.cpp
   65   for (auto &AA : AAs)
   92   for (AnalysisKey *ID : AADeps)
  112   for (const auto &AA : AAs) {
  128   for (const auto &AA : AAs)
  138   for (const auto &AA : AAs) {
  187   for (const auto &AA : AAs) {
  254   for (const auto &AA : AAs) {
  385   for (const auto &AA : AAs) {
  399   for (const auto &AA : AAs) {
lib/Analysis/AliasSetTracker.cpp
   90     UnknownInsts.insert(UnknownInsts.end(), AS.UnknownInsts.begin(), AS.UnknownInsts.end());
   90     UnknownInsts.insert(UnknownInsts.end(), AS.UnknownInsts.begin(), AS.UnknownInsts.end());
  624   for (auto Cur : ASVector) {
lib/Analysis/BlockFrequencyInfoImpl.cpp
  647   for (auto &I : Nodes)
lib/Analysis/CFLAndersAliasAnalysis.cpp
  752     for (const auto &Dst : WorkList) {
  796     for (const auto &Item : WorkList)
lib/Analysis/CGSCCPassManager.cpp
   70   for (auto &Pass : Passes) {
lib/Analysis/CallGraph.cpp
  188     assert(I != CalledFunctions.end() && "Cannot find callsite to remove!");
  215     assert(I != CalledFunctions.end() && "Cannot find callee to remove!");
  232     assert(I != CalledFunctions.end() && "Cannot find callsite to remove!");
lib/Analysis/IntervalPartition.cpp
   53   for (Interval::node_iterator It = I->Nodes.begin(), End = I->Nodes.end();
   64   for (BasicBlock *Successor : Int->Successors)
lib/Analysis/LazyValueInfo.cpp
  344     worklist.insert(worklist.end(), succ_begin(ToUpdate), succ_end(ToUpdate));
lib/Analysis/LoopAccessAnalysis.cpp
 1665              I1E = Accesses[*AI].end(); I1 != I1E; ++I1)
 1670                    I2E = (OI == AI ? I1E : Accesses[*OI].end());
lib/Analysis/MemoryDependenceAnalysis.cpp
  807     for (auto &Entry : Cache)
 1058         std::upper_bound(Cache.begin(), Cache.end() - 1, Val);
 1068           std::upper_bound(Cache.begin(), Cache.end(), Val);
 1136         for (auto &Entry : CacheInfo->NonLocalDeps)
 1156         for (auto &Entry : CacheInfo->NonLocalDeps)
 1179       for (auto &Entry : *Cache) {
 1193     for (auto &Entry : *Cache) {
 1547     for (auto &Entry : BlockMap)
 1628       for (auto &Entry : INLD.first) {
 1668       for (auto &Entry : NLPDI) {
lib/Analysis/ModuleSummaryAnalysis.cpp
  539   for (auto &P : VTableFuncs) {
lib/Analysis/ProfileSummaryInfo.cpp
   75   if (It == DS.end())
lib/Analysis/StratifiedSets.h
  270     for (auto &Link : Links) {
  279     for (auto &Link : StratLinks) {
lib/Analysis/TargetLibraryInfo.cpp
 1512   VectorDescs.insert(VectorDescs.end(), Fns.begin(), Fns.end());
 1515   ScalarDescs.insert(ScalarDescs.end(), Fns.begin(), Fns.end());
lib/AsmParser/LLParser.cpp
  497   for (auto &MD : MDs)
 7511     for (auto TIDRef : FwdRefTIDs->second) {
 7600     for (auto P : I.second) {
 7618     for (auto TIDRef : FwdRefTIDs->second) {
 7941     for (auto VIRef : FwdRefVIs->second) {
 7952     for (auto AliaseeRef : FwdRefAliasees->second) {
 8353     for (auto P : I.second) {
 8440     for (auto P : I.second) {
 8489   for (auto &VC : VContexts) {
 8501     for (auto P : I.second) {
 8596     for (auto P : I.second) {
 8637     for (auto P : I.second) {
 8676     for (auto P : I.second) {
lib/Bitcode/Reader/BitcodeAnalyzer.cpp
  690       std::reverse(FreqPairs.begin(), FreqPairs.end());
lib/Bitcode/Reader/BitcodeReader.cpp
 2914   for (uint64_t BitPos : DeferredMetadataInfo) {
 2985   for (auto &Pair : UpgradedVariables) {
 3490           std::reverse(FunctionsWithBodies.begin(), FunctionsWithBodies.end());
 6124       PendingTypeTests.insert(PendingTypeTests.end(), Record.begin(),
lib/Bitcode/Reader/MetadataLoader.cpp
  485     for (auto CU_SP : CUSubprograms)
lib/Bitcode/Reader/ValueList.cpp
  196           assert(It != ResolveConstants.end() && It->first == *I);
lib/Bitcode/Writer/BitcodeWriter.cpp
 2102     for (auto &Elt : IndexPos) {
 3141   SmallVector<uint64_t, 64> Record(Order.Shuffle.begin(), Order.Shuffle.end());
 4384   for (Module *M : Mods) {
lib/Bitcode/Writer/ValueEnumerator.cpp
  736   for (const Metadata *MD : MDs)
  800   MDs.insert(MDs.end(), FunctionMDs.begin() + R.First,
lib/Bitstream/Reader/BitstreamReader.cpp
   30       CurAbbrevs.insert(CurAbbrevs.end(), Info->Abbrevs.begin(),
lib/CodeGen/AsmPrinter/AccelTable.cpp
   40   array_pod_sort(Uniques.begin(), Uniques.end());
   42       std::unique(Uniques.begin(), Uniques.end());
   63         std::unique(E.second.Values.begin(), E.second.Values.end()),
   64         E.second.Values.end());
   83   for (auto &Bucket : Buckets)
  345       for (const auto *V : Hash->Values)
  402       for (auto *Value : Hash->Values) {
  506       for (const auto *Value : Hash->Values)
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 1434       for (const auto &Stub : Stubs) {
 1451       for (const auto &Stub : Stubs) {
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
  549     for (auto I = RestrRegs.begin(), E = RestrRegs.end(); I != E; I++) {
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
 1084     for (auto Annot : FI.Annotations) {
 1102     for (auto HeapAllocSite : FI.HeapAllocSites) {
 2161   for (const ClassInfo::MemberInfo &IndirectField : NestedInfo.Members)
 2324   for (const DIDerivedType *I : Info.Inheritance) {
 2352   for (ClassInfo::MemberInfo &MemberInfo : Info.Members) {
 2430   for (const DIType *Nested : Info.NestedTypes) {
lib/CodeGen/AsmPrinter/DIE.cpp
  142   for (DIEAbbrev *Abbrev : Abbreviations)
lib/CodeGen/AsmPrinter/DebugLocStream.cpp
   33                  Comments.end());
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
 2490   for (const SymbolCU &SCU : ArangeLabels) {
 2579   for (DwarfCompileUnit *CU : CUs) {
 2616     for (const ArangeSpan &Span : List) {
lib/CodeGen/AsmPrinter/WinCFGuard.cpp
   40   LongjmpTargets.insert(LongjmpTargets.end(), MF->getLongjmpTargets().begin(),
   54   for (const Function *F : Functions)
   59   for (const MCSymbol *S : LongjmpTargets) {
lib/CodeGen/BranchFolding.cpp
  741   MPIterator HighestMPIter = std::prev(MergePotentials.end());
  742   for (MPIterator CurMPIter = std::prev(MergePotentials.end()),
  774   for (CurMPIter = std::prev(MergePotentials.end()),
  786   MergePotentials.erase(CurMPIter, MergePotentials.end());
  981   array_pod_sort(MergePotentials.begin(), MergePotentials.end());
 1230   for (const auto &Src : SameTails) {
lib/CodeGen/CodeGenPrepare.cpp
 6892   for (GetElementPtrInst *UGEPI : UGEPIs) {
 6900   for (GetElementPtrInst *UGEPI : UGEPIs) {
lib/CodeGen/DFAPacketizer.cpp
  184   for (auto &M : Mutations)
  214       for (MachineInstr *MI : CurrentPacketMIs) {
  246   for (SUnit &SU : VLIWScheduler->SUnits)
  288       for (auto MJ : CurrentPacketMIs) {
lib/CodeGen/ExecutionDomainFix.cpp
  215   for (DomainValue *OldLiveReg : MBBOutRegsInfos[MBBNumber]) {
  462     for (DomainValue *OutLiveReg : OutLiveRegs) {
lib/CodeGen/GlobalISel/CombinerHelper.cpp
 1106   for (auto CopyTy : MemOps) {
 1211   for (auto CopyTy : MemOps) {
lib/CodeGen/GlobalISel/IRTranslator.cpp
  473     for (const CaseCluster &C : Clusters) {
  492   CaseClusterIt Last = Clusters.end() - 1;
 2174   for (auto &JTCase : SL->JTCases) {
lib/CodeGen/GlobalISel/LegalizerInfo.cpp
  350         for (SizeAndAction BitsizeAndAction : VectorSpecifiedActions.second) {
  721     for (unsigned Opcode : FailedOpcodes)
lib/CodeGen/GlobalMerge.cpp
  298     std::fill(EncounteredUGS.begin(), EncounteredUGS.end(), 0);
lib/CodeGen/IfConversion.cpp
 2215     for (MachineBasicBlock *Succ : Succs) {
lib/CodeGen/LatencyPriorityQueue.cpp
  124        E = Queue.end(); I != E; ++I)
  128   if (Best != std::prev(Queue.end()))
  137   assert(I != Queue.end() && "Queue doesn't contain the SU being removed!");
  138   if (I != std::prev(Queue.end()))
lib/CodeGen/LiveVariables.cpp
  115   WorkList.insert(WorkList.end(), MBB->pred_rbegin(), MBB->pred_rend());
  684   std::replace(VI.Kills.begin(), VI.Kills.end(), &OldMI, &NewMI);
lib/CodeGen/MIRCanonicalizerPass.cpp
  107   for (auto *II : instructions) {
  123   for (auto &II : StringInstrMap) {
  167   for (auto *II : Instructions) {
  183   for (auto *II : Instructions) {
  205               PhysRegDefs.end()) {
  316   for (MachineInstr *MI : Copies) {
  343     for (auto *MO : Uses)
  386   if (llvm::find(bbNames, MBB->getName()) != bbNames.end()) {
  437     for (auto *MO : RenameMOs) {
  470            : RPOList) { dbgs() << MBB->getName() << "\n"; } dbgs()
  481   for (auto MBB : RPOList)
lib/CodeGen/MIRParser/MIRParser.cpp
  368     for (auto ArgRegPair : YamlCSInfo.ArgForwardingRegs) {
lib/CodeGen/MIRPrinter.cpp
  493   llvm::sort(YMF.CallSitesInfo.begin(), YMF.CallSitesInfo.end(),
lib/CodeGen/MIRVRegNamerUtils.cpp
  241     for (auto *MO : RenameMOs) {
  265   for (auto candidate : Candidates) {
lib/CodeGen/MachineBasicBlock.cpp
  451   if (I == LiveIns.end())
  481   for (; I != LiveIns.end(); ++Out, I = J) {
  484     for (J = std::next(I); J != LiveIns.end() && J->PhysReg == PhysReg; ++J)
  489   LiveIns.erase(Out, LiveIns.end());
  701   assert(I != Successors.end() && "Not a current successor!");
  770   assert(I != Predecessors.end() && "Pred is not a predecessor of this block!");
lib/CodeGen/MachineFunction.cpp
  803        E = FilterEnds.end(); I != E; ++I) {
  820   FilterIds.insert(FilterIds.end(), TyIds.begin(), TyIds.end());
  820   FilterIds.insert(FilterIds.end(), TyIds.begin(), TyIds.end());
lib/CodeGen/MachineLICM.cpp
 1351   for (const MachineInstr *PrevMI : PrevMIs)
lib/CodeGen/MachineModuleInfoImpls.cpp
   38   array_pod_sort(List.begin(), List.end(), SortSymbolPair);
lib/CodeGen/MachineOutliner.cpp
  554           for (SuffixTreeNode *Leaf : LeafChildren)
  805       InstrList.insert(InstrList.end(), InstrListForMBB.begin(),
  806                        InstrListForMBB.end());
  807       UnsignedVec.insert(UnsignedVec.end(), UnsignedVecForMBB.begin(),
  808                          UnsignedVecForMBB.end());
 1019     for (const unsigned &StartIdx : RS.StartIndices) {
 1043               CandidatesForRepeatedSeq.begin(), CandidatesForRepeatedSeq.end(),
 1204   for (OutlinedFunction &OF : FunctionList) {
 1229     for (Candidate &C : OF.Candidates) {
lib/CodeGen/MachinePipeliner.cpp
  664   for (auto &SU : SUnits) {
  760   for (SUnit &I : SUnits) {
  843   for (SUnit &I : SUnits) {
 1288   for (SUnit &SU : DAG->SUnits) {
 1600     for (auto &SU : SUnits) {
 2275   for (auto &M : Mutations)
lib/CodeGen/MachineRegisterInfo.cpp
  213   for (auto &I : LiveIns)
lib/CodeGen/MachineScheduler.cpp
  821   for (auto &m : Mutations)
  828   for (SUnit &SU : SUnits) {
  894          DI = DbgValues.end(), DE = DbgValues.begin(); DI != DE; --DI) {
  995   for (SUnit &SU : SUnits)
 1061                   : RegionCriticalPSets) dbgs()
 1602   for (SUnit &SU : DAG->SUnits) {
 1823   for (SUnit &SU : DAG->SUnits) {
 1892   for (SUnit &SU : DAG->SUnits) {
 3518     std::make_heap(ReadyQ.begin(), ReadyQ.end(), Cmp);
 3527     std::pop_heap(ReadyQ.begin(), ReadyQ.end(), Cmp);
 3545     std::make_heap(ReadyQ.begin(), ReadyQ.end(), Cmp);
 3558     std::push_heap(ReadyQ.begin(), ReadyQ.end(), Cmp);
lib/CodeGen/MacroFusion.cpp
  102       for (SUnit &SU : DAG.SUnits) {
  135     for (SUnit &ISU : DAG->SUnits)
lib/CodeGen/ModuloSchedule.cpp
   25   for (MachineInstr *MI : ScheduledInstrs)
lib/CodeGen/PostRASchedulerList.cpp
  443   for (auto &M : Mutations)
  694          DI = DbgValues.end(), DE = DbgValues.begin(); DI != DE; --DI) {
lib/CodeGen/PrologEpilogInserter.cpp
  336          i = FrameSDOps.begin(), e = FrameSDOps.end(); i != e; ++i) {
  411     for (auto &CS : CSI) {
lib/CodeGen/ReachingDefAnalysis.cpp
   90   for (int &OutLiveReg : MBBOutRegsInfos[MBBNumber])
  159     for (MBBRegUnitDefs &RegUnitDefs : MBBDefs)
lib/CodeGen/RegAllocPBQP.cpp
  642       Worklist.insert(Worklist.end(), NewVRegs.begin(), NewVRegs.end());
lib/CodeGen/RegisterCoalescer.cpp
 3646   array_pod_sort(MBBs.begin(), MBBs.end(), compareMBBPriority);
lib/CodeGen/ScheduleDAG.cpp
  393   for (const SUnit &SUnit : SUnits) {
  480   for (SUnit &SU : SUnits) {
  514   for (SUnit &SU : SUnits)  {
  698   for (unsigned LI : L) {
lib/CodeGen/ScheduleDAGInstrs.cpp
 1060   SUnit *newBarrierChain = &SUnits[*(NodeNums.end() - N)];
 1339     for (const std::pair<const SUnit*, const SUnit*> &P : ConnectionPairs) {
lib/CodeGen/SelectionDAG/FastISel.cpp
  222   for (auto &P : FuncInfo.PHINodesToUpdate)
 1173   for (auto &Arg : CLI.getArgs()) {
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
  187           for (TargetLowering::AsmOperandInfo &Op : Ops) {
lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
  508       NewOps.insert(NewOps.end(), N->op_begin(), N->op_begin() + i);
lib/CodeGen/SelectionDAG/ResourcePriorityQueue.cpp
   57   std::fill(RegLimit.begin(), RegLimit.end(), 0);
   58   std::fill(RegPressure.begin(), RegPressure.end(), 0);
  593     for (auto I = std::next(Queue.begin()), E = Queue.end(); I != E; ++I) {
  603     for (auto I = std::next(Queue.begin()), E = Queue.end(); I != E; ++I)
  609   if (Best != std::prev(Queue.end()))
  621   if (I != std::prev(Queue.end()))
lib/CodeGen/SelectionDAG/ScheduleDAGFast.cpp
  629   std::reverse(Sequence.begin(), Sequence.end());
lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
  935   std::vector<SUnit *>::const_iterator I = (Sequence.end() - LookAhead);
  937   for (auto E = Sequence.end(); I != E; ++I) {
 1633   std::reverse(Sequence.begin(), Sequence.end());
 1765       std::fill(RegLimit.begin(), RegLimit.end(), 0);
 1766       std::fill(RegPressure.begin(), RegPressure.end(), 0);
 1789     std::fill(RegPressure.begin(), RegPressure.end(), 0);
 1812     if (I != std::prev(Queue.end()))
 1842   for (auto I = std::next(Q.begin()), E = Q.end(); I != E; ++I)
 1846   if (Best != std::prev(Q.end()))
 2012   for (const SUnit &SU : *SUnits)
 2808     for (SUnit &SU : sunits)
 2942   for (SUnit &SU : *SUnits) {
 3054   for (SUnit &SU : *SUnits) {
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 1087   std::fill(CondCodeNodes.begin(), CondCodeNodes.end(),
 1089   std::fill(ValueTypeNodes.begin(), ValueTypeNodes.end(),
 8438   for (auto N : TopoOrder) {
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 1149     for (auto &DDI : DDIV)
 1153     DDIV.erase(remove_if(DDIV, isMatchingDbgValue), DDIV.end());
 1166   for (auto &DDI : DDIV) {
 1363     for (auto &DDI : Pair.second)
 8058   for (auto &T : TargetConstraints) {
 8334         AsmNodeOperands.insert(AsmNodeOperands.end(), Ops.begin(), Ops.end());
 8334         AsmNodeOperands.insert(AsmNodeOperands.end(), Ops.begin(), Ops.end());
10483   for (CaseCluster &CC : Clusters) {
10537     for (const CaseCluster &C : Clusters) {
10556   CaseClusterIt Last = Clusters.end() - 1;
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
 1774   for (auto &BTB : SDB->SL->BitTestCases) {
 2048       Ops.insert(Ops.end(), InOps.begin()+i,
 2078       Ops.insert(Ops.end(), SelOps.begin(), SelOps.end());
 2078       Ops.insert(Ops.end(), SelOps.begin(), SelOps.end());
lib/CodeGen/SelectionDAG/StatepointLowering.cpp
  872   for (const GCRelocateInst *Relocate : ISP.getRelocates()) {
lib/CodeGen/SelectionDAG/TargetLowering.cpp
 4192   for (InlineAsm::ConstraintInfo &CI : IA->ParseConstraints()) {
lib/CodeGen/StackMaps.cpp
  178   for (const auto &CSI : CSInfos) {
  495   for (const auto &CSI : CSInfos) {
lib/CodeGen/SwitchLoweringUtils.cpp
   49   for (CaseCluster &C : Clusters)
  237   for (MachineBasicBlock *Succ : Table) {
  269   for (const CaseCluster &C : Clusters)
  444   for (auto &CB : CBV) {
  461   for (const CaseCluster &CC : Clusters)
lib/CodeGen/WinEHPrepare.cpp
  737     for (BasicBlock *BB : BlocksInFunclet) {
  769     for (auto &BBMapping : Orig2Clone) {
  784           std::remove(BlocksInFunclet.begin(), BlocksInFunclet.end(), OldBlock),
  785           BlocksInFunclet.end());
  799     for (BasicBlock *BB : BlocksInFunclet)
  808     for (auto &BBMapping : Orig2Clone) {
  851     for (auto &BBMapping : Orig2Clone) {
  864     for (auto &BBMapping : Orig2Clone) {
  941     for (BasicBlock *BB : BlocksInFunclet) {
lib/DebugInfo/CodeView/AppendingTypeTableBuilder.cpp
   92   for (auto C : Fragments)
lib/DebugInfo/CodeView/CodeViewRecordIO.cpp
  254     for (auto V : Value) {
lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp
   86   for (const auto &Item : Ids) {
lib/DebugInfo/CodeView/DebugFrameDataSubsection.cpp
   50   std::sort(SortedFrames.begin(), SortedFrames.end(),
lib/DebugInfo/CodeView/GlobalTypeTableBuilder.cpp
  103   for (auto C : Fragments)
lib/DebugInfo/CodeView/MergingTypeTableBuilder.cpp
  120   for (auto C : Fragments)
lib/DebugInfo/CodeView/SymbolDumper.cpp
  215   for (auto Entry : EnvBlock.Fields) {
  595   for (auto FuncID : Caller.Indices)
  642   for (StringRef Str : Annot.Strings)
lib/DebugInfo/CodeView/TypeRecordMapping.cpp
  486     for (auto Name : Record.MethodNames)
lib/DebugInfo/DWARF/DWARFContext.cpp
  122       std::unique(Contributions.begin(), Contributions.end(),
  129       Contributions.end());
  142   for (auto &Contribution : Contributions) {
 1142   for (uint32_t RowIndex : RowVector) {
 1698     for (SectionName &S : SectionNames)
lib/DebugInfo/DWARF/DWARFDebugAranges.cpp
   60         for (const auto &R : *CURanges)
   87   for (const auto &E : Endpoints) {
lib/DebugInfo/DWARF/DWARFDie.cpp
  496       Ranges.insert(Ranges.end(), DIERangesOrError.get().begin(),
  497                     DIERangesOrError.get().end());
  513   for (const auto &R : RangesOrError.get())
lib/DebugInfo/DWARF/DWARFUnit.cpp
  606       for (const auto &R : DIERangesOrError.get()) {
lib/DebugInfo/DWARF/DWARFVerifier.cpp
   32   auto End = Ranges.end();
   46   return Ranges.end();
  394     for (auto Range : Ranges) {
  403       if (IntersectingRange != RI.Ranges.end()) {
 1005   array_pod_sort(BucketStarts.begin(), BucketStarts.end());
 1015   for (const BucketInfo &B : BucketStarts) {
lib/DebugInfo/GSYM/GsymCreator.cpp
  150   for (auto AddrInfoOffset: AddrInfoOffsets) {
  165   llvm::sort(Funcs.begin(), Funcs.end());
  192   auto Prev = Funcs.end();
  193   while (Curr != Funcs.end()) {
  196     if (Prev != Funcs.end()) {
  237     if (Curr == Funcs.end())
  262   for (auto &FI : Funcs) {
lib/DebugInfo/GSYM/LineTable.cpp
  144         auto End = DeltaInfos.end();
lib/DebugInfo/GSYM/Range.cpp
   26   while (It2 != Ranges.end() && It2->Start < Range.End)
  100   for (auto &Range : Ranges)
lib/DebugInfo/MSF/MSFBuilder.cpp
   87   for (auto B : DirectoryBlocks)
  207     CurrentBlocks.insert(CurrentBlocks.end(), AddedBlockList.begin(),
  208                          AddedBlockList.end());
  271     DirectoryBlocks.insert(DirectoryBlocks.end(), ExtraBlocks.begin(),
  272                            ExtraBlocks.end());
  375   for (const auto &Blocks : Layout.StreamMap) {
lib/DebugInfo/MSF/MappedBlockStream.cpp
  100     for (auto &Entry : CacheIter->second) {
lib/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.cpp
  158     for (ArrayRef<uint8_t> Syms : Symbols) {
  165     for (const auto &Builder : C13Builders) {
lib/DebugInfo/PDB/Native/DbiStreamBuilder.cpp
  210   for (const auto &MI : ModiList) {
  228   for (const auto &MI : ModiList) {
  258   for (auto &MI : ModiList)
  321   for (auto &MI : ModiList) {
  403   for (auto &M : ModiList) {
lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp
  137   for (const CVSymbol &Sym : Records) {
  180     for (const auto &Entry : Bucket)
  270   for (auto &Sym : PublicsByAddr) {
lib/DebugInfo/PDB/Native/NamedStreamMap.cpp
  119   NamesBuffer.insert(NamesBuffer.end(), S.begin(), S.end());
lib/DebugInfo/PDB/Native/TpiStreamBuilder.cpp
  155   for (auto Rec : TypeRecords) {
  171     for (auto &IndexOffset : TypeIndexOffsets) {
lib/DebugInfo/PDB/PDBSymbolFunc.cpp
   62     if (CurIter == Args.end())
   69   void reset() override { CurIter = Args.empty() ? Args.end() : Args.begin(); }
lib/DebugInfo/PDB/UDTLayout.cpp
  134   for (auto &LI : LayoutItems) {
  205   for (auto &Base : Bases) {
  226   for (auto &Data : Members) {
  235   for (auto &VB : VirtualBaseSyms) {
  292       auto Loc = std::upper_bound(LayoutItems.begin(), LayoutItems.end(), Begin,
lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
   74   for (auto &P : Symbols)
   92     auto I = S.begin(), E = S.end(), J = S.begin();
   99     S.erase(J, S.end());
  143   array_pod_sort(ExportSyms.begin(), ExportSyms.end());
  148   for (auto I = ExportSyms.begin(), E = ExportSyms.end(); I != E; ++I) {
lib/DebugInfo/Symbolize/Symbolize.cpp
  296   for (const auto &Path : Opts.DsymHints) {
  299   for (const auto &Path : DsymPaths) {
lib/ExecutionEngine/ExecutionEngine.cpp
  941         std::fill(Result.AggregateVal.begin(), Result.AggregateVal.end(),
  963         std::fill(Result.AggregateVal.begin(), Result.AggregateVal.end(),
  985         std::fill(Result.AggregateVal.begin(), Result.AggregateVal.end(),
lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
  422   NewArgs.insert(NewArgs.end(), Args.begin(), Args.end());
  465   NewArgs.insert(NewArgs.end(), Args.begin()+1, Args.end());
lib/ExecutionEngine/Interpreter/Interpreter.h
   48     for (void *Allocation : Allocations)
lib/ExecutionEngine/JITLink/BasicGOTAndStubsBuilder.h
   30     for (auto *B : Blocks)
lib/ExecutionEngine/JITLink/JITLinkGeneric.cpp
  131   for (auto &P : Passes)
  174         for (auto *B : *SIEntry.first)
  337     for (auto *Sym : SymbolsToRemove) {
  350     for (auto *B : BlocksToRemove) {
lib/ExecutionEngine/MCJIT/MCJIT.cpp
  665   for (JITEventListener *L : EventListeners)
lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp
  234   for (auto *GV : GVsToAdd)
  289           for (auto &GV : PromotedGlobals)
lib/ExecutionEngine/Orc/Core.cpp
  738     auto I = std::find_if(DefGenerators.begin(), DefGenerators.end(),
  742     assert(I != DefGenerators.end() && "Generator not found");
  763         for (auto &SI : AddedSyms)
  978       for (auto &Q : MI.takeQueriesMeeting(SymbolState::Resolved)) {
 1093             for (auto &Q : DependantMI.takeQueriesMeeting(SymbolState::Ready)) {
 1109         for (auto &Q : MI.takeQueriesMeeting(SymbolState::Ready)) {
 1273     auto I = std::find_if(SearchOrder.begin(), SearchOrder.end(),
 1278     if (I != SearchOrder.end())
 1285     auto I = std::find_if(SearchOrder.begin(), SearchOrder.end(),
 1289     if (I != SearchOrder.end())
 1332     for (auto &SymbolMaterializerItrPair : SymbolsToRemove) {
 1357     for (auto &DG : DefGenerators) {
 1409   for (auto &DG : DefGenerators) {
 1510   for (auto &Name : ToRemove)
 1531     for (auto &DG : DefGenerators) {
 1566     for (auto &MU : MUs)
 1635   for (auto &Name : ToRemove)
 1646     for (auto &KV : SearchOrder)
 1705       std::find_if(PendingQueries.begin(), PendingQueries.end(),
 1709   assert(I != PendingQueries.end() &&
 1762   for (auto &S : MUDefsOverridden)
 1766   for (auto &S : ExistingDefsOverridden) {
 1833     for (auto &JD : JDs)
 1985         for (auto &MU : KV.second)
 2018       for (auto &MU : KV.second)
 2113     for (auto &JD : JDs)
lib/ExecutionEngine/Orc/ExecutionUtils.cpp
  124     for (auto &Name : KV.second) {
  135       for (auto &Name : KV.second) {
  150   for (auto &P : CXXDestructorDataPairs)
lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
  272       for (auto &WLEntry : Worklist) {
  339   for (auto &P : Plugins)
  344   for (auto &P : Plugins)
  351   for (auto &P : Plugins)
  368   for (auto &P : Plugins)
  389   for (auto &P : Plugins)
lib/ExecutionEngine/Orc/OrcCBindingsStack.h
  245     for (auto &DtorRunner : IRStaticDestructorRunners)
  498     for (auto &Listener : EventListeners)
  505     for (auto &Listener : EventListeners)
lib/ExecutionEngine/Orc/OrcMCJITReplacement.h
  392     for (object::OwningBinary<object::Archive> &OB : Archives) {
lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp
  144   for (auto &Frame : EHFrames)
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
  740   for (auto &Sym : SymbolsToAllocate) {
lib/FuzzMutate/FuzzerCLI.cpp
   68   for (std::string &S : Args)
  132   for (std::string &S : Args)
lib/FuzzMutate/IRMutator.cpp
   57   for (const auto &Getter : AllowedTypes)
   62   for (const auto &Strategy : Strategies)
lib/IR/AsmWriter.cpp
 2690   for (auto &ModPair : moduleVec) {
 4138   for (const auto &I : asVec)
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/LLVMContextImpl.cpp
   60   for (auto *I : DistinctMDNodes)
   74   for (MDNode *I : DistinctMDNodes)
lib/IR/ModuleSummaryIndex.cpp
  159     for (auto &S : P.second.SummaryList) {
  479   for (auto &E : CrossModuleEdges) {
  487     for (auto DstMod : ModList)
lib/IR/PassRegistry.cpp
   66   for (auto *Listener : Listeners)
lib/IR/ProfileSummary.cpp
   51   for (auto &Entry : DetailedSummary) {
lib/LTO/LTO.cpp
  367     for (auto &S : I.second.SummaryList)
  390   for (auto &S : GVSummaryList) {
  781   for (GlobalValue *GV : Mod.Keep) {
  880     for (auto &S : P.second.SummaryList) {
  934   for (auto &M : RegularLTO.ModsWithSummaries)
lib/LTO/LTOBackend.cpp
  132   for (const std::string &A : Conf.MAttrs)
  472   for (GlobalValue *GV : DeadGVs) {
lib/LTO/LTOCodeGenerator.cpp
  638     for (std::string &Arg : CodegenOptions)
lib/LTO/LTOModule.cpp
  645   for (const NameAndAttributes &Sym : _symbols) {
lib/LTO/ThinLTOCodeGenerator.cpp
  145   for (auto &M : Modules) {
  569   for (auto &Mod : Modules) {
  913     for (auto &Mod : Modules) {
  964   for (const auto &M : Modules)
 1016   for (auto &Module : Modules) {
 1029   std::iota(ModulesOrdering.begin(), ModulesOrdering.end(), 0);
 1041     for (auto IndexCount : ModulesOrdering) {
lib/LineEditor/LineEditor.cpp
   72     for (std::vector<Completion>::iterator I = Comps.begin(), E = Comps.end();
  174                                                 E = Action.Completions.end();
lib/Linker/IRMover.cpp
  783   for (StructType *ST : Types) {
 1101   for (const auto Elem : RAUWWorklist) {
 1429   std::reverse(Worklist.begin(), Worklist.end());
lib/Linker/LinkModules.cpp
  409   for (GlobalValue *GV2 : LazyComdatMembers[SC]) {
  535     for (GlobalValue *GV2 : LazyComdatMembers[SC]) {
lib/MC/ELFObjectWriter.cpp
  756   array_pod_sort(LocalSymbolData.begin(), LocalSymbolData.end());
  757   array_pod_sort(ExternalSymbolData.begin(), ExternalSymbolData.end());
  763   for (ELFSymbolData &MSD : LocalSymbolData) {
  774   for (ELFSymbolData &MSD : ExternalSymbolData) {
  801   for (const MCSymbol *Sym : OWriter.AddrsigSyms)
  946   std::reverse(Relocs.begin(), Relocs.end());
 1071   for (const MCSectionELF *Section : SectionTable) {
 1165   for (MCSectionELF *Group : Groups) {
 1174     for (const MCSectionELF *Member : GroupMembers[SignatureSymbol]) {
 1199     for (MCSectionELF *RelSection : Relocations) {
 1222     for (const MCAssembler::CGProfileEntry &CGPE : Asm.CGProfile) {
 1280   for (const std::pair<StringRef, const MCSymbol *> &P : Asm.Symvers) {
 1325   for (const MCSymbol *&Sym : AddrsigSyms) {
lib/MC/MCCodeView.cpp
  348   for (auto I = Locs.begin(), E = Locs.end(); I != E;) {
lib/MC/MCDwarf.cpp
 1872   for (auto I = FrameArrayX.begin(), E = FrameArrayX.end(); I != E;) {
lib/MC/MCELFStreamer.cpp
  491   for (MCAssembler::CGProfileEntry &E : getAssembler().CGProfile) {
lib/MC/MCParser/AsmParser.cpp
 4387     for (const MCAsmMacroParameter& CurrParam : Parameters)
 5616   for (const MCAsmMacroArgument &Arg : A) {
lib/MC/MCStreamer.cpp
  124   for (auto &FI : DwarfFrameInfos)
lib/MC/MCWin64EH.cpp
   26   for (const auto &I : Insns) {
lib/MC/MachObjectWriter.cpp
  319     for (MachSymbolData &Entry : *SymbolData)
  623     for (MachSymbolData &Entry : *SymbolData)
  627     for (RelAndSymbol &Rel : Relocations[&Section]) {
  807   for (const auto &Option : Asm.getLinkerOptions()) {
  949   for (const auto &Option : Asm.getLinkerOptions())
 1037       for (MachSymbolData &Entry : *SymbolData)
lib/MC/StringTableBuilder.cpp
  144     for (StringPair *P : Strings) {
lib/MC/WasmObjectWriter.cpp
  907   for (const WasmRelocationEntry &RelEntry : Relocs) {
  923   for (const auto &Sec : CustomSections) {
 1493     for (const WasmRelocationEntry &RelEntry : CodeRelocations)
 1495     for (const WasmRelocationEntry &RelEntry : DataRelocations)
 1580   for (auto &CustomSection : CustomSections)
lib/MC/WinCOFFObjectWriter.cpp
  558   for (auto &Section : Sections)
  564   for (auto &Section : Arr) {
  883   for (const std::unique_ptr<COFFSection> &Section : Sections)
  886   for (const std::unique_ptr<COFFSection> &Section : Sections)
  931       for (auto &Relocation : Sec->Relocations) {
  967   for (auto &Symbol : Symbols) {
  978   for (const auto &S : Sections)
  981   for (const auto &S : Symbols)
  987   for (const auto &S : Sections)
  989   for (auto &S : Symbols)
  993   for (auto &Symbol : Symbols) {
 1004   for (auto &Section : Sections) {
 1039     for (const MCSymbol *S : AddrsigSyms) {
 1070   sections::iterator IE = Sections.end();
 1080   for (auto &Symbol : Symbols)
lib/MCA/HardwareUnits/Scheduler.cpp
  123   for (auto I = PendingSet.begin(), E = PendingSet.end(); I != E;) {
  159   for (auto I = WaitSet.begin(), E = WaitSet.end(); I != E;) {
  220   for (auto I = IssuedSet.begin(), E = IssuedSet.end(); I != E;) {
  244   Insts.insert(Insts.end(), ReadySet.begin(), ReadySet.end());
  250   const auto EndIt = PendingSet.end() - NumDispatchedToThePendingSet;
  273   for (InstRef &IR : IssuedSet)
  277   for (InstRef &IR : PendingSet)
  280   for (InstRef &IR : WaitSet)
lib/Object/ArchiveWriter.cpp
  575     for (const auto &M : Data) {
  621   for (const MemberData &M : Data)
lib/Object/COFFObjectFile.cpp
 1773   std::sort(Relocs.begin(), Relocs.end(),
 1792       std::equal_range(Relocs.begin(), Relocs.end(), &RelocTarget,
lib/Object/ELFObjectFile.cpp
  436   for (const auto &Entry : PltEntries)
lib/Object/IRObjectFile.cpp
   31   for (auto &M : this->Mods)
  121   for (auto BM : *BMsOrErr) {
lib/Object/RecordStreamer.cpp
  210     for (auto AliasName : Symver.second) {
lib/Object/SymbolSize.cpp
   72   array_pod_sort(Addresses.begin(), Addresses.end(), compareAddress);
   91   for (SymEntry &P : Addresses) {
lib/Object/WasmObjectFile.cpp
  476   for (auto &I : Imports) {
lib/Object/WindowsResource.cpp
  941   for (auto DataNodes : DataEntriesTreeOrder) {
lib/ObjectYAML/COFFEmitter.cpp
   69                                                   e = Obj.Sections.end();
  108                                                  e = Obj.Symbols.end();
  189   for (auto &SS : CVSS) {
  199   for (const auto &B : Builders) {
  219   for (COFFYAML::Section &S : CP.Obj.Sections) {
  232   for (COFFYAML::Section &S : CP.Obj.Sections) {
  279                                                e = CP.Obj.Symbols.end();
  360   for (const COFFYAML::Section &S : CP.Obj.Sections) {
  476                                                 e = CP.Obj.Sections.end();
  494                                                E = CP.Obj.Symbols.end();
  501   for (const COFFYAML::Section &S : CP.Obj.Sections) {
  527                                                      e = CP.Obj.Symbols.end();
lib/ObjectYAML/DWARFEmitter.cpp
   83     for (auto Attr : AbbrevDecl.Attributes) {
  107     for (auto Descriptor : Range.Descriptors) {
  257           for (auto OpByte : Op.UnknownOpcodeData)
  286           for (auto OpData : Op.StandardOpcodeData) {
lib/ObjectYAML/DWARFVisitor.cpp
   47   for (auto &Unit : DebugInfo.CompileUnits) {
   51     for (auto &Entry : Unit.Entries) {
   59            FormVal != Entry.Values.end() && AbbrForm != Abbrev.Attributes.end();
   59            FormVal != Entry.Values.end() && AbbrForm != Abbrev.Attributes.end();
lib/ObjectYAML/ELFEmitter.cpp
  208   for (std::unique_ptr<ELFYAML::Section> &D : Doc.Sections) {
  229   ImplicitSections.insert(ImplicitSections.end(), {".strtab", ".shstrtab"});
  232     ImplicitSections.insert(ImplicitSections.end(), {".dynsym", ".dynstr"});
  236   for (StringRef SecName : ImplicitSections) {
  290   for (const auto &YamlPhdr : Doc.ProgramHeaders) {
  649   for (auto &YamlPhdr : Doc.ProgramHeaders) {
  653     for (const ELFYAML::SectionName &SecName : YamlPhdr.Sections) {
  672       for (Elf_Shdr *SHeader : Sections)
  680     for (Elf_Shdr *SHeader : Sections) {
  701       for (Elf_Shdr *SHeader : Sections)
 1126     for (const ELFYAML::Symbol &Sym : *Doc.Symbols)
 1131   for (const ELFYAML::Symbol &Sym : Doc.DynamicSymbols)
 1136   for (const std::unique_ptr<ELFYAML::Section> &Sec : Doc.Sections) {
 1138       for (const ELFYAML::VerneedEntry &VE : VerNeed->VerneedV) {
 1144       for (const ELFYAML::VerdefEntry &E : VerDef->Entries)
lib/ObjectYAML/ELFYAML.cpp
  875     for (std::pair<StringRef, uint8_t> &P :
  914     for (StOtherPiece &Val : *Other)
lib/ObjectYAML/MachOEmitter.cpp
  118   for (const auto &Sec : LC.Sections) {
  133   for (const auto &Sec : LC.Sections) {
  179   for (const auto &T : LC.Tools) {
  209   for (auto &LC : Obj.LoadCommands) {
  259   for (auto &LC : Obj.LoadCommands) {
  270       for (auto &Sec : LC.Sections) {
  327   for (auto Opcode : BindOpcodes) {
  330     for (auto Data : Opcode.ULEBExtraData) {
  333     for (auto Data : Opcode.SLEBExtraData) {
  359   for (auto EE : Entry.Children) {
  364   for (auto EE : Entry.Children)
  394   for (auto &LC : Obj.LoadCommands) {
  423   for (auto writeOp : WriteQueue) {
  432   for (auto Opcode : LinkEdit.RebaseOpcodes) {
  435     for (auto Data : Opcode.ExtraData)
  453   for (auto NLE : Obj.LinkEdit.NameList) {
  462   for (auto Str : Obj.LinkEdit.StringTable) {
  554   for (auto Arch : FatFile.FatArchs) {
lib/ObjectYAML/MinidumpEmitter.cpp
  159   for (auto &E : S.Entries)
  166   for (auto &E : S.Entries)
lib/ObjectYAML/WasmEmitter.cpp
  164   for (StringRef Needed : Section.Needed)
  183     for (const WasmYAML::SymbolInfo &Info : Section.SymbolTable) {
  219     for (const WasmYAML::SegmentInfo &SegmentInfo : Section.SegmentInfos) {
  231     for (const WasmYAML::InitFunction &Func : Section.InitFunctions) {
  242     for (const auto &C : Section.Comdats) {
  264     for (const WasmYAML::NameEntry &NameEntry : Section.FunctionNames) {
  288     for (auto &Entry : *Field.second) {
  299   for (auto &E : Section.Features) {
  327   for (const WasmYAML::Signature &Sig : Section.Signatures) {
  346   for (const WasmYAML::Import &Import : Section.Imports) {
  382   for (uint32_t FuncType : Section.FunctionTypes)
  389   for (const WasmYAML::Export &Export : Section.Exports) {
  404   for (auto &Table : Section.Tables) {
  413   for (const WasmYAML::Limits &Mem : Section.Memories)
  421   for (auto &Global : Section.Globals) {
  437   for (auto &Event : Section.Events) {
  451   for (auto &Segment : Section.Segments) {
  456     for (auto &Function : Segment.Functions)
  465   for (auto &Func : Section.Functions) {
  475     for (auto &LocalDecl : Func.Locals) {
  492   for (auto &Segment : Section.Segments) {
  529   for (auto Reloc : Sec.Relocations) {
  551   for (const std::unique_ptr<WasmYAML::Section> &Sec : Obj.Sections) {
  605   for (const std::unique_ptr<WasmYAML::Section> &Sec : Obj.Sections) {
lib/ProfileData/Coverage/CoverageMapping.cpp
  332     for (auto &Reader : CoverageReadersOrErr.get())
  605     Filenames.insert(Filenames.end(), Function.Filenames.begin(),
  608   auto Last = std::unique(Filenames.begin(), Filenames.end());
  609   Filenames.erase(Last, Filenames.end());
lib/ProfileData/Coverage/CoverageMappingReader.cpp
  303     for (auto &R : MappingRegions) {
  309     for (auto &R : MappingRegions) {
  785       for (auto &Reader : ChildReadersOrErr.get())
  795       for (auto &Buffer : Ar->takeThinBuffers())
lib/ProfileData/InstrProf.cpp
  373   if (It != AddrToMD5Map.end() && It->first == Address)
  685   for (auto &Count : this->Counts) {
lib/ProfileData/ProfileSummaryBuilder.cpp
   72   for (const uint32_t Cutoff : DetailedSummaryCutoffs) {
lib/ProfileData/SampleProf.cpp
  223   for (auto &Sym : SortedList) {
  238   for (auto &Sym : SortedList)
lib/ProfileData/SampleProfReader.cpp
  608   for (auto &Entry : SecHdrTable) {
  663   for (auto Offset : OffsetsToUse) {
  776   for (auto &Entry : SecHdrTable) {
  790   for (auto &Entry : SecHdrTable) {
  798   for (auto &Entry : SecHdrTable) {
lib/ProfileData/SampleProfWriter.cpp
   58   for (const auto &I : V) {
  489   for (auto Entry : Entries) {
lib/Remarks/RemarkStringTable.cpp
   58   for (StringRef Str : serialize()) {
lib/Support/CommandLine.cpp
 2155     for (auto I : GlobalParser->MoreHelp)
 2192     array_pod_sort(SortedCategories.begin(), SortedCategories.end(),
 2198              E = SortedCategories.end();
 2217              E = SortedCategories.end();
 2413       for (auto I : *ExtraVersionPrinters)
lib/Support/ConvertUTFWrapper.cpp
  103     ByteSwapped.insert(ByteSwapped.end(), Src, SrcEnd);
lib/Support/DAGDeltaAlgorithm.cpp
   87     return Predecessors[Node].end();
  105     return Successors[Node].end();
  201   std::vector<change_ty> Worklist(Roots.begin(), Roots.end());
  250                                                 ie = Roots.end();
  311   changeset_ty CurrentSet(Roots.begin(), Roots.end());
lib/Support/Debug.cpp
   55   for (auto &d : *CurrentDebugType) {
lib/Support/DeltaAlgorithm.cpp
   93         ComplementSets.insert(ComplementSets.end(), Sets.begin(), it);
   94         ComplementSets.insert(ComplementSets.end(), it + 1, Sets.end());
lib/Support/DynamicLibrary.cpp
   43     return std::find(Handles.begin(), Handles.end(), Handle);
   47     return Handle == Process || Find(Handle) != Handles.end();
   56       if (Find(Handle) != Handles.end()) {
   78       for (void *Handle : Handles) {
lib/Support/FileCheck.cpp
 1143   for (const auto &PatternString : Req.ImplicitCheckNot) {
 1273     auto E = Req.CheckPrefixes.end();
 1734   for (StringRef Prefix : Req.CheckPrefixes) {
 1758   for (StringRef Prefix : Req.CheckPrefixes) {
 1783   for (StringRef CmdlineDef : CmdlineDefines) {
lib/Support/JSON.cpp
  622       for (const Object::value_type *E : sortedElements(*V.getAsObject()))
lib/Support/RandomNumberGenerator.cpp
   49   std::seed_seq SeedSeq(Data.begin(), Data.end());
lib/Support/Statistic.cpp
  155   for (auto *Stat : Stats) {
  209   for (const TrackingStatistic *Stat : Stats.Stats) {
lib/Support/TargetRegistry.cpp
  124   array_pod_sort(Targets.begin(), Targets.end(), TargetArraySortFn);
lib/Support/ThreadPool.cpp
  105   for (auto &Worker : Threads)
lib/Support/TimeProfiler.cpp
  138     llvm::sort(SortedTotals.begin(), SortedTotals.end(),
  143     for (const auto &E : SortedTotals) {
lib/Support/Timer.cpp
  306   for (const PrintRecord &Record : TimersToPrint)
  414   for (const PrintRecord &R : TimersToPrint) {
lib/Support/VirtualFileSystem.cpp
 1218       for (const auto &Root : FS->Roots) {
 1574     for (auto &E : RootEntries)
lib/Support/YAMLTraits.cpp
  307     for (auto &N : SQ->Entries) {
lib/TableGen/TGParser.cpp
  295   for (auto &E : Entry.Loop->Entries) {
  873   for (const auto &L : Loops) {
 2633   for (SmallVectorImpl<LetRecord> &LetInfo : LetStack)
 2644   for (auto &E : Entry.Loop->Entries) {
 3137       for (auto &E : NewEntries) {
 3149   for (auto &E : NewEntries) {
lib/Target/AArch64/AArch64A53Fix835769.cpp
  232   for (auto &MI : Sequences) {
lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp
  357   for (auto &I : AllChains)
  360   for (auto &I : AllChains)
  361     for (auto &J : AllChains)
  397   for (auto &I : V)
  418   for (auto I = L.begin(), E = L.end(); I != E; ++I) {
  569     for (auto J : ToErase)
lib/Target/AArch64/AArch64FrameLowering.cpp
  337   for (const auto &Info : MF.getFrameInfo().getCalleeSavedInfo())
lib/Target/AArch64/AArch64InstrInfo.cpp
 5055   std::for_each(RepeatedSequenceLocs.begin(), RepeatedSequenceLocs.end(),
 5088                                               RepeatedSequenceLocs.end(),
 5090                                RepeatedSequenceLocs.end());
 5105         for (outliner::Candidate &C : RepeatedSequenceLocs)
 5193     for (outliner::Candidate &C : RepeatedSequenceLocs) {
lib/Target/AArch64/AArch64SIMDInstrOpt.cpp
  295     for (auto &I : IRT) {
  297       for (auto &Repl : I.ReplOpc)
  515   for (auto &I : IRT) {
  524       for (auto &Repl : I.ReplOpc) {
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
 5124   std::vector<std::string> ArchFeatures(AArch64Features.begin(), AArch64Features.end());
 5125   STI.setDefaultFeatures("generic", join(ArchFeatures.begin(), ArchFeatures.end(), ","));
lib/Target/AMDGPU/AMDGPUAlwaysInlinePass.cpp
  104     for (GlobalAlias* A : AliasesToRemove) {
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  420   for (Value *V : WorkList) {
  829   for (Value *V : WorkList) {
lib/Target/AMDGPU/AMDGPUSubtarget.cpp
  728     for (SUnit &SU : DAG->SUnits) {
  857     auto E = DAG->SUnits.end();
  859     for (SUnit &SU : DAG->SUnits) {
lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
 1226   auto Result = std::find_if(Symbols->begin(), Symbols->end(),
 1231   if (Result != Symbols->end()) {
lib/Target/AMDGPU/GCNILPSched.cpp
  300   for (const SUnit &SU : SUnits)
  304   for (const SUnit &SU : SUnits)
  348   std::reverse(Schedule.begin(), Schedule.end());
  351   for (auto &SU : SUnits)
lib/Target/AMDGPU/GCNIterativeScheduler.cpp
  293   for (auto I = Schedule.end(), B = Schedule.begin(); I != B;) {
  381   for (const auto &I : Schedule) {
  458   for (auto R : Regions) {
  514     for (auto R : Regions) {
  549   for (auto R : Regions) {
  593   for (auto R : Regions) {
lib/Target/AMDGPU/GCNRegPressure.h
  205   Indexes.reserve(std::distance(R.begin(), R.end()));
  207   for (MachineInstr *I : R) {
  211   std::sort(Indexes.begin(), Indexes.end());
lib/Target/AMDGPU/GCNSchedStrategy.cpp
  398   for (MachineInstr *MI : Unsched) {
lib/Target/AMDGPU/R600ControlFlowFinalizer.cpp
   88        E = BranchStack.end(); I != E; ++I) {
  381       if (It != Lits.end()) {
lib/Target/AMDGPU/R600MachineScheduler.cpp
   48   QDst.insert(QDst.end(), QSrc.begin(), QSrc.end());
   48   QDst.insert(QDst.end(), QSrc.begin(), QSrc.end());
lib/Target/AMDGPU/R600OptimizeVectorRegisters.cpp
  222     if (ChanPos != UpdatedUndef.end())
  255     MIs.erase(llvm::find(MIs, MI), MIs.end());
  260     MIs.erase(llvm::find(MIs, MI), MIs.end());
  300     for (MachineInstr *MI : PreviousRegSeqByReg[MOp->getReg()]) {
lib/Target/AMDGPU/SIFrameLowering.cpp
 1086   for (auto &CS : CSI) {
lib/Target/AMDGPU/SIISelLowering.cpp
11021       for (auto &TC : TargetConstraints) {
lib/Target/AMDGPU/SIInsertWaitcnts.cpp
 1492     for (BlockInfo &BI : BlockInfos) {
lib/Target/AMDGPU/SIMachineScheduler.cpp
  265   for (SUnit* SU : TopReadySUs) {
  293   for (SUnit* SU : SUnits) {
  337   for (SUnit* SU : ScheduledSUnits) {
  411   for (SUnit* SU : SUnits) {
  431   for (SUnit* SU : SUnits) {
  441   for (SUnit* SU : SUnits) {
  503   if (I == TopReadySUs.end()) {
  528   for (SUnit* SU : SUnits) {
  541   for (SIScheduleBlock* P : Preds) {
  560   for (std::pair<SIScheduleBlock*, SIScheduleBlockLinkKind> &S : Succs) {
  586   for (SIScheduleBlock* P : Preds) {
  591   for (std::pair<SIScheduleBlock*, SIScheduleBlockLinkKind> S : Succs) {
  613     for (const SUnit* SU : SUnits)
  616     for (const SUnit* SU : SUnits)
  703   for (unsigned SUNum : DAG->TopDownIndex2SU) {
  742           for (unsigned k : SubGraph) {
  772           AdditionalElements.insert(AdditionalElements.end(),
  773                                     SubGraph.begin(), SubGraph.end());
  778         for (unsigned j : AdditionalElements)
  816   for (unsigned SUNum : DAG->TopDownIndex2SU) {
  858   for (unsigned SUNum : DAG->BottomUpIndex2SU) {
  936                         CurrentBottomUpReservedDependencyColoring.end()) == 0 &&
  938                         CurrentTopDownReservedDependencyColoring.end()) == 0)
  941   for (unsigned SUNum : DAG->BottomUpIndex2SU) {
 1011   for (unsigned SUNum : DAG->BottomUpIndex2SU) {
 1037   for (unsigned SUNum : DAG->BottomUpIndex2SU) {
 1058   for (unsigned SUNum : DAG->BottomUpIndex2SU) {
 1080   for (unsigned SUNum : DAG->BottomUpIndex2SU) {
 1086   for (unsigned SUNum : DAG->BottomUpIndex2SU) {
 1119   for (unsigned SUNum : DAG->BottomUpIndex2SU) {
 1151   for (unsigned SUNum : DAG->TopDownIndex2SU) {
 1176         for (unsigned k : SubGraph) {
 1361     for (SUnit* SU : SUs) {
 1563                                             : BlocksScheduled) {
 1630                   : ReadyBlocks) dbgs()
 1642        E = ReadyBlocks.end(); I != E; ++I) {
 1792     for (SUnit* SU : SUs)
 2032        E = ScheduledSUnits.end(); I != E; ++I) {
lib/Target/AMDGPU/SIPreAllocateWWMRegs.cpp
  149   for (unsigned Reg : RegsToRewrite) {
lib/Target/ARC/ARCBranchFinalize.cpp
  169   for (auto P : BranchToPCList) {
lib/Target/ARC/ARCFrameLowering.cpp
  339   for (auto I = V.begin(), E = V.end(); I != E; ++I) {
  343   return V.end();
  375     if (RegI == CSI.end() || RegI->getFrameIdx() == 0) {
  379       if (RegI != CSI.end())
  385   for (auto &I : CSI) {
lib/Target/ARM/ARMAsmPrinter.cpp
  531       for (auto &Stub : Stubs)
  544       for (auto &Stub : Stubs)
lib/Target/ARM/ARMConstantIslandPass.cpp
 1221   for (water_iterator IP = std::prev(WaterList.end()), B = WaterList.begin();;
 1495     if (IP != WaterList.end())
 1512   if (IP != WaterList.end())
lib/Target/ARM/ARMISelLowering.cpp
 9805          I = LPadList.begin(), E = LPadList.end(); I != E; ++I) {
lib/Target/ARM/ARMLoadStoreOptimizer.cpp
 1958       for (CalleeSavedInfo &Info : MFI.getCalleeSavedInfo()) {
lib/Target/ARM/ARMOptimizeBarriersPass.cpp
   92   for (auto MI : ToRemove) {
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
10923   for (auto Feature : Features)
lib/Target/ARM/Thumb1FrameLowering.cpp
  532       for (auto &I : MFI.getCalleeSavedInfo()) {
  952   for (CalleeSavedInfo I : CSI) {
lib/Target/AVR/AVRFrameLowering.cpp
  289   for (const CalleeSavedInfo &CCSI : CSI) {
lib/Target/BPF/BPFAbstractMemberAccess.cpp
  283   for (auto Call : CallList) {
  337   for (auto Call : PreserveUnionIndexCalls) {
lib/Target/BPF/BPFMIChecking.cpp
  147   std::vector<unsigned>::iterator search_end = GPR64DeadDefs.end();
  148   for (auto I : GPR32LiveDefs)
lib/Target/BPF/BTFDebug.cpp
  181   for (const auto &Enum : EnumValues) {
  254   for (const auto &Member : Members) {
  305   for (const auto &Param : Parameters) {
  360   for (const auto &V : Vars) {
  731   for (const auto &TypeEntry : TypeEntries)
  741   for (const auto &TypeEntry : TypeEntries)
  746   for (const auto &S : StringTable.getTable()) {
  904   for (const auto &TypeEntry : TypeEntries)
  934   for (const auto &TypeEntry : TypeEntries)
 1161     for (const auto &StructType : StructTypes) {
 1173     for (auto &DType : Fixup.second.second) {
 1179   for (const auto &TypeEntry : TypeEntries)
lib/Target/Hexagon/HexagonBitSimplify.cpp
  999   for (auto MI : Instrs) {
 1722   for (auto I : Instrs) {
 2277     for (MachineInstr *In : NewMIs) {
 3132     for (auto &I : Phis) {
 3179           if (F == ShufIns.end())
 3244     if (llvm::find_if(Phis, LoopInpEq) == Phis.end())
 3270     if (F == Phis.end())
 3354   for (auto &C : Cand)
lib/Target/Hexagon/HexagonBlockRanges.cpp
   87   llvm::sort(begin(), end());
   90   while (Iter != end()-1) {
  145   for (iterator Next, I = begin(); I != end(); I = Next) {
  443     RangeList::iterator A = RL.begin(), Z = RL.end()-1;
lib/Target/Hexagon/HexagonCFGOptimizer.cpp
  227               for (const auto &OrigLI : OrigLiveIn)
  229               for (const auto &NewLI : NewLiveIn)
lib/Target/Hexagon/HexagonCommonGEP.cpp
  418   for (ValueVect::iterator I = BO.begin(), E = BO.end(); I != E; ++I) {
  459         Work.insert(Work.end(), CF->second.begin(), CF->second.end());
  459         Work.insert(Work.end(), CF->second.begin(), CF->second.end());
  460         Nodes.insert(CF->second.begin(), CF->second.end());
  541   for (NodeVect::iterator I = Nodes.begin(), E = Nodes.end(); I != E; ++I) {
  630   for (NodeVect::iterator I = Nodes.begin(), E = Nodes.end(); I != E; ++I) {
  649   for (NodeVect::iterator I = Nodes.begin(), E = Nodes.end(); I != E; ++I) {
  672     for (typename T::iterator I = Blocks.begin(), E = Blocks.end(); I != E;
  683   typename T::iterator I = Blocks.begin(), E = Blocks.end();
  701     typename T::iterator I = Blocks.begin(), E = Blocks.end();
  729     for (iterator I = Values.begin(), E = Values.end(); I != E; ++I) {
  788     for (NodeVect::iterator I = Cs.begin(), E = Cs.end(); I != E; ++I) {
  829     for (NodeVect::iterator I = Cs.begin(), E = Cs.end(); I != E; ++I)
  919     for (NodeVect::iterator I = Cs.begin(), E = Cs.end(); I != E; ++I)
 1064   for (NodeVect::iterator I = Roots.begin(), E = Roots.end(); I != E; ++I)
 1070     for (NodeVect::iterator I = Roots.begin(), E = Roots.end(); I != E; ++I)
 1077     for (NodeVect::iterator I = Roots.begin(), E = Roots.end(); I != E; ++I)
 1157       Work.insert(Work.end(), Cs.begin(), Cs.end());
 1157       Work.insert(Work.end(), Cs.begin(), Cs.end());
 1221       for (NodeVect::iterator I = Cs.begin(), E = Cs.end(); I != E; ++I) {
 1263     for (ValueVect::iterator I = Ins.begin(), E = Ins.end(); I != E; ++I) {
lib/Target/Hexagon/HexagonConstExtenders.cpp
 1332   for (const OffsetRange &R : Ranges)
 1873     for (std::pair<MachineInstr*,unsigned> P : RegOps) {
 1904     for (const std::pair<Loc,IndexList> &Q : Defs) {
lib/Target/Hexagon/HexagonConstPropagation.cpp
  972   for (MachineBasicBlock *B : POT) {
lib/Target/Hexagon/HexagonFrameLowering.cpp
  787     for (auto &R : CSI)
  819       for (auto &R : CSI)
  828     for (auto &R : CSI)
 1988     for (auto &DR : F->second)
 2214       for (auto I : FIs) {
 2237     for (auto FI : BlockFIMap[&B]) {
 2242       for (auto &Range : RL) {
lib/Target/Hexagon/HexagonGenInsert.cpp
  401     iterator end() { return Seq.end(); }
  440   if (L == Seq.end())
  453   if (L != Seq.end())
 1088     if (End != LL.end())
 1089       LL.erase(End, LL.end());
 1178   if (End != LL.end())
 1179     LL.erase(End, LL.end());
 1334     IFListType::iterator MinI = std::min_element(LL.begin(), LL.end(), IFO);
 1335     assert(MinI != LL.end());
 1463   for (auto I = Instrs.begin(), E = Instrs.end(); I != E; ++I) {
lib/Target/Hexagon/HexagonHardwareLoops.cpp
 1882   for (MBBVector::iterator I = Preds.begin(), E = Preds.end(); I != E; ++I) {
 1965   for (MBBVector::iterator I = Preds.begin(), E = Preds.end(); I != E; ++I) {
lib/Target/Hexagon/HexagonISelDAGToDAG.cpp
  980   for (auto I : Nodes) {
 1028   for (auto I : Nodes) {
 1092   for (SDNode *N : Nodes) {
 1157   for (SDNode *N : Nodes) {
lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp
  341     for (RowType &Row : Table)
  697   BaseType::iterator end()   { return List.end(); }
 2013   for (int &Idx : Mask)
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
  530     for (Rule &R : Rules) {
 1083   for (Instruction *In : LoopIns)
lib/Target/Hexagon/HexagonMachineScheduler.h
  185         for (auto &SU : DAG->SUnits)
lib/Target/Hexagon/HexagonStoreWidening.cpp
  176   for (auto SI : Stores) {
  221   for (auto I = AllInsns.begin(), E = AllInsns.end(); I != E; ++I) {
  402   for (InstrGroup::iterator I = OG.begin(), E = OG.end(); I != E; ++I) {
  476     for (auto I : OG)
  479     for (auto I : NG)
  494   for (auto I : OG)
  518   for (auto I : OG)
  526   for (auto I : NG)
  537   InstrGroup::iterator I = Group.begin(), E = Group.end();
  576   for (auto &G : SGs) {
lib/Target/Hexagon/HexagonSubtarget.cpp
  129   for (SUnit &SU : DAG->SUnits) {
  142   for (SUnit &SU : DAG->SUnits) {
lib/Target/Hexagon/HexagonVLIWPacketizer.cpp
  379   for (auto BI : CurrentPacketMIs) {
  436   for (auto BI : CurrentPacketMIs) {
  664   for (auto I : CurrentPacketMIs) {
  750   for (auto I : CurrentPacketMIs) {
  915   for (auto I : CurrentPacketMIs) {
  985   for (auto I : CurrentPacketMIs) {
 1359     for (MachineInstr *PI : CurrentPacketMIs) {
 1475       if (Itr != IgnoreDepMIs.end()) {
 1672   for (auto MJ : CurrentPacketMIs) {
 1771       for (MachineInstr *MI : CurrentPacketMIs) {
 1786   for (MachineInstr *MI : CurrentPacketMIs) {
 1858   for (auto J : CurrentPacketMIs) {
 1869   for (auto J : OldPacketMIs) {
lib/Target/Hexagon/HexagonVectorPrint.cpp
  163   for (auto *I : VecPrintList) {
lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp
  321   return std::find(table.begin(), table.end(), CPU) != table.end();
  321   return std::find(table.begin(), table.end(), CPU) != table.end();
lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.cpp
  671     for (auto const &I : AppliedRestrictions) {
lib/Target/Hexagon/RDFCopy.cpp
  106     for (NodeId I : Copies) {
  133   for (NodeId C : Copies) {
lib/Target/Hexagon/RDFGraph.cpp
  272     for (int I : Ns) {
 1457   auto NewEnd = std::unique(MaxRefs.begin(), MaxRefs.end());
 1458   MaxRefs.erase(NewEnd, MaxRefs.end());
 1462     for (unsigned I : Closure)
lib/Target/Hexagon/RDFLiveness.cpp
  230   for (NodeId T : Tmp) {
  816       for (auto I : LV)
  827       for (auto I : LV)
  841     for (auto I : T)
lib/Target/Hexagon/RDFRegisters.h
   48       if (F != Map.end())
lib/Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
  479   copy_if_else(Relocs.begin(), Relocs.end(), std::back_inserter(Remainder),
lib/Target/Mips/MipsConstantIslandPass.cpp
 1174   for (water_iterator IP = std::prev(WaterList.end()), B = WaterList.begin();;
 1358     if (IP != WaterList.end())
 1369   if (IP != WaterList.end())
lib/Target/PowerPC/PPCFrameLowering.cpp
 2162   for (auto &CS : CSI) {
lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp
  132   for (auto &Pair : Replacements) {
lib/Target/WebAssembly/WebAssemblyCFGSort.cpp
  288           for (auto DeferredBlock : E.Deferred)
lib/Target/WebAssembly/WebAssemblyExceptionInfo.cpp
   78     std::reverse(WE->getSubExceptions().begin(), WE->getSubExceptions().end());
lib/Target/WebAssembly/WebAssemblyExceptionInfo.h
   99     std::reverse(Blocks.begin() + From, Blocks.end());
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
 1075   for (Instruction *I : SetjmpTableInsts)
 1077   for (Instruction *I : SetjmpTableSizeInsts)
lib/Target/WebAssembly/WebAssemblyLowerGlobalDtors.cpp
  149       for (auto Dtor : AssociatedAndMore.second)
lib/Target/X86/X86AsmPrinter.cpp
  671     for (auto &Stub : Stubs)
lib/Target/X86/X86DomainReassignment.cpp
  773   for (Closure &C : Closures) {
lib/Target/X86/X86ExpandPseudo.cpp
  168   for (auto P : TargetMBBs) {
lib/Target/X86/X86FrameLowering.cpp
 3145   for (auto &Obj : SortingObjects) {
lib/Target/X86/X86ISelLowering.cpp
31104   for (auto &LP : LPadList)
lib/Target/X86/X86InstrFoldTables.cpp
 5646     array_pod_sort(Table.begin(), Table.end());
 5649     assert(std::adjacent_find(Table.begin(), Table.end()) == Table.end() &&
 5649     assert(std::adjacent_find(Table.begin(), Table.end()) == Table.end() &&
 5669   if (I != Table.end() && I->KeyOp == MemOp)
lib/Target/X86/X86InstrInfo.cpp
 5674   BeforeOps.insert(BeforeOps.end(), AfterOps.begin(), AfterOps.end());
 5674   BeforeOps.insert(BeforeOps.end(), AfterOps.begin(), AfterOps.end());
 8006     for (outliner::Candidate &C : RepeatedSequenceLocs)
 8015   for (outliner::Candidate &C : RepeatedSequenceLocs)
lib/Target/X86/X86SpeculativeLoadHardening.cpp
  823     UncondCodeSeq.erase(std::unique(UncondCodeSeq.begin(), UncondCodeSeq.end()),
  824                         UncondCodeSeq.end());
lib/Target/XCore/XCoreFrameLowering.cpp
  315     for (const auto &SpillLabel : XFI->getSpillLabels()) {
  463                                                     it != CSI.end(); ++it) {
lib/TextAPI/MachO/InterfaceFile.cpp
   25   if (I != Container.end() && I->getInstallName() == InstallName)
   65   if ((Iter != ParentUmbrellas.end()) && !(Target_ < Iter->first)) {
   79   if ((Iter != UUIDs.end()) && !(Target_ < Iter->first)) {
lib/TextAPI/MachO/TextStub.cpp
  521         llvm::sort(Section.Symbols.begin(), Section.Symbols.end());
  522         llvm::sort(Section.Classes.begin(), Section.Classes.end());
  523         llvm::sort(Section.ClassEHs.begin(), Section.ClassEHs.end());
  524         llvm::sort(Section.IVars.begin(), Section.IVars.end());
  526                    Section.WeakDefSymbols.end());
  527         llvm::sort(Section.TLVSymbols.begin(), Section.TLVSymbols.end());
  579         llvm::sort(Section.Symbols.begin(), Section.Symbols.end());
  580         llvm::sort(Section.Classes.begin(), Section.Classes.end());
  581         llvm::sort(Section.ClassEHs.begin(), Section.ClassEHs.end());
  582         llvm::sort(Section.IVars.begin(), Section.IVars.end());
  584                    Section.WeakRefSymbols.end());
  620       for (auto &ID : UUIDs)
  640       for (const auto &Section : Exports) {
  683       for (const auto &Section : Undefineds) {
  914       for (auto &id : UUIDs)
  921       for (const auto &CurrentSection : ParentUmbrellas)
  929       for (const auto &CurrentSection : AllowableClients) {
  935       for (const auto &CurrentSection : ReexportedLibraries) {
lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
  156   for (COFFShortExport& E : Def->Exports) {
  164     for (COFFShortExport& E : Def->Exports) {
lib/ToolDrivers/llvm-lib/LibDriver.cpp
  359   for (NewArchiveMember &Member : Members) {
lib/Transforms/IPO/ArgumentPromotion.cpp
  145       Params.insert(Params.end(), STy->element_begin(), STy->element_end());
lib/Transforms/IPO/Attributor.cpp
 4428   for (Instruction *I :
lib/Transforms/IPO/CalledValuePropagation.cpp
   73     assert(std::is_sorted(this->Functions.begin(), this->Functions.end(),
lib/Transforms/IPO/ExtractGV.cpp
   65       : ModulePass(ID), Named(GVs.begin(), GVs.end()), deleteStuff(deleteS) {}
lib/Transforms/IPO/FunctionImport.cpp
  861       for (auto &S : P.second.SummaryList)
 1240     for (auto &S : I.second.SummaryList) {
lib/Transforms/IPO/GlobalDCE.cpp
  401   for (Function *F : DeadFunctions) {
  414   for (GlobalVariable *GV : DeadGlobalVars)
  418   for (GlobalAlias *GA : DeadAliases)
  422   for (GlobalIFunc *GIF : DeadIFuncs)
lib/Transforms/IPO/HotColdSplitting.cpp
  581     for (OutliningRegion &Region : Regions) {
lib/Transforms/IPO/Inliner.cpp
  203     for (AllocaInst *AvailableAlloca : AllocasForType) {
lib/Transforms/IPO/LowerTypeTests.cpp
  200       Fragment.insert(Fragment.end(), OldFragment.begin(), OldFragment.end());
  200       Fragment.insert(Fragment.end(), OldFragment.begin(), OldFragment.end());
  206   for (uint64_t ObjIndex : Fragment)
  373     for (auto P : FunctionAliases)
 1159     for (CallInst *CI : TIUI.CallSites) {
 1630   for (auto &&MemSet : TypeMembers)
 1638   for (auto &&F : GLB.Fragments) {
 1639     for (auto &&Offset : F) {
 1803     for (GlobalAlias *GA : AliasesToErase)
 1845       for (auto &GVS : I.second.SummaryList)
 1990       for (GlobalTypeMember *GTM : TypeIdInfo[TypeId].RefGlobals)
 2057       for (auto &S : P.second.SummaryList) {
 2098   for (const auto &S : Sets) {
lib/Transforms/IPO/MergeFunctions.cpp
  320                                                E = Worklist.end();
  407   for (auto I = HashedFuncs.begin(), IE = HashedFuncs.end(); I != IE; ++I) {
  426     for (WeakTrackingVH &I : Worklist) {
lib/Transforms/IPO/PartialInlining.cpp
  947   for (User *User : Users) {
 1392   for (User *User : Users) {
lib/Transforms/IPO/SampleProfile.cpp
  944         for (const auto *FS : findIndirectCallFunctionSamples(*I, Sum)) {
 1698       NamesInProfile.insert(NameTable->begin(), NameTable->end());
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
  182   for (GlobalValue *GV : V)
lib/Transforms/IPO/WholeProgramDevirt.cpp
  187       for (auto &&B : Used)
  198       for (auto &&B : Used) {
  724     for (auto &SlotSummary : T.second) {
  871     for (auto &&VCallSite : CSInfo.CallSites) {
  903     for (auto *FS : CSInfo.SummaryTypeCheckedLoadUsers) {
  907     for (auto *FS : CSInfo.SummaryTypeTestAssumeUsers) {
 1093     for (auto &&VCallSite : CSInfo.CallSites) {
 1193   for (auto Call : CSInfo.CallSites)
 1301   for (auto &&Call : CSInfo.CallSites) {
 1369   for (auto Call : CSInfo.CallSites) {
 1820       for (auto &S : P.second.SummaryList) {
 1881         for (const auto &T : TargetsForSlot)
 1893       for (auto FS : S.second.CSInfo.SummaryTypeCheckedLoadUsers)
 1896         for (auto FS : CCS.second.SummaryTypeCheckedLoadUsers)
 1918     for (VTableBits &B : Bits)
 1941     for (auto &S : P.second.SummaryList) {
 1947         for (StringRef Name : NameByGUID[VF.GUID]) {
 1952         for (StringRef Name : NameByGUID[VF.GUID]) {
 1958         for (StringRef Name : NameByGUID[VC.VFunc.GUID]) {
 1966         for (StringRef Name : NameByGUID[VC.VFunc.GUID]) {
lib/Transforms/Instrumentation/CFGMST.h
  210     for (auto &Ei : AllEdges) {
  221     for (auto &Ei : AllEdges) {
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
  480   AllABIListFiles.insert(AllABIListFiles.end(), ClABIListFiles.begin(),
  827                                          e = FnsToInstrument.end();
  925   for (Function *i : FnsToInstrument) {
  961              e = DFSF.PHIFixups.end();
  975       for (Value *V : DFSF.NonZeroChecks) {
 1258       for (auto Child : Children)
lib/Transforms/Instrumentation/GCOVProfiling.cpp
  475   for (Regex &Re : Regexes) {
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
 1065     for (auto *DDI : AllocaDeclareMap.lookup(AI)) {
 1427   for (GlobalVariable *GV : Globals) {
 1493     for (Function *F : P.second)
lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
  354   for (auto &I : findIndirectCalls(F)) {
lib/Transforms/Instrumentation/InstrProfiling.cpp
  455   for (const auto &LoadStore : PromotionCandidates) {
  937   for (auto *NamePtr : ReferencedNames)
  962   for (Value *Data : UsedVars)
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  593     for (auto &E : MST.AllEdges) {
  726   for (auto &E : MST.AllEdges)
  729   for (auto &E : EdgeList) {
  736   for (auto &E : MST.AllEdges) {
  820   for (auto *InstrBB : InstrumentBBs) {
  847     for (VPCandidateInfo Cand : FuncInfo.ValueSites[Kind]) {
 1077   for (BasicBlock *InstrBB : InstrumentBBs) {
 1095   for (auto &E : FuncInfo.MST.AllEdges) {
 1431   for (VPCandidateInfo &I : ValueSites) {
 1625   for (auto &F : HotFunctions) {
 1630   for (auto &F : ColdFunctions) {
lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
  151     for (auto &MI : WorkList) {
lib/Transforms/Instrumentation/ValueProfilePlugins.inc
   61     for (Instruction *I : Result) {
lib/Transforms/ObjCARC/BlotMapVector.h
   51   iterator end() { return Vector.end(); }
   82       return Vector.end();
lib/Transforms/Scalar/ConstantHoisting.cpp
  659   for (auto CC = std::next(ConstCandVec.begin()), E = ConstCandVec.end();
  695   findAndMakeBaseConstant(MinValItr, ConstCandVec.end(), ConstInfoVec);
lib/Transforms/Scalar/FlattenCFGPass.cpp
   69     for (WeakVH &BlockHandle : Blocks) {
lib/Transforms/Scalar/GVNHoist.cpp
  766     for (const auto &R : Ranks) {
lib/Transforms/Scalar/LoopInterchange.cpp
 1085   for (auto &Row : DepMatrix) {
lib/Transforms/Scalar/LoopPassManager.cpp
   35   for (auto &Pass : Passes) {
lib/Transforms/Scalar/LoopUnswitch.cpp
 1259   LoopBlocks.insert(LoopBlocks.end(), L->block_begin(), L->block_end());
 1273   LoopBlocks.insert(LoopBlocks.end(), ExitBlocks.begin(), ExitBlocks.end());
 1409   Worklist.erase(std::remove(Worklist.begin(), Worklist.end(), I),
 1410                  Worklist.end());
 1477     for (Instruction *UI : Worklist)
lib/Transforms/Scalar/MergeICmps.cpp
  748   for (auto &Cmp : Comparisons_) {
lib/Transforms/Scalar/PlaceSafepoints.cpp
  529                                     PollLocations.end()),
  530                         PollLocations.end());
  534     for (Instruction *Term : PollLocations) {
  590     ParsePointNeeded.insert(ParsePointNeeded.end(), RuntimeCalls.begin(),
  591                             RuntimeCalls.end());
  679   for (auto *CI : Calls) {
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
 2318   for (auto &PR : Replacements)
lib/Transforms/Scalar/SROA.cpp
 4098       PromotableAllocas.end());
 4588                                 PromotableAllocas.end());
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
 1727                 Blocks.begin(), Blocks.end(),
 1731   SmallPtrSet<BasicBlock *, 16> UnloopedBlocks(BlocksSplitI, Blocks.end());
 1736   for (auto *BB : make_range(BlocksSplitI, Blocks.end()))
 1738   Blocks.erase(BlocksSplitI, Blocks.end());
 1837                 SubLoops.begin(), SubLoops.end(), [&](Loop *SubL) {
 1840   for (auto *HoistedL : make_range(SubLoopsSplitI, SubLoops.end())) {
 1857   SubLoops.erase(SubLoopsSplitI, SubLoops.end());
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
  730   for (auto *UnlinkedInst : UnlinkedInstructions) {
lib/Transforms/Utils/BasicBlockUtils.cpp
  424       for (DomTreeNode *I : Children)
  841       for (DomTreeNode *Child : Children)
lib/Transforms/Utils/CodeExtractor.cpp
  803     for (Type *i : paramTy)
  945     for (User *use : Users)
  964   for (auto &U : Users)
 1106            ve = StructValues.end(); v != ve; ++v)
lib/Transforms/Utils/ImportedFunctionsInliningStatistics.cpp
  165       std::unique(NonImportedCallers.begin(), NonImportedCallers.end()),
  166       NonImportedCallers.end());
  168   for (const auto &Name : NonImportedCallers) {
lib/Transforms/Utils/InlineFunction.cpp
 1198     E = CallCache.end();
 1737       for (auto &VH : InlinedFunctionInfo.OperandBundleCallSites) {
 1762           MergedDeoptArgs.insert(MergedDeoptArgs.end(),
 1765           MergedDeoptArgs.insert(MergedDeoptArgs.end(), ChildOB.Inputs.begin(),
lib/Transforms/Utils/LoopUnroll.cpp
  109   for (BasicBlock *BB : Blocks) {
  621         for (PHINode *OrigPHI : OrigPHINode) {
  684     for (BasicBlock *NewBlock : NewBlocks) {
  695   for (PHINode *PN : OrigPHINode) {
  829     for (auto *BB : OriginalLoopBlocks) {
  851         for (BasicBlock *Iter : TermBlocks) {
  875   for (BasicBlock *Latch : Latches) {
  886         std::replace(Latches.begin(), Latches.end(), Dest, Fold);
  888                                              UnrolledLoopBlocks.end(), Dest),
  889                                  UnrolledLoopBlocks.end());
lib/Transforms/Utils/LoopUnrollAndJam.cpp
  381     for (BasicBlock *NewBlock : NewBlocks) {
  539   MergeBlocks.insert(ForeBlocksLast.begin(), ForeBlocksLast.end());
  540   MergeBlocks.insert(SubLoopBlocksLast.begin(), SubLoopBlocksLast.end());
  541   MergeBlocks.insert(AftBlocksLast.begin(), AftBlocksLast.end());
lib/Transforms/Utils/LoopUnrollRuntime.cpp
  878   for (BasicBlock *BB : NewBlocks) {
lib/Transforms/Utils/LowerSwitch.cpp
  314   BasicBlock *LBranch = switchConvert(LHS.begin(), LHS.end(), LowerBound,
  317   BasicBlock *RBranch = switchConvert(RHS.begin(), RHS.end(), NewLowerBound,
  416     for (CaseItr J = std::next(I), E = Cases.end(); J != E; ++J) {
  432     Cases.erase(std::next(I), Cases.end());
  524     for (const auto &I : Cases) {
  552     for (auto I = UnreachableRanges.begin(), E = UnreachableRanges.end();
  575         Cases.end());
  601       switchConvert(Cases.begin(), Cases.end(), LowerBound, UpperBound, Val,
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
  661   for (Instruction *A : Allocas) {
lib/Transforms/Utils/SimplifyCFG.cpp
  749   Cases.erase(std::remove(Cases.begin(), Cases.end(), BB), Cases.end());
  749   Cases.erase(std::remove(Cases.begin(), Cases.end(), BB), Cases.end());
  772   array_pod_sort(V1->begin(), V1->end());
  773   array_pod_sort(V2->begin(), V2->end());
 1179       for (ValueEqualityComparisonCase &V : PredCases)
lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
   67     for (BasicBlock *BB : UnreachableBlocks) {
  103   for (BasicBlock *BB : ReturningBlocks) {
lib/Transforms/Vectorize/LoopVectorize.cpp
 7173     for (Instruction *Instr : Ingredients) {
lib/XRay/InstrumentationMap.cpp
  197   for (const auto &Y : YAMLSleds) {
lib/XRay/LogBuilderConsumer.cpp
   31   for (auto *V : Visitors)
lib/XRay/Profile.cpp
  172     if (CalleeIt == Node->Callees.end()) {
lib/XRay/RecordInitializer.cpp
  171   R.Data.assign(Buffer.begin(), Buffer.end());
  235   R.Data.assign(Buffer.begin(), Buffer.end());
  307   R.Data.assign(Buffer.begin(), Buffer.end());
lib/XRay/Trace.cpp
  300     for (auto &R : FDRRecords)
  311       for (auto &B : Blocks) {
  313         for (auto *R : B.Records)
  337       for (auto &B : Blocks) {
  338         for (auto *R : B.Records)
  370   std::transform(Trace.Records.begin(), Trace.Records.end(),
projects/openmp/libomptarget/src/omptarget.cpp
  790   for (auto it : fpArrays) {
projects/openmp/libomptarget/src/rtl.cpp
  333     for (auto *R : RTLs.UsedRTLs) {
tools/bugpoint/CrashDebugger.cpp
  296     for (auto *F : ToRemove) {
  353   for (auto A : Attrs)
  520     for (const auto &BI : BlockInfo) {
  568   for (const auto *BB : BBs)
  627     for (auto &BI : BlockInfo) {
  672   for (const auto *BB : BBs)
  719     for (auto &BI : BlockInfo) {
  847   for (const std::string &Name : NamedMDs)
  860   for (auto *NamedMD : ToDelete)
 1129     for (std::string &Name : FunctionNames) {
tools/bugpoint/FindBugs.cpp
   44     std::shuffle(PassesToRun.begin(), PassesToRun.end(), randomness);
tools/bugpoint/ListReducer.h
   95         std::shuffle(ShuffledList.begin(), ShuffledList.end(), randomness);
  121       std::vector<ElTy> Suffix(TheList.begin() + Mid, TheList.end());
tools/bugpoint/Miscompilation.cpp
  391       for (Function *F : MiscompiledFunctions) {
tools/bugpoint/OptimizerDriver.cpp
  221                                                 E = pass_args.end();
tools/bugpoint/ToolRunner.cpp
  271   for (const auto &Arg : CompilerArgs)
  276   for (const auto &Arg : CompilerArgs)
  498   CCArgs.insert(CCArgs.end(), SharedLibs.begin(), SharedLibs.end());
  637                                                 E = ccArgs.end();
  785                                                 E = ccArgs.end();
tools/clang/include/clang/AST/RecursiveASTVisitor.h
  182     for (Decl *D : AST.getTraversalScope())
tools/clang/include/clang/Analysis/Analyses/ThreadSafetyUtil.h
  337     Data->Vect.erase(Data->Vect.begin() + i, Data->Vect.end());
tools/clang/include/clang/Analysis/CloneDetection.h
  239         std::remove_if(CloneGroups.begin(), CloneGroups.end(), Filter),
  240         CloneGroups.end());
tools/clang/include/clang/Analysis/PathDiagnostic.h
  644   iterator end() { return LPairs.end(); }
tools/clang/include/clang/Basic/Module.h
  565   submodule_iterator submodule_end()   { return SubModules.end(); }
tools/clang/include/clang/Basic/TargetInfo.h
 1317     for (const auto &Ext : getTargetOpts().OpenCLExtensionsAsWritten) {
tools/clang/include/clang/Driver/Multilib.h
  163   iterator end() { return Multilibs.end(); }
tools/clang/include/clang/Frontend/ASTUnit.h
  513     return TopLevelDecls.end();
  621     return CachedCompletionResults.end();
tools/clang/include/clang/Sema/TemplateInstCallback.h
   45   for (auto &C : Callbacks) {
   54   for (auto &C : Callbacks) {
   64   for (auto &C : Callbacks) {
   74   for (auto &C : Callbacks) {
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h
  410   roots_iterator roots_end() { return Roots.end(); }
  418   eop_iterator eop_end() { return EndNodes.end(); }
tools/clang/include/clang/Tooling/DiagnosticsYaml.h
   40     for (auto &Fix : Fixes) {
tools/clang/lib/ARCMigrate/ARCMT.cpp
  204          E = CInvok->getDiagnosticOpts().Warnings.end(); I != E; ++I) {
tools/clang/lib/ARCMigrate/TransformActions.cpp
  568        I = IndentationRanges.begin(), E = IndentationRanges.end(); I!=E; ++I) {
tools/clang/lib/ARCMigrate/Transforms.h
  108   traverser_iterator traversers_end() { return Traversers.end(); }
tools/clang/lib/AST/ExternalASTMerger.cpp
  258   for (const std::unique_ptr<ASTImporter> &I : Importers)
  273   for (const std::unique_ptr<ASTImporter> &I : Importers)
  288     for (const std::unique_ptr<ASTImporter> &Importer : Importers) {
  406   for (const auto &I : Importers)
  429       std::remove_if(Importers.begin(), Importers.end(),
  437       Importers.end());
tools/clang/lib/AST/Interp/ByteCodeEmitter.cpp
  135     Code.insert(Code.end(), Data, Data + Size);
tools/clang/lib/AST/Type.cpp
 3310         if (llvm::find(RecordTypeList, FieldRecTy) == RecordTypeList.end())
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
  164     for (auto &IM : InnerMatchers) {
  347           N.begin(), N.end(),
tools/clang/lib/ASTMatchers/Dynamic/Parser.cpp
  540                                 E = ContextStack.end();
  547   for (const auto &Completion : S->getMatcherCompletions(AcceptedTypes)) {
  551   for (const auto &Completion : getNamedValueCompletions(AcceptedTypes)) {
tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
  581     TypeSet.insert(NextTypeSet.begin(), NextTypeSet.end());
  625         for (const std::vector<ArgKind> &Arg : ArgsKinds) {
tools/clang/lib/Analysis/CFG.cpp
 1547                                    E = BackpatchBlocks.end(); I != E; ++I ) {
tools/clang/lib/Analysis/CloneDetection.cpp
  355   for (CloneDetector::CloneGroup &Group : Sequences) {
  479   for (auto &HashGroup : CloneGroups) {
tools/clang/lib/Analysis/LiveVariables.cpp
  636         it = vec.begin(), ei = vec.end(); it != ei; ++it) {
  654          de = declVec.end(); di != de; ++di) {
tools/clang/lib/Analysis/PathDiagnostic.cpp
  408   array_pod_sort(BatchDiags.begin(), BatchDiags.end(), Comp);
  413   for (const auto D : BatchDiags)
tools/clang/lib/Analysis/ThreadSafetyCommon.cpp
  880   for (auto *A : CurrentArguments)
  901   for (auto *V : CurrentInstructions)
  943   for (auto *Ph : IncompleteArgs) {
tools/clang/lib/Basic/Diagnostic.cpp
  466   for (diag::kind Diag : AllDiags)
tools/clang/lib/Basic/Module.cpp
  248            I = TopHeaderNames.begin(), E = TopHeaderNames.end(); I != E; ++I) {
  645     for (auto &C : V.M->Conflicts) {
tools/clang/lib/Basic/SanitizerSpecialCaseList.cpp
   38   for (auto &S : Sections) {
tools/clang/lib/Basic/Targets/AArch64.cpp
  286   for (const auto &Feature : Features) {
tools/clang/lib/Basic/Targets/AMDGPU.cpp
  233   for (auto &I : TargetOpts.FeaturesAsWritten) {
tools/clang/lib/Basic/Targets/ARM.cpp
  378   for (auto Feature : TargetFeatures)
  428   for (const auto &Feature : Features) {
tools/clang/lib/Basic/Targets/Hexagon.cpp
   80   for (auto &F : Features) {
tools/clang/lib/Basic/Targets/Mips.h
  316     for (const auto &Feature : Features) {
tools/clang/lib/Basic/Targets/PPC.cpp
   34   for (const auto &Feature : Features) {
tools/clang/lib/Basic/Targets/RISCV.cpp
  148   for (const auto &Feature : Features) {
tools/clang/lib/Basic/Targets/Sparc.h
   43     if (Feature != Features.end()) {
tools/clang/lib/Basic/Targets/SystemZ.h
  112     for (const auto &Feature : Features) {
tools/clang/lib/Basic/Targets/WebAssembly.cpp
  135   for (const auto &Feature : Features) {
tools/clang/lib/Basic/Targets/X86.cpp
  727   for (const auto &Feature : Features) {
tools/clang/lib/CodeGen/BackendUtil.cpp
 1387     for (auto &Summary : GlobalList.second.SummaryList) {
tools/clang/lib/CodeGen/CGDebugInfo.cpp
 4697   for (const auto &P : ReplaceMap) {
 4710   for (const auto &P : FwdDeclReplaceMap) {
 4731   for (auto &RT : RetainedTypes)
tools/clang/lib/CodeGen/CGExprCXX.cpp
  499   for (CharUnits VBPtrOffset : VBPtrOffsets) {
tools/clang/lib/CodeGen/CGObjCGNU.cpp
 1576     for (auto *C : Categories) {
 1594     for (auto clsAlias : ClassAliases)
 1642       for (const auto &lateInit : EarlyInitList) {
 3669     for (auto &untypedSel : allSelectors) {
 3833        iter != ClassAliases.end(); ++iter) {
tools/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp
  569                                                MemberEnd = Members.end();
  590                                          MemberEnd = Members.end();
  622                                                MemberEnd = Members.end();
  652                                                MemberEnd = Members.end();
  668         Pad = Padding.begin(), PadEnd = Padding.end();
  676                                                MemberEnd = Members.end();
  881   llvm::array_pod_sort(BFIs.begin(), BFIs.end());
tools/clang/lib/CodeGen/CGVTables.cpp
  997   for (const CXXRecordDecl *RD : DeferredVTables)
 1109   for (auto AP : AddressPoints) {
tools/clang/lib/CodeGen/CodeGenAction.cpp
  902     for (const CodeGenOptions::BitcodeFileToLink &F :
tools/clang/lib/CodeGen/CodeGenFunction.cpp
 2224     for (const auto &F : ParsedAttr.Features) {
tools/clang/lib/CodeGen/CodeGenModule.cpp
  300   for (const GlobalDecl &GD : Aliases) {
  360   for (const GlobalDecl &GD : Aliases) {
  977   for (StringRef Feat : Info.Features) {
 1165   for (const auto &I : Fns) {
 1629     for (const CXXRecordDecl *Base : getMostBaseClasses(MD->getParent())) {
 2099   for (GlobalDecl &D : CurDeclsToEmit) {
 2151   for (const CXXRecordDecl *RD : OpportunisticVTables) {
 2854   for (GlobalDecl GD : MultiVersionFuncs) {
 5517   for (const auto &Entry : DeferredEmptyCoverageMappingDecls.takeVector()) {
 5873       ParsedAttr.Features.end());
 5891                             Target.getTargetOpts().FeaturesAsWritten.end());
tools/clang/lib/CodeGen/ConstantInitBuilder.cpp
   96   for (auto &entry : SelfReferences) {
  115     for (auto &entry : SelfReferences) {
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
  230     for (const auto &Region : SourceRegions) {
  310     for (const auto &Region : SourceRegions) {
 1395   for (auto &S : CoverageMappings) {
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
  752       for (const CXXRecordDecl *Base : CGM.getMostBaseClasses(RD)) {
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
  107     llvm::array_pod_sort(VBPtrOffsets.begin(), VBPtrOffsets.end());
tools/clang/lib/Driver/Driver.cpp
 1631     for (StringRef S : DiagnosticIDs::getDiagnosticFlags())
tools/clang/lib/Driver/Multilib.cpp
  185   Flags.insert(Flags.end(), Base.flags().begin(), Base.flags().end());
  186   Flags.insert(Flags.end(), New.flags().begin(), New.flags().end());
  195     Multilibs.insert(Multilibs.end(), MultilibSegments.begin(),
  235   Multilibs.insert(Multilibs.end(), Other.begin(), Other.end());
  270   llvm::sort(Filtered.begin(), Filtered.end(),
  302   Ms.erase(std::remove_if(Ms.begin(), Ms.end(), F), Ms.end());
  302   Ms.erase(std::remove_if(Ms.begin(), Ms.end(), F), Ms.end());
tools/clang/lib/Driver/ToolChain.cpp
  859     for (const auto &P :
tools/clang/lib/Driver/ToolChains/Arch/AArch64.cpp
  249   const auto ItEnd = Features.end();
tools/clang/lib/Driver/ToolChains/Clang.cpp
 5746   for (auto EHVal : EHArgs) {
tools/clang/lib/Driver/ToolChains/CrossWindows.cpp
  238     for (const auto &P : DriverArgs.getAllArgValues(options::OPT_isystem_after))
tools/clang/lib/Driver/ToolChains/Cuda.cpp
  404   for (const auto& A : Args.getAllArgValues(options::OPT_Xcuda_ptxas))
  487   for (const auto& A : Args.getAllArgValues(options::OPT_Xcuda_fatbinary))
tools/clang/lib/Driver/ToolChains/Fuchsia.cpp
  204     return std::all_of(RD.begin(), RD.end(), [&](std::string P) {
  219         for (const auto &Path : PathsCallback(SelectedMultilib))
tools/clang/lib/Driver/ToolChains/HIP.cpp
  151   for(auto OneFeature : Features) {
  314   for (auto Path :
  323   for (auto Lib : DriverArgs.getAllArgValues(options::OPT_hip_device_lib_EQ)) {
tools/clang/lib/Driver/ToolChains/Hexagon.cpp
  341       for (StringRef Lib : OsLibs)
  433   if (llvm::find(RootDirs, TargetDir) == RootDirs.end())
  443   for (auto &Dir : RootDirs) {
tools/clang/lib/Driver/ToolChains/Linux.cpp
  216     for (const auto &Path : PathsCallback(Multilib))
  690       for (const auto &Path : Callback(GCCInstallation.getMultilib()))
tools/clang/lib/Driver/ToolChains/MSVC.cpp
  353     for (const auto &LibPath : Args.getAllArgValues(options::OPT_L))
  669   for (const auto &Include : Includes)
 1239   for (const auto &Path : DriverArgs.getAllArgValues(options::OPT__SLASH_imsvc))
tools/clang/lib/Driver/ToolChains/MinGW.cpp
   86   for (auto Lib : Args.getAllArgValues(options::OPT_l))
  204   for (auto Lib : Args.getAllArgValues(options::OPT_l)) {
tools/clang/lib/Driver/ToolChains/MipsLinux.cpp
   59     for (const auto &Path : Callback(SelectedMultilib))
   99     for (std::string Path : Callback(SelectedMultilib)) {
tools/clang/lib/Driver/ToolChains/Solaris.cpp
  258       for (const auto &Path : Callback(GCCInstallation.getMultilib()))
tools/clang/lib/Driver/XRayArgs.cpp
  103       for (const auto &B : Bundles) {
  130     for (const auto &Filename :
  139     for (const auto &Filename :
  148     for (const auto &Filename :
  162       for (const auto &Arg : SpecifiedModes) {
  177     Modes.erase(std::unique(Modes.begin(), Modes.end()), Modes.end());
  177     Modes.erase(std::unique(Modes.begin(), Modes.end()), Modes.end());
tools/clang/lib/Frontend/ASTUnit.cpp
  264     for (const auto &RB : PPOpts.RemappedFileBuffers)
 1031     for (const auto *D : TopLevelDecls) {
 1435   for (const auto TopLevelDecl : TopLevelDeclsInPreamble) {
 1442   TopLevelDecls.insert(TopLevelDecls.begin(), Resolved.begin(), Resolved.end());
 1843   for (const auto &RB : PPOpts.RemappedFileBuffers)
tools/clang/lib/Frontend/CompilerInstance.cpp
  204   for (const std::string &VFSFile : CI.getHeaderSearchOpts().VFSOverlayFiles) {
  448   for (auto &Listener : DependencyCollectors)
  957   for (const FrontendInputFile &FIF : getFrontendOpts().Inputs) {
 1062       std::remove_if(PPOpts.Macros.begin(), PPOpts.Macros.end(),
 1068       PPOpts.Macros.end());
 1517     for (auto &Listener : DependencyCollectors)
tools/clang/lib/Frontend/CompilerInvocation.cpp
  201   Funcs.insert(Funcs.end(), Values.begin(), Values.end());
  484                 ? llvm::find(Checkers, CheckerOrPackage) != Checkers.end()
  485                 : llvm::find(Packages, CheckerOrPackage) != Packages.end();
  772   for (const auto &Arg : Args.getAllArgValues(OPT_fdebug_prefix_map_EQ))
 1068         Opts.CmdArgs.insert(Opts.CmdArgs.end(), ArgStr.begin(), ArgStr.end());
 1096     for (const auto &A : XRayInstrBundles)
 1808   for (const std::string &Arg :
 3574   for (StringRef Feature : LangOpts->ModuleFeatures)
 3580   for (const auto &FeatureAsWritten : TargetOpts->FeaturesAsWritten)
tools/clang/lib/Frontend/DependencyFile.cpp
  331   for (StringRef Target : Targets) {
tools/clang/lib/Frontend/FrontendAction.cpp
  157   for (const std::string &Arg : CI.getFrontendOpts().AddPluginActions) {
  215   for (auto &C : AfterConsumers) {
  677   for (const auto &F : CI.getFrontendOpts().ModulesEmbedFiles) {
  795   for (const auto &Filename : CI.getFrontendOpts().ModuleMapFiles) {
  900   for (const auto &ModuleFile : CI.getFrontendOpts().ModuleFiles)
tools/clang/lib/Frontend/FrontendActions.cpp
  257   for (const FrontendInputFile &FIF : Inputs) {
  288   for (StringRef Name : ModuleHeaders) {
  572       for (const std::string &Warning : DiagOpts->Warnings)
  574       for (const std::string &Remark : DiagOpts->Remarks)
tools/clang/lib/Frontend/InitHeaderSearch.cpp
  559   for (auto &Include : IncludePath)
  567   for (auto &Include : IncludePath)
  574   for (auto &Include : IncludePath)
  583   for (auto &Include : IncludePath)
tools/clang/lib/Frontend/MultiplexConsumer.cpp
   42   for (auto &Listener : Listeners)
   72   for (auto &Listener : Listeners)
  155   for (auto &Listener : Listeners)
  165   for (auto *L : Listeners)
  184   for (auto &Listener : Listeners)
  214   for (ASTMutationListener *L : Listeners)
  219   for (auto *L : Listeners)
  224   for (auto *L : Listeners)
  231   for (auto *L : Listeners)
  244   for (auto &Consumer : Consumers) {
  264   for (auto &Consumer : Consumers)
  270   for (auto &Consumer : Consumers)
  276   for (auto &Consumer : Consumers)
  281   for (auto &Consumer : Consumers)
  286   for (auto &Consumer : Consumers)
  291   for (auto &Consumer : Consumers)
  296   for (auto &Consumer : Consumers)
  301   for (auto &Consumer : Consumers)
  306   for (auto &Consumer : Consumers)
  311   for (auto &Consumer : Consumers)
  316   for (auto &Consumer : Consumers)
  321   for (auto &Consumer : Consumers)
  326   for (auto &Consumer : Consumers)
  331   for (auto &Consumer : Consumers)
  344   for (auto &Consumer : Consumers)
  350   for (auto &Consumer : Consumers)
  356   for (auto &Consumer : Consumers)
  362   for (auto &Consumer : Consumers)
tools/clang/lib/Frontend/PrecompiledPreamble.cpp
  447   for (const auto &R : PreprocessorOpts.RemappedFiles) {
  461   for (const auto &RB : PreprocessorOpts.RemappedFileBuffers) {
tools/clang/lib/Frontend/Rewrite/FrontendActions.cpp
  154   PPOpts.RemappedFiles.insert(PPOpts.RemappedFiles.end(),
  155                               RewrittenFiles.begin(), RewrittenFiles.end());
tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp
  879   for (const auto *D : DL) {
  927   for (auto &Owner : Left) {
  933       for (II = Right.begin(), IE = Right.end(); II != IE; ++II) {
  961     num += PrintUnexpected(Diags, &SourceMgr, Right.begin(), Right.end(), Label);
tools/clang/lib/Lex/HeaderSearch.cpp
  157   for (const std::string &Dir : HSOpts->PrebuiltModulePaths) {
tools/clang/lib/Lex/ModuleMap.cpp
 1296   for (auto &UC : Unresolved) {
tools/clang/lib/Lex/PPMacroExpansion.cpp
 1037     for (const auto &Lexer : MacroExpandingLexersStack) {
tools/clang/lib/Lex/PreprocessingRecord.cpp
  291   for (pp_iter RI    = PreprocessedEntities.end(),
tools/clang/lib/Lex/Preprocessor.cpp
 1363   assert(llvm::find(CommentHandlers, Handler) == CommentHandlers.end() &&
 1371   assert(Pos != CommentHandlers.end() && "Comment handler not registered");
 1378        HEnd = CommentHandlers.end();
tools/clang/lib/Sema/CodeCompleteConsumer.cpp
  573       for (const FixItHint &FixIt : Results[I].FixIts) {
tools/clang/lib/Sema/Sema.cpp
  324       for (auto &I : Atomic64BitTypes)
 1417   for (PartialDiagnosticAt &PDAt : It->second) {
tools/clang/lib/Sema/SemaCodeComplete.cpp
 1963         for (auto *MD : it->second) {
tools/clang/lib/Sema/SemaDecl.cpp
 9679   for (const auto &Feat : ParseInfo.Features) {
tools/clang/lib/Sema/SemaDeclAttr.cpp
 2987   for (const auto &Feature : ParsedAttrs.Features) {
tools/clang/lib/Sema/SemaDeclCXX.cpp
 9595   for (ComparisonCategoryResult CCR :
tools/clang/lib/Sema/SemaExpr.cpp
11669         if (llvm::find(RecordTypeList, FieldRecTy) == RecordTypeList.end())
14813     for (FixItHint &H : ConvHints.Hints)
tools/clang/lib/Sema/SemaOverload.cpp
10138        HE = Cand->Fix.Hints.end(); HI != HE; ++HI)
tools/clang/lib/Sema/SemaStmt.cpp
 1162           RI != CaseRanges.end(); RI++) {
 1213         for (; RI != CaseRanges.end(); RI++) {
 1221         if (RI == CaseRanges.end() || EI->first < RI->first) {
tools/clang/lib/Serialization/ASTReader.cpp
 4250     for (auto Offset : F.PreloadIdentifierOffsets) {
 7964     for (auto Lexical : TULexicalDecls)
 8140     = TypesLoaded.size() - std::count(TypesLoaded.begin(), TypesLoaded.end(),
 8143     = DeclsLoaded.size() - std::count(DeclsLoaded.begin(), DeclsLoaded.end(),
 8147                                             IdentifiersLoaded.end(),
 8151                                        MacrosLoaded.end(),
 9800     for (RawComment *C : Comments) {
tools/clang/lib/Serialization/ASTWriter.cpp
 3060     for (const auto &C : Mod->Conflicts) {
 3069     for (const auto &CM : Mod->ConfigMacros) {
 5246   for (const auto &ExtWriter : ModuleFileExtensionWriters)
tools/clang/lib/Serialization/MultiOnDiskHashTable.h
  322         for (const auto &F : Merged->Files)
tools/clang/lib/StaticAnalyzer/Checkers/CloneChecker.cpp
  114   for (const CloneDetector::CloneGroup &Group : CloneGroups) {
  133   for (const CloneDetector::CloneGroup &Group : CloneGroups) {
  166   for (VariablePattern::SuspiciousClonePair &Pair : Pairs) {
tools/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
  323   for (auto &P : Config.Propagations) {
  329   for (auto &F : Config.Filters) {
  334   for (auto &S : Config.Sinks) {
tools/clang/lib/StaticAnalyzer/Checkers/MallocSizeofChecker.cpp
  182          e = Finder.Calls.end(); i != e; ++i) {
tools/clang/lib/StaticAnalyzer/Checkers/ObjCAutoreleaseWriteChecker.cpp
  100   return std::vector<llvm::StringRef>(V.begin(), V.end());
tools/clang/lib/StaticAnalyzer/Core/AnalysisManager.cpp
   51        E = PathConsumers.end(); I != E; ++I) {
   59        E = PathConsumers.end();
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
 2398   for (const auto I : EQClassesVector)
 2405   for (const auto EQ : EQClassesVector)
 2687   path.insert(path.end(), Pieces.begin(), Pieces.end());
tools/clang/lib/StaticAnalyzer/Core/CheckerManager.cpp
   88     for (const auto &info : DeclCheckers)
  102   for (const auto BodyChecker : BodyCheckers)
  405   for (const auto EndAnalysisChecker : EndAnalysisCheckers)
  458   for (const auto checkFn : EndFunctionCheckers) {
  545   for (const auto LiveSymbolsChecker : LiveSymbolsCheckers)
  602   for (const auto RegionChangesChecker : RegionChangesCheckers) {
  624   for (const auto PointerEscapeChecker : PointerEscapeCheckers) {
  638   for (const auto EvalAssumeChecker : EvalAssumeCheckers) {
  661     for (const auto EvalCallChecker : EvalCallCheckers) {
  700   for (const auto EndOfTranslationUnitChecker : EndOfTranslationUnitCheckers)
  900   for (const auto &Info : StmtCheckers)
  907   for (const auto CheckerDtor : CheckerDtors)
tools/clang/lib/StaticAnalyzer/Core/ExplodedGraph.cpp
  183   for (const auto node : ChangedNodes)
tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
  158   for (const auto Diag : Diags)
  286     for (auto I = FileIDs.begin(), E = FileIDs.end(); I != E; I++) {
  314     for (auto I : llvm::make_range(FileIDs.begin() + 1, FileIDs.end())) {
  640   if (std::find(PopUpRanges.begin(), PopUpRanges.end(), Range) ==
  641       PopUpRanges.end()) {
tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
  617   for (const PathDiagnostic *D : Diags) {
  667        DE = Diags.end(); DI!=DE; ++DI) {
  766                 CE = files->end(); CI != CE; ++CI) {
tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp
 2082       List.insert(List.end(), InnerList.begin(), InnerList.end());
tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
  138          E = Diags.end();
tools/clang/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp
   63   assert(std::is_sorted(Collection.begin(), Collection.end(),
   96     return {Checkers.end(), Checkers.end()};
   96     return {Checkers.end(), Checkers.end()};
  203   for (const std::pair<std::string, bool> &Opt : AnOpts.CheckersAndPackages) {
  291     assert(CheckerIt != Checkers.end() && CheckerIt->FullName == Entry.first &&
  296     assert(DependencyIt != Checkers.end() &&
  366   assert(It != Collection.end() &&
tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp
  319   for (NodeId Leaf : Leaves) {
  651     for (SNodeId Id1 : S1.KeyRoots)
  652       for (SNodeId Id2 : S2.KeyRoots)
  790   for (const auto Tuple : R) {
  836   for (NodeId Id1 : Postorder) {
  872       for (NodeId Id : L1.pop())
  877       for (NodeId Id : L2.pop())
  884     for (NodeId Id1 : H1) {
  885       for (NodeId Id2 : H2) {
  892     for (NodeId Id1 : H1) {
  896     for (NodeId Id2 : H2) {
  931   for (NodeId Id1 : T1.NodesBfs) {
  942   for (NodeId Id2 : T2.NodesBfs) {
tools/clang/lib/Tooling/AllTUsExecution.cpp
  102   for (const auto& File : Compilations.getAllFiles()) {
  119     for (std::string File : Files) {
tools/clang/lib/Tooling/ArgumentsAdjusters.cpp
  103       I = Return.end();
tools/clang/lib/Tooling/CommonOptionsParser.cpp
   77   for (CompileCommand &Command : Commands)
tools/clang/lib/Tooling/CompilationDatabase.cpp
  136   for (const auto &File : getAllFiles()) {
  138     std::move(C.begin(), C.end(), std::back_inserter(Result));
  297   Args.erase(std::remove_if(Args.begin(), Args.end(), FilterUnusedFlags()),
  298              Args.end());
  329       Args.begin(), Args.end(), MatchesAny(CompileAnalyzer.Inputs));
  380   ToolCommandLine.insert(ToolCommandLine.end(),
tools/clang/lib/Tooling/Core/Replacement.cpp
  212   ReplacementsImpl NewReplacesImpl(NewReplaces.begin(), NewReplaces.end());
  491   for (const auto &R : Ranges) {
  521   for (const auto &R : MergedRanges) {
tools/clang/lib/Tooling/Execution.cpp
   33   for (const auto &KV : KVResults) {
tools/clang/lib/Tooling/FileMatchTrie.cpp
  127     for (const auto &Child : AllChildren) {
tools/clang/lib/Tooling/GuessTargetAndModeCompilationDatabase.cpp
   40     for (auto &Cmd : Cmds) {
tools/clang/lib/Tooling/InterpolatingCompilationDatabase.cpp
  143       for (const std::string &S : OldArgs)
  190       Cmd.CommandLine.insert(Cmd.CommandLine.end(),
tools/clang/lib/Tooling/Refactoring/AtomicChange.cpp
  242   for (const auto &R : NE.Replaces) {
tools/clang/lib/Tooling/Refactoring/Rename/RenamingAction.cpp
  211       for (const auto &Occurrence : Occurrences) {
tools/clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp
   73       for (const auto &OverriddenMethod : OverriddenMethods) {
  122     for (const auto *PartialSpec : PartialSpecs) {
  157     for (const auto *Method : InstantiatedMethods) {
tools/clang/lib/Tooling/RefactoringCallbacks.cpp
   46     for (const auto &Callback : Refactoring.Callbacks) {
   50     for (const auto &Callback : Refactoring.Callbacks) {
  203   for (const auto &Element : Template) {
tools/clang/lib/Tooling/Syntax/Tokens.cpp
  604   for (FileID ID : Keys) {
tools/clang/lib/Tooling/Tooling.cpp
  172   Args.insert(Args.end(), ExtraArgs.begin(), ExtraArgs.end());
  250     for (auto Token = ++CommandLine.begin(); Token != CommandLine.end();
  317   for (const std::string &Str : CommandLine)
  439   for (StringRef Arg : Args)
  456     for (const auto &MappedFile : MappedFileContents)
  468   for (const auto &SourcePath : SourcePaths) {
  490   for (llvm::StringRef File : AbsolutePaths) {
  505     for (CompileCommand &CompileCommand : CompileCommandsForFile) {
  522         for (const auto &MappedFile : MappedFileContents)
tools/clang/lib/Tooling/Transformer/Stencil.cpp
  262   for (auto &Part : OtherStencil.Parts)
tools/clang/lib/Tooling/Transformer/Transformer.cpp
   24   for (auto &Matcher : transformer::detail::buildMatchers(Rule))
   59   for (const auto &I : Case.AddedIncludes) {
tools/clang/tools/arcmt-test/arcmt-test.cpp
  145   for (const auto &RB : PPOpts.RemappedFileBuffers)
tools/clang/tools/clang-import-test/clang-import-test.cpp
  365     for (auto &ImportCI : ImportCIs) {
  371     for (auto &ImportCI : ImportCIs)
tools/clang/tools/clang-refactor/ClangRefactor.cpp
  261     for (const auto &Rule : this->ActionRules) {
  274     for (const auto &Rule : this->ActionRules) {
  332                           Changes.end());
  354     for (const auto &Action : Actions) {
  363     for (auto &Action : Actions) {
  480     for (const auto &Change : Changes)
  585     if (It == SubCommands.end()) {
  590       for (const auto &Subcommand : SubCommands)
tools/clang/tools/clang-refactor/TestSupport.cpp
  119     for (auto &Group : Results) {
  120       for (auto &Result : Group) {
tools/clang/tools/clang-rename/ClangRename.cpp
  116     for (const auto &Info : Infos) {
  201         TUR.Replacements.insert(TUR.Replacements.end(), Entry.second.begin(),
  224     for (const auto &File : Files) {
tools/clang/tools/clang-scan-deps/ClangScanDeps.cpp
  141   for (const auto &Command : Compilations->getAllCompileCommands())
  253   for (auto &W : WorkerThreads)
tools/clang/tools/diagtool/DiagTool.cpp
   53        ei = toolNames.end(); it != ei; ++it) {
tools/clang/tools/diagtool/ListWarnings.cpp
   41   for (const Entry &E : entries) {
tools/clang/tools/diagtool/ShowEnabledWarnings.cpp
  135   for (const PrettyDiag &PD : Active) {
tools/clang/tools/driver/cc1as_main.cpp
  245   for (const auto &Arg : Args.getAllArgValues(OPT_fdebug_prefix_map_EQ))
  510   for (auto &S : Opts.SymbolDefs) {
tools/clang/tools/driver/cc1gen_reproducer_main.cpp
  178   for (const auto &Arg : InvocationInfo.Arguments)
tools/clang/tools/extra/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
  183                FileAndReplacements.second.end());
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
  803   for (llvm::Regex &RE : WhiteListedSymbolRegexes)
tools/clang/tools/extra/clang-doc/BitcodeWriter.cpp
  433   for (const auto &L : std::vector<std::pair<llvm::StringRef, RecordId>>{
tools/clang/tools/extra/clang-doc/Generators.cpp
   83     auto It = std::find(I->Children.begin(), I->Children.end(), R.USR);
   84     if (It != I->Children.end()) {
   97   auto It = std::find(I->Children.begin(), I->Children.end(), Info->USR);
   98   if (It == I->Children.end()) {
tools/clang/tools/extra/clang-doc/HTMLGenerator.cpp
  104     for (const auto &C : Children) {
  186   for (const auto &C : Children)
  193   for (const auto &A : Attributes)
  203   for (const auto &C : Children) {
  224   std::move(New.begin(), New.end(), std::back_inserter(Original));
  907         for (const Index &C : I.Children)
  991   for (const auto &FilePath : CDCtx.UserStylesheets) {
  996   for (const auto &FilePath : CDCtx.FilesToCopy) {
tools/clang/tools/extra/clang-doc/Representation.cpp
   41   for (auto &I : Values)
   59   for (auto &ChildToMerge : ChildrenToMerge) {
   71   for (auto &ChildToMerge : ChildrenToMerge) {
   83   for (auto &ChildToMerge : ChildrenToMerge) {
  142   std::move(Other.Description.begin(), Other.Description.end(),
  144   std::sort(Description.begin(), Description.end());
  145   auto Last = std::unique(Description.begin(), Description.end());
  146   Description.erase(Last, Description.end());
  271   std::sort(Children.begin(), Children.end());
  272   for (auto &C : Children)
tools/clang/tools/extra/clang-doc/tool/ClangDocMain.cpp
  277       for (auto &Bitcode : Group.getValue()) {
  286         std::move(ReadInfos->begin(), ReadInfos->end(),
tools/clang/tools/extra/clang-include-fixer/FuzzySymbolIndex.cpp
   21     for (auto &Symbol : Symbols) {
   24           StringRef(llvm::join(Tokens.begin(), Tokens.end(), " ")),
   33     for (const Entry &E : Symbols)
tools/clang/tools/extra/clang-include-fixer/IncludeFixerContext.cpp
   87   std::sort(QuerySymbolInfos.begin(), QuerySymbolInfos.end(),
   93       std::unique(QuerySymbolInfos.begin(), QuerySymbolInfos.end(),
   97       QuerySymbolInfos.end());
   98   for (const auto &Symbol : MatchedSymbols) {
  106   HeaderInfos.erase(std::unique(HeaderInfos.begin(), HeaderInfos.end(),
  111                     HeaderInfos.end());
tools/clang/tools/extra/clang-include-fixer/SymbolIndexManager.cpp
   51   for (const auto &Symbol : Symbols) {
   61   std::sort(Symbols.begin(), Symbols.end(),
   96       Symbols.insert(Symbols.end(), Res.begin(), Res.end());
   96       Symbols.insert(Symbols.end(), Res.begin(), Res.end());
  102     for (auto &SymAndSig : Symbols) {
  152   for (auto &SymAndSig : MatchedSymbols)
tools/clang/tools/extra/clang-include-fixer/YamlSymbolIndex.cpp
   52   for (const auto &Symbol : Symbols) {
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/HeaderMapCollector.cpp
   32   for (auto &Entry : RegexHeaderMappingTable) {
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/tool/FindAllSymbolsMain.cpp
  105             for (auto &Symbol : Symbols) {
tools/clang/tools/extra/clang-include-fixer/tool/ClangIncludeFixer.cpp
  361     for (auto &Symbol : MatchedSymbols) {
  404   for (const auto &Context : Contexts) {
  430     for (const auto &Context : Contexts) {
  460   for (const auto &Replacement : FixerReplacements) {
tools/clang/tools/extra/clang-move/Move.cpp
  363   std::reverse(Namespaces.begin(), Namespaces.end());
  403     while (CurrentIt != CurrentNamespaces.end() &&
  404            DeclIt != DeclNamespaces.end()) {
  414     NextNamespaces.insert(NextNamespaces.end(), DeclIt, DeclNamespaces.end());
  414     NextNamespaces.insert(NextNamespaces.end(), DeclIt, DeclNamespaces.end());
  419     auto RemainingSize = CurrentNamespaces.end() - CurrentIt;
  433     while (DeclIt != DeclNamespaces.end()) {
  446   std::reverse(CurrentNamespaces.begin(), CurrentNamespaces.end());
  447   for (const auto &NS : CurrentNamespaces)
  735     for (const auto *D : HelperDeclarations) {
  747   for (const auto *RemovedDecl : RemovedDecls) {
  801   for (const auto *MovedDecl : MovedDecls) {
  815   for (const auto *D : NewCCDecls) {
tools/clang/tools/extra/clang-query/Query.cpp
  108     for (auto MI = Matches.begin(), ME = Matches.end(); MI != ME; ++MI) {
tools/clang/tools/extra/clang-query/QueryParser.cpp
  169   for (auto I = Comps.begin(), E = Comps.end(); I != E; ++I) {
tools/clang/tools/extra/clang-reorder-fields/tool/ClangReorderFields.cpp
   80   for (const auto &File : Files) {
tools/clang/tools/extra/clang-tidy/ClangTidy.cpp
   74     for (const ento::PathDiagnostic *PD : Diags) {
  413   for (auto &Check : Checks) {
  452   for (const auto &AnalyzerCheck : getAnalyzerCheckersAndPackages(
  457   std::sort(CheckNames.begin(), CheckNames.end());
  465   for (const auto &Check : Checks)
  508           if (I != AdjustedArgs.end() && !StringRef(*I).startswith("-"))
  511                               Opts.ExtraArgsBefore->end());
  514           AdjustedArgs.insert(AdjustedArgs.end(), Opts.ExtraArgs->begin(),
  515                               Opts.ExtraArgs->end());
  604     TUD.Diagnostics.insert(TUD.Diagnostics.end(), Diag);
tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
  639   for (auto &Error : Errors) {
  644   for (const auto &ErrorAndFix : ErrorFixes) {
  675     std::sort(Events.begin(), Events.end());
  677     for (const auto &Event : Events) {
  721   std::sort(Errors.begin(), Errors.end(), LessClangTidyError());
  722   Errors.erase(std::unique(Errors.begin(), Errors.end(), EqualClangTidyError()),
  723                Errors.end());
tools/clang/tools/extra/clang-tidy/ClangTidyOptions.cpp
   53     for (const FileFilter::LineRange &Range : File.LineRanges) {
   74     for (const auto &KeyValue : Options)
  123       Dest->insert(Dest->end(), Src->begin(), Src->end());
  171   for (const auto &Source : getRawOptions(FileName))
  282   for (const ConfigFileHandler &ConfigHandler : ConfigHandlers) {
tools/clang/tools/extra/clang-tidy/GlobList.cpp
   56   for (const GlobListItem &Item : Items) {
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp
  293     for (auto Comment : Comments) {
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousStringCompareCheck.cpp
  101                                                      FunctionNames.end())))
tools/clang/tools/extra/clang-tidy/bugprone/UnusedReturnValueCheck.cpp
   59                        std::vector<StringRef>(FunVec.begin(), FunVec.end()))))))
tools/clang/tools/extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp
  164   for (auto &Context : Contexts) {
  171   for (const auto &Context : Contexts) {
tools/clang/tools/extra/clang-tidy/modernize/DeprecatedHeadersCheck.cpp
   54   for (const auto &KeyValue :
   78     for (const auto &KeyValue :
   88   for (const auto &Key :
tools/clang/tools/extra/clang-tidy/readability/FunctionSizeCheck.cpp
  210   for (const auto &CSPos : FI.NestingThresholders) {
tools/clang/tools/extra/clang-tidy/tool/ClangTidyMain.cpp
  378     for (const std::string &Check : EnabledChecks) {
  396     for (const auto &CheckName : EnabledChecks)
  435                      }) != Errors.end();
tools/clang/tools/extra/clang-tidy/utils/HeaderGuard.cpp
   73     for (const auto &MacroEntry : Macros) {
  231       for (const auto &MacroEntry : Macros) {
tools/clang/tools/extra/clang-tidy/utils/TransformerClangTidyCheck.cpp
   65     for (auto &Matcher : tooling::detail::buildMatchers(*Rule))
  101   for (const auto &I : Case.AddedIncludes) {
tools/clang/tools/extra/clangd/ClangdLSPServer.cpp
  741         for (auto &Sym : *Items)
  915     for (auto &F : getFixes(File.file(), D)) {
  931         for (const auto &T : *Tweaks)
  937         for (const auto &Action : Actions) {
  962                          for (const auto &R : List->Completions) {
  983                           for (auto &SigInfo : Signature->signatures) {
  984                             for (auto &Param : SigInfo.parameters)
 1020         for (auto &S : *Symbols) {
 1039         for (auto &S : *Symbols) {
 1323   for (auto &Diag : Diagnostics) {
 1356   for (const Path &FilePath : DraftMgr.getActiveFiles())
tools/clang/tools/extra/clangd/ClangdServer.cpp
  298   for (const tooling::Replacement &R :
  383     for (auto &T : prepareTweaks(*Selection, TweakFilter))
tools/clang/tools/extra/clangd/CodeComplete.cpp
  534     for (llvm::StringRef AS : AccessibleScopes)
  575     for (auto &S : Scopes.scopesForIndexQuery()) {
  855       for (const auto &S : ScoredSignatures) {
  901     for (auto &SS : ScoredSignatures) {
 1272       for (const auto &Inc : Includes.MainFileIncludes)
 1301           llvm::join(QueryScopes.begin(), QueryScopes.end(), ","), AllScopes,
 1373     for (std::string &S : Scopes.AccessibleScopes)
 1578     for (auto &Bundle : Bundles)
tools/clang/tools/extra/clangd/Diagnostics.cpp
  402   for (auto &Diag : Output) {
  432         for (auto &Note : Diag.Notes)
  434         for (auto &Fix : Diag.Fixes)
  609       LastDiag->Fixes.insert(LastDiag->Fixes.end(), ExtraFixes.begin(),
  610                              ExtraFixes.end());
tools/clang/tools/extra/clangd/FindSymbols.cpp
  125   for (auto &R : std::move(Top).items())
tools/clang/tools/extra/clangd/Format.cpp
  263   for (tooling::Range &R : Incremental.FormatRanges)
  274   for (auto &R : RangesToFormat) {
  332   for (auto Pass :
tools/clang/tools/extra/clangd/Function.h
   86     for (const auto &L : Listeners)
tools/clang/tools/extra/clangd/GlobalCompilationDatabase.cpp
  220     for (llvm::StringRef File : AllFiles) {
  235   for (llvm::StringRef File : AllFiles) {
  297   Cmd.CommandLine.insert(Cmd.CommandLine.end(), FallbackFlags.begin(),
tools/clang/tools/extra/clangd/HeaderSourceSwitch.cpp
   80   for (const auto *D : getIndexableLocalDecls(AST)) {
tools/clang/tools/extra/clangd/Headers.cpp
  153     for (const auto &Parent : PreviousLevel) {
tools/clang/tools/extra/clangd/IncludeFixer.cpp
  315   for (const auto *Ctx : Collector.takeVisitedContexts()) {
  362       for (std::string &Scope : Unresolved.Scopes)
tools/clang/tools/extra/clangd/ParsedAST.cpp
  302     for (const auto &Check : CTChecks) {
  397     Diags.insert(Diags.end(), Preamble->Diags.begin(), Preamble->Diags.end());
  401     Diags.insert(Diags.end(), D.begin(), D.end());
  401     Diags.insert(Diags.end(), D.begin(), D.end());
tools/clang/tools/extra/clangd/Quality.h
  165         std::pop_heap(Heap.begin(), Heap.end(), Greater);
  167         std::push_heap(Heap.begin(), Heap.end(), Greater);
  171       std::push_heap(Heap.begin(), Heap.end(), Greater);
  174     assert(std::is_heap(Heap.begin(), Heap.end(), Greater));
  180     std::sort_heap(Heap.begin(), Heap.end(), Greater);
tools/clang/tools/extra/clangd/Selection.cpp
   86     for (auto It = Start; It != Tokens.end() && It->StartOffset < End; ++It) {
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp
  136     auto Last = std::unique(Tokens.begin(), Tokens.end());
  137     Tokens.erase(Last, Tokens.end());
tools/clang/tools/extra/clangd/SourceCode.cpp
  938   Found.erase(std::unique(Found.begin(), Found.end()), Found.end());
  938   Found.erase(std::unique(Found.begin(), Found.end()), Found.end());
tools/clang/tools/extra/clangd/TUScheduler.cpp
   98     if (It == LRU.end() || !It->second)
  107     assert(findByKey(K) == LRU.end());
  126     if (Existing == LRU.end())
tools/clang/tools/extra/clangd/XRefs.cpp
  289   for (const Decl *D : getDeclAtPosition(AST, SourceLocationBeg)) {
  368     References.erase(std::unique(References.begin(), References.end(),
  373                      References.end());
  425   for (const auto &Ref : References) {
  940   MainFileRefs.erase(std::unique(MainFileRefs.begin(), MainFileRefs.end(),
  945                      MainFileRefs.end());
  946   for (const auto &Ref : MainFileRefs) {
  962     for (const Decl *D : Decls) {
  992   for (const Decl *D : getDeclAtPosition(AST, Loc)) {
 1143   for (const CXXRecordDecl *ParentDecl : typeParents(&CXXRD)) {
tools/clang/tools/extra/clangd/index/Background.cpp
  100   for (auto &Include : Node.DirectIncludes) {
  174     std::shuffle(NeedsReIndexing.begin(), NeedsReIndexing.end(),
  178     for (auto &Cmd : NeedsReIndexing)
tools/clang/tools/extra/clangd/index/BackgroundIndexLoader.cpp
  105     for (PathRef Edge : ShardAndEdges.second) {
tools/clang/tools/extra/clangd/index/BackgroundQueue.cpp
   32       std::pop_heap(Queue.begin(), Queue.end());
   72     std::push_heap(Queue.begin(), Queue.end());
   80     for (Task &T : Tasks)
   82     std::move(Tasks.begin(), Tasks.end(), std::back_inserter(Queue));
   83     std::make_heap(Queue.begin(), Queue.end());
   97   for (Task &T : Queue)
  103     std::make_heap(Queue.begin(), Queue.end());
tools/clang/tools/extra/clangd/index/FileIndex.cpp
  141     for (const auto &Slab : SymbolSlabs) {
  150     for (const RefSlab *Refs : MainFileRefs)
  167     for (const auto &Slab : SymbolSlabs)
  183     for (const auto &RefSlab : RefSlabs)
  203   for (const auto &RelationSlab : RelationSlabs) {
  210   for (const auto &Slab : SymbolSlabs)
  212   for (const auto &RefSlab : RefSlabs)
  214   for (const auto &RelationSlab : RelationSlabs)
tools/clang/tools/extra/clangd/index/MemIndex.cpp
   55   for (const auto &Item : Results)
tools/clang/tools/extra/clangd/index/MemIndex.h
   25     for (const Symbol &S : Symbols)
   29     for (const Relation &R : Relations)
tools/clang/tools/extra/clangd/index/Relation.cpp
   29   std::sort(Relations.begin(), Relations.end());
   32   Relations.erase(std::unique(Relations.begin(), Relations.end()),
   33                   Relations.end());
tools/clang/tools/extra/clangd/index/Serialization.cpp
  171     for (llvm::StringRef S : Sorted) {
  264   for (llvm::StringRef &Include : IGN.DirectIncludes)
  359   for (auto &Ref : Result.second) {
  405   for (llvm::StringRef &C : Cmd.CommandLine)
  431   for (const auto &Chunk : RIFF->Chunks)
  458       for (auto &Include : Entry->getValue().DirectIncludes)
  479       for (const auto &Ref : RefsBundle.second) // FIXME: bulk insert?
  506     for (llvm::StringRef C : Cmd.CommandLine)
  515   for (llvm::StringRef &Include : IGN.DirectIncludes)
  550       for (auto &Ref : Refs.back().second) {
  587     for (const auto &Sym : Symbols)
  596       for (const auto &Sym : Refs)
  606       for (const auto &Relation : Relations)
  616       for (const auto &SF : Sources)
tools/clang/tools/extra/clangd/index/Symbol.cpp
   65   for (auto &S : SortedSymbols)
tools/clang/tools/extra/clangd/index/YAMLSerialization.cpp
  374       for (const auto &Ref : Variant.Refs->second)
tools/clang/tools/extra/clangd/index/dex/Dex.cpp
   55     for (const auto &ProximityURI :
   93     for (const auto &Token : generateSearchTokens(*Sym))
  219   for (const auto &IDAndScore : IDAndScores) {
  237   for (const auto &Item : std::move(Top).items())
tools/clang/tools/extra/clangd/index/dex/Dex.h
   48     for (auto &&Sym : Symbols)
   52     for (auto &&Rel : Relations)
tools/clang/tools/extra/clangd/index/dex/Iterator.cpp
   31     for (const auto &Child : Children)
   68     for (const auto &Child : Children)
  100       for (auto &Child : Children) {
  153     for (const auto &Child : Children)
  161     for (const auto &Child : Children)
  185     for (const auto &Child : Children)
  360   for (auto &Child : Children) {
  369       std::move(NewChildren.begin(), NewChildren.end(),
  390   for (auto &Child : Children) {
  397       std::move(NewChildren.begin(), NewChildren.end(),
tools/clang/tools/extra/clangd/index/dex/dexp/Dexp.cpp
  188     Request.IDs.insert(IDs.begin(), IDs.end());
  241     RefRequest.IDs.insert(IDs.begin(), IDs.end());
tools/clang/tools/extra/clangd/refactor/Rename.cpp
  153     Result.insert(Result.end(), std::make_move_iterator(RenameInDecl.begin()),
  154                   std::make_move_iterator(RenameInDecl.end()));
  184   for (const tooling::SymbolOccurrence &Rename :
tools/clang/tools/extra/clangd/refactor/tweaks/AnnotateHighlightings.cpp
   61   for (const auto &Token : HighlightingTokens) {
tools/clang/tools/extra/clangd/refactor/tweaks/RemoveUsingNamespace.cpp
  137   for (auto *D : AllDirectives) {
  179       std::unique(IdentsToQualify.begin(), IdentsToQualify.end()),
  180       IdentsToQualify.end());
  184   for (auto *D : AllDirectives) {
  193   for (auto Loc : IdentsToQualify) {
tools/clang/tools/extra/clangd/unittests/Annotations.cpp
   24   for (size_t O : Offsets)
   46   for (Annotations::Range R : OffsetRanges)
tools/clang/tools/extra/clangd/unittests/ClangdTests.cpp
  148     for (const auto &FileWithContents : ExtraFiles)
  304   CDB.ExtraClangFlags.insert(CDB.ExtraClangFlags.end(),
tools/clang/tools/extra/clangd/unittests/CodeCompleteTests.cpp
   94   for (const auto &Sym : Symbols)
 1052   for (auto Range : A.ranges()) {
 1717   for (const auto &C : Results.Completions) {
 1757   for (const auto &C : Results.Completions) {
tools/clang/tools/extra/clangd/unittests/FormatTests.cpp
   31   for (const auto& R : Changes)
tools/clang/tools/extra/clangd/unittests/IndexActionTests.cpp
   87     Args.insert(Args.end(), ExtraArgs.begin(), ExtraArgs.end());
tools/clang/tools/extra/clangd/unittests/RenameTests.cpp
  195       for (const auto &R : T.ranges())
tools/clang/tools/extra/clangd/unittests/SelectionTests.cpp
   63     Result.insert(Result.end(), N->Children.begin(), N->Children.end());
  374     for (const SelectionTree::Node *N : allNodes(T))
tools/clang/tools/extra/clangd/unittests/SemanticHighlightingTests.cpp
   64     ExpectedTokens.insert(ExpectedTokens.end(), Toks.begin(), Toks.end());
   64     ExpectedTokens.insert(ExpectedTokens.end(), Toks.begin(), Toks.end());
  112   for (auto File : AdditionalFiles)
  131   for (const Position &Point : NewTest.points()) {
  136   for (const HighlightingToken &Token : NewTokens) {
tools/clang/tools/extra/clangd/unittests/SourceCodeTests.cpp
  309   for (auto P : Source.points()) {
  323   for (const std::string &Text : std::vector<std::string>{
  471   for (const auto& Case : Cases) {
tools/clang/tools/extra/clangd/unittests/SymbolCollectorTests.cpp
  267     Args.insert(Args.end(), ExtraArgs.begin(), ExtraArgs.end());
tools/clang/tools/extra/clangd/unittests/TestIndex.cpp
   78   for (llvm::StringRef QName : QualifiedNames)
tools/clang/tools/extra/clangd/unittests/TestTU.cpp
   48   Cmd.insert(Cmd.end(), ExtraArgs.begin(), ExtraArgs.end());
   54   Inputs.CompileCommand.CommandLine = {Cmd.begin(), Cmd.end()};
tools/clang/tools/extra/clangd/unittests/TweakTesting.cpp
  142   for (const auto& Point : Test.points()) {
  146   for (const auto& Range : Test.ranges()) {
tools/clang/tools/extra/clangd/unittests/TypeHierarchyTests.cpp
   74   for (Position Pt : Source.points()) {
   98   for (Position Pt : Source.points()) {
  121   for (Position Pt : Source.points()) {
  371   for (Position Pt : Source.points()) {
tools/clang/tools/extra/clangd/unittests/XRefsTests.cpp
   64   for (const auto &Range : Test.ranges())
   66   for (const auto &Range : Test.ranges("read"))
   68   for (const auto &Range : Test.ranges("write"))
 2052     for (const auto &R : T.ranges())
 2112     for (const auto &R : T.ranges())
 2204     for (Position Pos : File.points()) {
tools/clang/tools/extra/modularize/CoverageChecker.cpp
  333       E = IncludePaths.end();
  341   std::sort(FileSystemHeaders.begin(), FileSystemHeaders.end());
  414     E = FileSystemHeaders.end();
tools/clang/tools/extra/modularize/Modularize.cpp
  512       std::sort(H->second.begin(), H->second.end());
  529           H->second.begin(), H->second.end(), KnownH->second.begin(),
  530           KnownH->second.end(),
tools/clang/tools/extra/modularize/ModularizeUtilities.cpp
   75   for (auto I = InputFilePaths.begin(), E = InputFilePaths.end(); I != E; ++I) {
tools/clang/tools/extra/modularize/ModuleAssistant.cpp
   87   for (auto I = SubModules.begin(), E = SubModules.end(); I != E; ++I) {
   93   for (auto I = HeaderFileNames.begin(), E = HeaderFileNames.end(); I != E;
  120   for (auto I = SubModules.begin(), E = SubModules.end(); I != E; ++I) {
tools/clang/tools/extra/modularize/PreprocessorTracker.cpp
  560     for (auto I = InclusionPathHandles.begin(), E = InclusionPathHandles.end();
  609               E = MacroExpansionInstances.end();
  658     for (auto I = InclusionPathHandles.begin(), E = InclusionPathHandles.end();
  699               E = ConditionalExpansionInstances.end();
  837                                                 E = IncludeDirectives.end();
  872                                                 E = IncludeDirectives.end();
 1154                 EMT = MacroExpTracker.MacroExpansionInstances.end();
 1162                   EIP = MacroInfo.InclusionPathHandles.end();
 1215                 EMT = CondTracker.ConditionalExpansionInstances.end();
 1223                   EIP = MacroInfo.InclusionPathHandles.end();
tools/clang/tools/extra/pp-trace/PPTrace.cpp
   95     for (const CallbackCall &Callback : CallbackCalls) {
tools/clang/tools/extra/unittests/clang-include-fixer/FuzzySymbolIndexTests.cpp
   38   std::string Target = llvm::join(Tokens.begin(), Tokens.end(), " ");
tools/clang/tools/extra/unittests/clang-include-fixer/IncludeFixerTest.cpp
   33   Args.insert(Args.end(), ExtraArgs.begin(), ExtraArgs.end());
tools/clang/tools/extra/unittests/clang-move/ClangMoveTests.cpp
  342   for (const auto& Header : TestHeaders) {
  362   for (const auto& Header : TestHeaders) {
  388   for (const auto& Header : TestHeaders) {
  410   for (const auto& Header : TestHeaders) {
tools/clang/tools/extra/unittests/clang-tidy/ClangTidyOptionsTest.cpp
   94                                               Options.ExtraArgs->end(), ","));
   98                        Options.ExtraArgsBefore->end(), ","));
tools/clang/tools/extra/unittests/clang-tidy/ClangTidyTest.h
  109   Args.insert(Args.end(), ExtraArgs.begin(), ExtraArgs.end());
  134     for (const auto &Error : DiagConsumer.take()) {
  142   for (const ClangTidyError &Error : Diags) {
tools/clang/tools/extra/unittests/clang-tidy/IncludeInserterTest.cpp
   48     for (StringRef header : HeadersToInclude()) {
tools/clang/tools/libclang/CIndex.cpp
 3492   Args->insert(Args->end(), command_line_args,
 3556     for (const char *Arg : *Args)
tools/clang/tools/libclang/CIndexCodeCompletion.cpp
  750   for (const auto &Arg : TU->Arguments)
tools/clang/tools/libclang/CXCursor.cpp
 1468            E = AllCursors.end(); I != E; ++I) {
tools/clang/tools/libclang/CXString.cpp
  128   for (std::vector<CXStringBuf *>::iterator I = Pool.begin(), E = Pool.end();
tools/clang/tools/libclang/Indexing.cpp
  499   Args->insert(Args->end(), command_line_args,
tools/clang/unittests/AST/ASTImporterFixtures.h
   62     for (const auto &Arg : ExtraArgs) {
tools/clang/unittests/ASTMatchers/ASTMatchersTest.h
   95   Args.insert(Args.end(), {"-frtti", "-fexceptions",
  155   for (auto Mode : LangModes) {
tools/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp
  150   for (const auto &E : Sema.Errors) {
  187   for (const auto &E : Sema.Errors) {
tools/clang/unittests/ASTMatchers/Dynamic/RegistryTest.cpp
  480   EXPECT_TRUE(std::equal(WhileComps.begin(), WhileComps.end(),
tools/clang/unittests/CodeGen/CodeGenExternalTest.cpp
  174   for (auto decl : my->toplevel_decls ) {
tools/clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
  129     auto It = std::find(ExpectedInitial.begin(), ExpectedInitial.end(), E);
  130     if (It == ExpectedInitial.end()) {
  144         std::find(ExpectedNonInitial.begin(), ExpectedNonInitial.end(), E);
  145     if (It == ExpectedNonInitial.end()) {
  147           std::find(OptionalNonInitial.begin(), OptionalNonInitial.end(), E);
  148       if (OptIt != OptionalNonInitial.end()) {
  214       for (const auto &E : ExpectedInitial) {
  220       for (const auto &E : ExpectedNonInitial) {
  226       for (const auto &E : UnexpectedInitial) {
  232       for (const auto &E : UnexpectedNonInitial) {
tools/clang/unittests/Driver/MultilibTest.cpp
  160                                             E = M.flags().end();
tools/clang/unittests/Lex/LexerTest.cpp
  461   for (const Token &Tok : LexedTokens) {
tools/clang/unittests/Sema/CodeCompleteTest.cpp
  121   for (size_t Point : A.points()) {
tools/clang/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp
   32       for (const auto *PD : Diags)
tools/clang/unittests/Tooling/CompilationDatabaseTest.cpp
  387   for (const auto &Case : Cases) {
tools/clang/unittests/Tooling/DependencyScannerTest.cpp
   41     Deps.insert(Deps.end(), NewDeps.begin(), NewDeps.end());
tools/clang/unittests/Tooling/Syntax/TokensTest.cpp
  773   for (auto Range : Code.ranges("macro"))
  777   for (auto Expansion : Expansions)
tools/clang/unittests/Tooling/TestVisitor.h
  152              It = ExpectedMatches.begin(), End = ExpectedMatches.end();
  167              It = DisallowedMatches.begin(), End = DisallowedMatches.end();
  174              It = ExpectedMatches.begin(), End = ExpectedMatches.end();
tools/clang/unittests/Tooling/ToolingTest.cpp
  472     return llvm::find(FinalArgs, Flag) != FinalArgs.end();
  503     return llvm::find(FinalArgs, Flag) != FinalArgs.end();
tools/clang/utils/TableGen/ClangASTNodesEmitter.cpp
  224   RecordSet DeclContexts (DeclContextsVector.begin(), DeclContextsVector.end());
  226   for (RecordVector::iterator i = Decls.begin(), e = Decls.end(); i != e; ++i) {
  240          i = DeclContextsVector.begin(), e = DeclContextsVector.end();
tools/clang/utils/TableGen/ClangAttrEmitter.cpp
   82   for (const auto &Spelling : Spellings) {
  165   for (const auto *Attr : Attrs) {
 1561   for (const auto *Accessor : Accessors) {
 1662   for (const auto *Attr : Attrs) {
 1669       for (const auto &I : Spellings) {
 1681   for (const auto &I : Spellings) {
 1830     for (const auto *Subject : ApplicableSubjects) {
 1843   for (const auto *MetaSubject : MetaSubjects) {
 1847     for (const auto *Constraint : Constraints)
 1855   for (const auto *Aggregate : Aggregates) {
 1861     for (const auto *D : DeclNodes) {
 1896   for (const auto &Rule : Rules) {
 1934   for (const auto *Subject : Subjects) {
 1982   for (const auto *Subject : Subjects) {
 2008   for (const auto &Rule : Rules) {
 2046   for (const auto &Rule : Rules) {
 2094   for (const FlattenedSpelling &S : Spellings) {
 2105   for (const auto *Attr : Attrs) {
 2127   for (const auto &I : Attrs) {
 2163   for (const auto *A : Attrs) {
 2184   for (const auto *Attr : Attrs) {
 2210   for (const auto *A : Attrs) {
 2236   for (const auto *Attr : Attrs) {
 2274     for (const auto *ArgRecord : ArgRecords) {
 2315       for (auto const &ai : Args) {
 2323       for (auto const &ai : Args) {
 2346       for (auto const &ai : Args) {
 2372       for (auto const &ai : Args) {
 2405       for (auto const &ai : Args) {
 2423       for (auto const &ai : Args) {
 2435       for (auto const &ai : Args) {
 2469     for (auto const &ai : Args) {
 2501   for (auto *Attr : Attrs) {
 2509     for (const auto *Arg : ArgRecords)
 2512     for (auto const &ai : Args)
 2518     for (auto const &ai : Args) {
 2536     for (const auto *Attr : Attrs) {
 2573          }) != Spellings.end();
 2650       for (auto SubClass : SubClasses) {
 2691       for (auto &Class : Classes) {
 2699       for (auto i = Classes.begin(), e = Classes.end(); i != e; ++i) {
 2770   for (auto *Attr : Attrs) {
 2819   for (const auto *Attr : Attrs) {
 2830     for (const auto *Arg : ArgRecords) {
 2835     for (auto const &ri : Args) {
 2857   for (const auto *Attr : Attrs) {
 2870     for (const auto *Arg : Args)
 2888     for (auto I = Items.begin(), E = Items.end(); I != E; ++I) {
 2927     for (auto I = Arches.begin(), E = Arches.end(); I != E; ++I) {
 2974         for (const auto &Spelling : Spellings) {
 3006     for (const auto &S : Spellings)
 3026   for (auto *R : Attrs) {
 3028     for (const auto &SI : Spellings) {
 3092   for (const auto &I : Attrs) {
 3121   for (const auto *Attr : Attrs) {
 3135   for (const auto *Attr : Attrs) {
 3149     for (const auto *Arg : ArgRecords)
 3164   for (const auto *Attr : Attrs) {
 3213     for (const auto *ArgRecord : ArgRecords)
 3216     for (auto const &ai : Args)
 3220     for (auto const &ai : Args) {
 3262   for (const auto &I : Names) {
 3278   for (const auto *Arg : Args) {
 3323   for (const auto *Subject : Subjects) {
 3363   std::string Diag = llvm::join(DiagList.begin(), DiagList.end() - 1, ", ");
 3364   return '"' + Diag + ", and " + *(DiagList.end() - 1) + '"';
 3440   for (auto I = Subjects.begin(), E = Subjects.end(); I != E; ++I) {
 3477   for (const auto &Rule : PragmaAttributeSupport.Rules) {
 3488     for (auto I = Subjects.begin(), E = Subjects.end(); I != E; ++I) {
 3526   for (auto I = LangOpts.begin(), E = LangOpts.end(); I != E; ++I)
 3581         Arches.insert(Arches.end(), DA.begin(), DA.end());
 3581         Arches.insert(Arches.end(), DA.begin(), DA.end());
 3674   for (auto I = Attrs.begin(), E = Attrs.end(); I != E; ++I) {
 3724   for (const auto *A : Attrs) {
 3751       for (const auto &S : Spellings) {
 3819   for (const auto *Attr : Attrs) {
 3836     for (const auto *Arg : Args)
 3855   for (const auto *Attr : Attrs) {
 3864     for (const auto *Arg : Args)
 3990       for (auto I = Spellings.begin(), E = Spellings.end();
 4008   for (const auto &I : Spellings)
 4081   for (const auto *A : Attrs) {
 4084     for (const auto *D : Docs) {
 4115     for (const auto &Doc : I.second)
 4125   for (const auto &I : Attrs) {
tools/clang/utils/TableGen/ClangCommentHTMLNamedCharacterReferenceEmitter.cpp
   54   for (std::vector<Record *>::iterator I = Tags.begin(), E = Tags.end();
tools/clang/utils/TableGen/ClangCommentHTMLTagsEmitter.cpp
   25   for (Record *Tag : Tags) {
   42   for (Record *Tag : Tags) {
tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
  607     for (auto *S : Records.getAllDerivedDefinitions("TextSubstitution")) {
  615     for (Record *Diag : Records.getAllDerivedDefinitions("Diagnostic")) {
  668       for (Piece *P : AllocatedPieces)
  699     for (int Idx : P->Modifiers)
  815       for (Piece *Node : MD->Pieces)
  839     for (const std::pair<Piece *, ModifierMappingsType> &NodePair : Pieces) {
  856       padToSameLength(Lines.begin(), Lines.end());
  870     RST.insert(RST.end(), EmptyLinePrefix);
  909     for (auto *O : P->Options) {
  917     for (size_t I : SeparatorIndexes)
  935     for (auto *Child : P->Pieces)
  949       for (auto *D : P->Options) {
 1337         for (auto const &Group : GroupsInPedantic) {
 1384         for (auto const &Diag : DiagsInPedantic)
 1663     for (auto &Line : Out)
 1713     PedDiags.DiagsInGroup.insert(PedDiags.DiagsInGroup.end(),
 1715                                  DiagsInPedantic.end());
 1716     for (auto *Group : GroupsInPedantic)
 1723   for (const Record *G : DiagGroups) {
 1762       for (const auto &Name : GroupInfo.SubGroups) {
 1772       for (const Record *D : GroupInfo.DiagsInGroup) {
tools/clang/utils/TableGen/ClangOpcodesEmitter.cpp
   74       for (auto *Type : TypeClass->getDef()->getValueAsListOfDefs("Types")) {
   89   for (auto *Opcode : Records.getAllDerivedDefinitions(Root.getName())) {
  164     for (auto *Arg : R->getValueAsListOfDefs("Args"))
  208     for (auto *Arg : Args)
  225     for (auto *Arg : Args)
  246   for (auto *Arg : Args)
  295       for (auto *Case : Cases) {
tools/clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
  203   for (const auto *T : Types) {
  330   for (const auto &T : Types) {
  337   for (const auto *B : Builtins) {
  347         std::find_if(SignaturesList.begin(), SignaturesList.end(),
  352     if (it == SignaturesList.end()) {
  391   for (const auto &P : SignaturesList) {
  472   for (const auto *VectList : Records.getAllDerivedDefinitions("IntList")) {
  475     for (const auto V : VectList->getValueAsListOfInts("List")) {
  491   for (auto *IT : ImageTypes) {
  527   for (const auto *GenType : Records.getAllDerivedDefinitions("GenericType")) {
  538       for (const auto *T :
  565   for (const auto *T : Types) {
tools/clang/utils/TableGen/ClangOptionDocEmitter.cpp
   50   for (Record *R : Records.getAllDerivedDefinitions("Option"))
   67   for (Record *R : Records.getAllDerivedDefinitions("OptionGroup")) {
   77   for (Record *R : Records.getAllDerivedDefinitions("Option")) {
  122     for (Record *G : Groups) {
  131     for (Record *O : Options)
  165   for (const Record *Flag : OptionOrGroup->getValueAsListOfDefs("Flags"))
  173   for (StringRef Exclusion : DocInfo->getValueAsListOfStrings("ExcludedFlags"))
  270   emitOptionWithArgs(Prefix, Option, std::vector<StringRef>(Args.begin(), Args.end()), OS);
  284   for (auto &Prefix : Option->getValueAsListOfStrings("Prefixes")) {
  318     for (auto &Prefix : Option->getValueAsListOfStrings("Prefixes"))
  325       SphinxOptionIDs.begin(), SphinxOptionIDs.end(),
  329   for (auto &S : SphinxOptionIDs)
tools/clang/utils/TableGen/ClangSACheckersEmitter.cpp
  227   for (const Record *Package : packages) {
  234     for (Record *PackageOpt : PackageOptions) {
  254   for (const Record *checker : checkers) {
  268   for (const Record *Checker : checkers) {
  272     for (const Record *Dependency :
  302   for (const Record *Checker : checkers) {
  309     for (Record *CheckerOpt : CheckerOptions) {
tools/clang/utils/TableGen/ClangTypeNodesEmitter.cpp
  209 	for (auto &macroName : MacrosToUndef) {
tools/clang/utils/TableGen/MveEmitter.cpp
  666     output.insert(output.end(), Args.begin(), Args.end());
  710     for (Result::Ptr W : V->prerequisites())
 1027       for (unsigned i : Op->getValueAsListOfInts("address_params"))
 1030       for (unsigned i : Op->getValueAsListOfInts("int_constant_params"))
 1036       for (Record *RParam : Op->getValueAsListOfDefs("params"))
 1216   for (Record *R : Records.getAllDerivedDefinitions("PrimitiveType"))
 1221   for (Record *R : Records.getAllDerivedDefinitions("Intrinsic")) {
 1222     for (Record *RParam : R->getValueAsListOfDefs("params")) {
tools/clang/utils/TableGen/NeonEmitter.cpp
 1511   for (auto &L : Lines) {
 1721       Elts.insert(Revved.begin(), Revved.end());
 2068   for (auto TS : TypeSpecs) {
 2071       for (auto SrcTS : TypeSpecs) {
 2084   NewTypeSpecs.erase(std::unique(NewTypeSpecs.begin(), NewTypeSpecs.end()),
 2085 		     NewTypeSpecs.end());
 2088   for (auto &I : NewTypeSpecs) {
 2317   for (auto *R : RV)
 2410   for (auto &TS : TDTypeVec) {
 2443     for (auto &TS : TDTypeVec) {
 2477   for (auto *R : RV)
 2584   for (auto *R : RV)
tools/dsymutil/BinaryHolder.cpp
   76   for (auto MemRef : ArchiveBuffers) {
  114   for (auto MemRef : ObjectBuffers) {
  167   for (const auto &Archive : Archives) {
tools/dsymutil/CompileUnit.cpp
   38   for (auto &I : Info) {
   82   for (const auto &Ref : ForwardDIEReferences) {
tools/dsymutil/DebugMap.cpp
   68   for (const auto &Sym : Entries) {
  271   for (auto &Entry : Entries) {
tools/dsymutil/DwarfLinker.cpp
  403   for (auto I = DIEBlocks.begin(), E = DIEBlocks.end(); I != E; ++I)
  405   for (auto I = DIELocs.begin(), E = DIELocs.end(); I != E; ++I)
 1771     Rows.insert(Rows.end(), Seq.begin(), Seq.end());
 1771     Rows.insert(Rows.end(), Seq.begin(), Seq.end());
 1784   if (InsertPoint != Rows.end() && InsertPoint->Address == Front &&
 1787     Rows.insert(InsertPoint + 1, Seq.begin() + 1, Seq.end());
 1789     Rows.insert(InsertPoint, Seq.begin(), Seq.end());
 1855   for (auto &Row : LineTable.Rows) {
 2364   for (auto &CurrentUnit : CompileUnits) {
 2413   for (auto &CurrentUnit : CompileUnits) {
 2589   for (LinkContext &LinkContext : ObjectContexts) {
 2723     for (auto &CurrentUnit : LinkContext.CompileUnits) {
 2752       for (auto &CurrentUnit : LinkContext.CompileUnits)
 2756       for (auto &CurrentUnit : LinkContext.CompileUnits)
tools/dsymutil/DwarfStreamer.cpp
  197   for (auto Entry : Entries) {
  214   for (auto &CU : EmittedUnits) {
  353     for (auto Range = Ranges.begin(), End = Ranges.end(); Range != End;
  375   for (auto Range = Ranges.begin(), End = Ranges.end(); Range != End; ++Range) {
tools/dsymutil/MachODebugMapParser.cpp
  136   for (auto &CommonSymbol : CommonSymbols) {
  367   for (const auto *Object : *Objects)
  389   for (const auto *Object : *Objects)
  455     for (const auto &Alias : getMainBinarySymbolNames(Value)) {
tools/dsymutil/MachOUtils.cpp
  538     for (auto EntryRef : Strings) {
tools/dsymutil/dsymutil.cpp
  116   for (const auto &Input : InputFiles) {
  482   for (const auto &Arch : Options.Archs)
  491   for (auto &InputFile : Options.InputFiles) {
  513       for (auto &Map : *DebugMapPtrsOrErr)
  540     for (auto &Map : *DebugMapPtrsOrErr) {
tools/gold/gold-plugin.cpp
  717   for (ld_plugin_symbol &Sym : F.syms) {
 1097   for (const auto &F : Files)
 1130   for (std::string &Name : Cleanup) {
tools/llc/llc.cpp
  565       for (const std::string &RunPassName : *RunPassNames) {
tools/lld/COFF/Chunks.cpp
  345   for (const std::string &s : symbolLocations)
  882   for (SectionChunk *c : sections)
  890   for (SectionChunk *c : sections) {
tools/lld/COFF/DLL.cpp
  151     std::sort(syms.begin(), syms.end(),
  510     for (const Export &e : config->exports) {
  550     for (Export &e : config->exports) {
  568   for (std::vector<DefinedImportData *> &syms : v) {
  574     for (DefinedImportData *s : syms) {
  606   v.insert(v.end(), dirs.begin(), dirs.end());
  606   v.insert(v.end(), dirs.begin(), dirs.end());
  607   v.insert(v.end(), names.begin(), names.end());
  607   v.insert(v.end(), names.begin(), names.end());
  608   v.insert(v.end(), hintNames.begin(), hintNames.end());
  608   v.insert(v.end(), hintNames.begin(), hintNames.end());
  609   v.insert(v.end(), dllNames.begin(), dllNames.end());
  609   v.insert(v.end(), dllNames.begin(), dllNames.end());
  615   v.insert(v.end(), moduleHandles.begin(), moduleHandles.end());
  615   v.insert(v.end(), moduleHandles.begin(), moduleHandles.end());
  616   v.insert(v.end(), addresses.begin(), addresses.end());
  616   v.insert(v.end(), addresses.begin(), addresses.end());
  629   for (std::vector<DefinedImportData *> &syms : v) {
  636     for (DefinedImportData *s : syms) {
  704   for (Export &e : config->exports)
  710   for (Export &e : config->exports)
  715   for (Export &e : config->exports) {
  731   chunks.insert(chunks.end(), names.begin(), names.end());
  731   chunks.insert(chunks.end(), names.begin(), names.end());
  732   chunks.insert(chunks.end(), forwards.begin(), forwards.end());
  732   chunks.insert(chunks.end(), forwards.begin(), forwards.end());
tools/lld/COFF/Driver.cpp
  190       for (MemoryBufferRef m : getArchiveMembers(archive))
  339   for (StringRef e : exports) {
  411   for (StringRef dir : searchPaths) {
  744   for (Export &e1 : config->exports) {
  830   for (COFFShortExport e1 : m.Exports) {
  881   for (Chunk *c : symtab->getChunks())
  895   for (std::string s : args::getLines(mb->getMemBufferRef())) {
  917   for (Export &r : config->exports)
  922   for (ObjFile *obj : ObjFile::instances) {
 1006   for (ObjFile *f : ObjFile::instances) {
 1024     for (ObjFile *f : resourceObjFiles)
 1792     for (Export &e : config->exports) {
 1894     for (auto i = ObjFile::instances.begin(), e = ObjFile::instances.end();
tools/lld/COFF/DriverUtils.cpp
   65             llvm::join(args.begin(), args.end(), " "));
  398   for (StringRef filename : config->manifestInput) {
  426   for (StringRef filename : config->manifestInput) {
  624   for (Export &e : config->exports) {
  631   for (Export &e : config->exports) {
  640     for (Export &e : config->exports) {
  651   for (Export &e : config->exports) {
  666   std::sort(config->exports.begin(), config->exports.end(),
  675   for (Export &e : config->exports)
  677   for (Export &e : config->exports)
  733   for (const auto &dupeDiag : duplicates)
  868   for (StringRef tok : tokenize(s)) {
  895     argv.insert(std::next(argv.begin()), v.begin(), v.end());
  899     argv.insert(std::next(argv.begin()), v.begin(), v.end());
tools/lld/COFF/ICF.cpp
  261       for (SectionChunk *sc : mc->sections)
tools/lld/COFF/InputFiles.cpp
  299   chunks.insert(chunks.end(), resourceChunks.begin(), resourceChunks.end());
  299   chunks.insert(chunks.end(), resourceChunks.begin(), resourceChunks.end());
  442   for (uint32_t i : pendingIndexes) {
tools/lld/COFF/LTO.cpp
  203   for (std::unique_ptr<MemoryBuffer> &file : files)
tools/lld/COFF/MapFile.cpp
   50   for (ObjFile *file : ObjFile::instances)
  112     for (Chunk *c : sec->chunks) {
tools/lld/COFF/MarkLive.cpp
   54   for (Symbol *b : config->gcroot)
tools/lld/COFF/MinGW.cpp
  157   for (Export &e : config->exports) {
tools/lld/COFF/PDB.cpp
  520   for (ObjFile *f : ObjFile::instances) {
 1127   for (DebugFrameDataSubsectionRef &fds : newFpoFrames) {
 1137   for (ulittle32_t *ref : stringTableReferences)
 1228   for (ObjFile *file : ObjFile::instances) {
 1276   for (ObjFile *file : ObjFile::instances)
 1305     for (const PublicSym32 &pub : publics)
 1339   for (StringRef file : config->natvisFiles) {
 1501   for (PartialSection *sec : os.contribSections) {
 1513   for (ImportFile *file : ImportFile::instances) {
 1660     for (Chunk *c : os->chunks) {
tools/lld/COFF/SymbolTable.cpp
  167   for (Location loc : locations) {
  212     for (const std::string &s : symbolLocations) {
  321   for (Symbol *b : config->gcroot) {
  363   for (const UndefinedDiag &undefDiag : undefDiags)
  712   for (ObjFile *file : ObjFile::instances) {
  714     res.insert(res.end(), v.begin(), v.end());
  756     for (auto *s : syms)
  787   for (BitcodeFile *f : BitcodeFile::instances)
  797   for (StringRef object : compileBitcodeFiles()) {
tools/lld/COFF/Writer.cpp
  123     for (support::ulittle32_t *tds : timeDateStamps)
  308   chunks.insert(chunks.end(), other->chunks.begin(), other->chunks.end());
  308   chunks.insert(chunks.end(), other->chunks.begin(), other->chunks.end());
  310   contribSections.insert(contribSections.end(), other->contribSections.begin(),
  311                          other->contribSections.end());
  484     auto endReplacement = relocReplacements.end();
  531   for (OutputSection *sec : outputSections) {
  543     for (OutputSection *sec : outputSections) {
  564       for (OutputSection *sec : outputSections)
  572     for (OutputSection *sec : outputSections)
  668     destSec->chunks.insert(destSec->chunks.end(), pSec->chunks.begin(),
  669                            pSec->chunks.end());
  733     pSec->chunks.insert(pSec->chunks.end(), v.begin(), v.end());
  733     pSec->chunks.insert(pSec->chunks.end(), v.begin(), v.end());
  754     for (Chunk *c : importDirs->chunks)
  761     for (Chunk *c : importAddresses->chunks)
  825   for (Chunk *c : symtab->getChunks()) {
  881     for (Chunk *c : pSec->chunks)
  917     for (Chunk *c : symtab->localImportChunks)
  936     for (Chunk *c : debugRecords)
  963   for (ImportFile *file : ImportFile::instances) {
  989   for (ImportFile *file : ImportFile::instances) {
 1006     for (Chunk *c : delayIdata.getChunks())
 1008     for (Chunk *c : delayIdata.getDataChunks())
 1022     for (Chunk *c : edata.chunks)
 1042       std::remove_if(outputSections.begin(), outputSections.end(), isUnused),
 1043       outputSections.end());
 1051       std::remove_if(outputSections.begin(), outputSections.end(), isEmpty),
 1052       outputSections.end());
 1059   for (OutputSection *os : outputSections) {
 1061     for (Chunk *c : os->chunks)
 1070       for (SectionChunk *sc : mc->sections)
 1078   strtab.insert(strtab.end(), str.begin(), str.end());
 1146   for (OutputSection *sec : outputSections) {
 1155     for (ObjFile *file : ObjFile::instances) {
 1224   for (OutputSection *sec : outputSections) {
 1238     for (Chunk *c : sec->chunks) {
 1439   for (OutputSection *sec : outputSections) {
 1472   for (ObjFile *file : ObjFile::instances) {
 1575   for (ObjFile *file : ObjFile::instances) {
 1594   for (Export &e : config->exports)
 1685   for (Chunk *c : symtab->getChunks()) {
 1734     for (OutputSection *sec : outputSections)
 1747   for (OutputSection *sec : outputSections) {
 1868     for (auto &c : chunks) {
 1877   for (OutputSection *sec : outputSections)
 1885   for (OutputSection *s : outputSections)
 1897   for (OutputSection *sec : outputSections) {
 1901     for (Chunk *c : sec->chunks)
tools/lld/Common/DWARF.cpp
   94   for (const llvm::DWARFDebugLine::LineTable *lt : lineTables) {
tools/lld/Common/Memory.cpp
   19   for (SpecificAllocBase *alloc : SpecificAllocBase::instances)
tools/lld/Common/Timer.cpp
   51   for (const auto &child : children)
tools/lld/ELF/AArch64ErrataFix.cpp
  442   for (InputFile *file : objectFiles) {
  465         std::unique(mapSyms.begin(), mapSyms.end(),
  469         mapSyms.end());
  493   auto patchEnd = patches.end();
  494   for (const InputSection *isec : isd.sections) {
  522   std::merge(isd.sections.begin(), isd.sections.end(), patches.begin(),
  523              patches.end(), std::back_inserter(tmp), mergeCmp);
  551   if (relIt != isec->relocations.end() &&
  565   if (relIt != isec->relocations.end()) {
  580   for (InputSection *isec : isd.sections) {
  592     while (codeSym != mapSyms.end()) {
  596           (dataSym == mapSyms.end()) ? isec->data().size() : (*dataSym)->value;
  604       if (dataSym == mapSyms.end())
  629   for (OutputSection *os : outputSections) {
  632     for (BaseCommand *bc : os->sectionCommands)
tools/lld/ELF/ARMErrataFix.cpp
  277       if (relIt != isec->relocations.end())
  318   for (InputFile *file : objectFiles) {
  339     mapSyms.erase(std::unique(mapSyms.begin(), mapSyms.end(),
  344                   mapSyms.end());
  365   auto patchEnd = patches.end();
  366   for (const InputSection *isec : isd.sections) {
  392   std::merge(isd.sections.begin(), isd.sections.end(), patches.begin(),
  393              patches.end(), std::back_inserter(tmp), mergeCmp);
  475   for (InputSection *isec : isd.sections) {
  487     while (thumbSym != mapSyms.end()) {
  490       uint64_t limit = (nonThumbSym == mapSyms.end()) ? isec->data().size()
  498       if (nonThumbSym == mapSyms.end())
  511   for (OutputSection *os : outputSections) {
  514     for (BaseCommand *bc : os->sectionCommands)
tools/lld/ELF/Arch/Hexagon.cpp
   65   for (InputFile *f : objectFiles) {
tools/lld/ELF/Arch/MipsArchTree.cpp
  299   for (InputFile *f : objectFiles)
tools/lld/ELF/Arch/PPC64.cpp
  352   for (InputFile *f : objectFiles) {
tools/lld/ELF/Arch/RISCV.cpp
  113   for (InputFile *f : objectFiles) {
tools/lld/ELF/CallGraphSort.cpp
  146   for (Cluster &c : clusters)
  186   std::iota(leaders.begin(), leaders.end(), 0);
  187   std::iota(sorted.begin(), sorted.end(), 0);
  192   for (int l : sorted) {
  227   for (int leader : sorted)
  245     for (int leader : sorted)
tools/lld/ELF/Driver.cpp
  182   for (std::unique_ptr<MemoryBuffer> &mb : file->takeThinBuffers())
  209       for (const auto &p : getArchiveMembers(mbref))
  224       for (const std::pair<MemoryBufferRef, uint64_t> &p :
  231       for (const std::pair<MemoryBufferRef, uint64_t> &p :
  511   return llvm::join(v.begin(), v.end(), ":");
  712   for (InputFile *file : objectFiles)
  730   for (StringRef line : args::getLines(mb)) {
  747   for (auto file : objectFiles) {
  797   for (StringRef s : args::getLines(mb))
 1055       for (StringRef s : args::getLines(*buffer))
 1256   for (InputFile *f : files) {
 1356   for (InputFile *file : objectFiles)
 1359   for (BitcodeFile *file : bitcodeFiles)
 1392   for (Symbol *sym : syms)
 1486   for (InputFile *f : objectFiles) {
 1526   for (Partition &part : partitions) {
 1575   for (BitcodeFile *file : bitcodeFiles)
 1578   for (InputFile *file : lto->compile()) {
 1678   for (InputFile *f : objectFiles) {
 1752   for (StringRef name : script->referencedSymbols)
 1756   for (StringRef arg : config->undefined)
 1765   for (StringRef pat : args::getStrings(args, OPT_undefined_glob))
 1854   for (InputFile *f : objectFiles)
 1858   for (BinaryFile *f : binaryFiles)
 1951   for (BaseCommand *base : script->sectionCommands)
tools/lld/ELF/DriverUtils.cpp
  220   for (StringRef dir : config->searchPaths)
  229   for (StringRef dir : config->searchPaths) {
tools/lld/ELF/ICF.cpp
  449   for (InputSectionBase *sec : inputSections) {
  506   for (BaseCommand *base : script->sectionCommands)
  508       for (BaseCommand *sub_base : sec->sectionCommands)
tools/lld/ELF/InputFiles.cpp
 1545     for (Symbol *sym : this->symbols) {
tools/lld/ELF/InputSection.cpp
  588       std::equal_range(isec->relocations.begin(), isec->relocations.end(), r,
  893   for (const Relocation &rel : sec->relocations) {
  925   for (const Relocation &rel : relocations) {
 1014   for (Defined *f : functions) {
 1016     while (it != morestackCalls.end() && (*it)->offset < f->value)
 1019     while (it != morestackCalls.end() && (*it)->offset < f->value + f->size) {
 1046   for (Relocation &rel : relocations) {
tools/lld/ELF/LTO.cpp
  217   for (LazyObjFile *f : lazyObjFiles) {
  301   for (std::unique_ptr<MemoryBuffer> &file : files)
tools/lld/ELF/LinkerScript.cpp
  226     for (BaseCommand *sub_base : cast<OutputSection>(base)->sectionCommands)
  254     v.insert(v.end(), from.begin(), from.end());
  254     v.insert(v.end(), from.begin(), from.end());
  258   for (BaseCommand *base : sectionCommands) {
  282   for (BaseCommand *base : sectionCommands) {
  295     for (BaseCommand *base2 : sec->sectionCommands)
  335   for (InputSectionDescription *id : keptSections)
  337       for (SectionPattern &p : id->sectionPatterns)
  416     for (InputSectionBase *sec : inputSections) {
  466   for (BaseCommand *base : outCmd.sectionCommands) {
  469       for (InputSectionBase *s : cmd->sectionBases)
  471       ret.insert(ret.end(), cmd->sectionBases.begin(), cmd->sectionBases.end());
  471       ret.insert(ret.end(), cmd->sectionBases.begin(), cmd->sectionBases.end());
  480   for (BaseCommand *base : sectionCommands) {
  487         for (InputSectionBase *s : v)
  501         for (InputSectionBase *s : v)
  512         for (InputSectionBase *s : v)
  541   for (BaseCommand *base : sectionCommands) {
  545       for (BaseCommand *sub_base : cast<OutputSection>(base)->sectionCommands)
  706   for (InputSectionBase *isec : inputSections) {
  725     sectionCommands.insert(sectionCommands.end(), v.begin(), v.end());
  725     sectionCommands.insert(sectionCommands.end(), v.begin(), v.end());
  727     sectionCommands.insert(sectionCommands.begin(), v.begin(), v.end());
  797   for (OutputSection *sec : outputSections)
  850   for (BaseCommand *base : sec->sectionCommands) {
  870     for (InputSection *sec : cast<InputSectionDescription>(base)->sections)
  896   for (BaseCommand *base : sec.sectionCommands) {
  932   for (BaseCommand *&cmd : sectionCommands) {
  973   for (BaseCommand *base : sectionCommands) {
  995   if (firstPtLoad != phdrsCommands.end())
 1000   for (BaseCommand *base : sectionCommands) {
 1034   for (OutputSection *sec : outputSections)
 1040   if (it == phdrs.end())
 1101   for (BaseCommand *base : sectionCommands) {
 1121   for (const PhdrsCommand &cmd : phdrsCommands) {
 1137   for (OutputSection *sec : outputSections) {
 1139     for (size_t id : getPhdrIndices(sec)) {
 1156   for (PhdrsCommand &cmd : phdrsCommands)
 1196   for (StringRef s : cmd->phdrs) {
tools/lld/ELF/MapFile.cpp
   56   for (InputFile *file : objectFiles)
  133   for (EhSectionPiece &p : pieces) {
  164   for (BaseCommand *base : script->sectionCommands) {
  179     for (BaseCommand *base : osec->sectionCommands) {
  181         for (InputSection *isec : isd->sections) {
  236   for (InputFile *file : objectFiles) {
tools/lld/ELF/MarkLive.cpp
  116   for (InputSectionBase *sec : cNamedSections.lookup(sym.getName()))
  234   for (StringRef s : config->undefined)
  236   for (StringRef s : script->referencedSymbols)
  241   for (InputSectionBase *sec : inputSections) {
  299   for (InputFile *file : objectFiles)
  306   for (InputSectionBase *sec : inputSections) {
  323     for (InputSectionBase *sec : inputSections)
  356   for (InputSectionBase *sec : inputSections) {
  377     for (InputSectionBase *sec : inputSections)
tools/lld/ELF/OutputSections.cpp
  164   for (BaseCommand *base : sectionCommands) {
  169     for (InputSectionBase *s : cmd->sectionBases) {
  195       if (i == mergeSections.end()) {
  199         i = std::prev(mergeSections.end());
  211     for (InputSection *s : cmd->sections)
  214   for (auto *ms : mergeSections)
  241   for (BaseCommand *b : sectionCommands)
  335   for (BaseCommand *base : sectionCommands)
  466   for (BaseCommand *base : os->sectionCommands)
  468       ret.insert(ret.end(), isd->sections.begin(), isd->sections.end());
  468       ret.insert(ret.end(), isd->sections.begin(), isd->sections.end());
tools/lld/ELF/Relocations.cpp
   68   for (BaseCommand *base : script->sectionCommands)
  829   for (UndefinedDiag &undef : undefs) {
 1445     for (BaseCommand *bc : os->sectionCommands)
 1558         for (const std::pair<ThunkSection *, uint32_t> ts : isd->thunkSections)
 1570         std::merge(isd->sections.begin(), isd->sections.end(),
 1571                    newThunks.begin(), newThunks.end(), std::back_inserter(tmp),
 1584   for (std::pair<ThunkSection *, uint32_t> tp : isd->thunkSections) {
 1617   for (BaseCommand *bc : tos->sectionCommands) {
 1672         for (const InputSection *isec : isd->sections) {
 1717   for (Thunk *t : *thunkVec)
 1782         for (InputSection *isec : isd->sections)
 1783           for (Relocation &rel : isec->relocations) {
 1821         for (auto &p : isd->thunkSections)
tools/lld/ELF/ScriptLexer.cpp
  138   tokens.insert(tokens.begin() + pos, vec.begin(), vec.end());
  226   tokens.insert(tokens.begin() + pos, v.begin(), v.end());
  296   for (MemoryBufferRef mb : mbs)
tools/lld/ELF/ScriptParser.cpp
  190   for (SymbolVersion v : globals)
  534       for (BaseCommand *cmd : readOverlay())
  557       dest->insert(dest->end(), v.begin(), v.end());
  557       dest->insert(dest->end(), v.begin(), v.end());
  561   script->sectionCommands.insert(script->sectionCommands.end(), v.begin(),
  562                                  v.end());
  683     for (SectionPattern &pat : v) {
  688     std::move(v.begin(), v.end(), std::back_inserter(cmd->sectionPatterns));
 1347   for (const SymbolVersion &pat : locals)
 1349   for (const SymbolVersion &pat : globals)
 1362   for (const SymbolVersion &pat : locals)
 1407       v->insert(v->end(), ext.begin(), ext.end());
 1407       v->insert(v->end(), ext.begin(), ext.end());
tools/lld/ELF/SymbolTable.cpp
  122     for (Symbol *sym : symVector) {
  147         res.insert(res.end(), p.second.begin(), p.second.end());
  147         res.insert(res.end(), p.second.begin(), p.second.end());
  151   for (Symbol *sym : symVector)
  159   for (SymbolVersion &ver : config->dynamicList) {
  166     for (Symbol *sym : syms)
  196   for (Symbol *sym : syms) {
  221   for (Symbol *sym : findAllByVersion(ver))
  236   for (VersionDefinition &v : config->versionDefinitions)
  237     for (SymbolVersion &pat : v.patterns)
  244     for (SymbolVersion &pat : v.patterns)
  250   for (VersionDefinition &v : config->versionDefinitions)
  251     for (SymbolVersion &pat : v.patterns)
  258   for (Symbol *sym : symVector)
tools/lld/ELF/SymbolTable.h
   39     for (Symbol *sym : symVector)
tools/lld/ELF/SyntheticSections.cpp
  106   for (InputSectionBase *sec : inputSections) {
  173   for (InputSectionBase *sec : inputSections)
  181   for (InputSectionBase *sec : sections) {
  230   for (InputSectionBase *sec : inputSections)
  238   for (InputSectionBase *sec : sections) {
  404   for (EhSectionPiece &piece : sec->pieces) {
  467     for (EhInputSection *sec : sections)
  471     for (EhInputSection *sec : sections)
  475     for (EhInputSection *sec : sections)
  479     for (EhInputSection *sec : sections)
  485   for (CieRecord *rec : cieRecords) {
  489     for (EhSectionPiece *fde : rec->fdes) {
  514     for (EhSectionPiece *fde : rec->fdes) {
  534   ret.erase(std::unique(ret.begin(), ret.end(), eq), ret.end());
  534   ret.erase(std::unique(ret.begin(), ret.end(), eq), ret.end());
  575   for (CieRecord *rec : cieRecords) {
  579     for (EhSectionPiece *fde : rec->fdes) {
  592   for (EhInputSection *s : sections)
  809   for (const FileGot &g : gots)
  823   for (FileGot &got : gots) {
  835   for (FileGot &got : gots) {
  847   for (FileGot &got : gots) {
  854   for (FileGot &got : gots) {
  861           for (InputSection *isec : isd->sections) {
  875   for (FileGot &srcGot : gots) {
  904   for (FileGot &got : gots) {
  939   for (FileGot &got : gots) {
 1033   for (const FileGot &g : gots) {
 1106   for (const Symbol *b : entries) {
 1148   for (const Symbol *b : entries) {
 1178   for (StringRef s : strings) {
 1279   for (StringRef s : config->filterList)
 1281   for (StringRef s : config->auxiliaryList)
 1288   for (SharedFile *file : sharedFiles)
 1450     for (SharedFile *f : sharedFiles)
 1502   for (std::pair<int32_t, std::function<uint64_t()>> &kv : entries) {
 1613   for (const DynamicReloc &rel : relocs) {
 1690   for (const DynamicReloc &rel : relocs) {
 1712   for (auto i = relatives.begin(), e = relatives.end(); i != e;) {
 1719       ungroupedRelatives.insert(ungroupedRelatives.end(), group.begin(),
 1720                                 group.end());
 1758   for (auto i = nonRelatives.begin(), e = nonRelatives.end(); i != e;) {
 1764       ungroupedNonRelatives.insert(ungroupedNonRelatives.end(), i, j);
 1786   for (std::vector<Elf_Rela> &g : relativeGroups) {
 1805       for (auto i = g.begin() + 1, e = g.end(); i != e; ++i) {
 1819     for (Elf_Rela &r : ungroupedRelatives) {
 1830   for (ArrayRef<Elf_Rela> g : nonRelativeGroups) {
 1845     for (Elf_Rela &r : ungroupedNonRelatives) {
 1917   for (const RelativeReloc &rel : relocs)
 2018     for (const SymbolTableEntry &s : symbols)
 2033       symbols.begin(), symbols.end(), [](const SymbolTableEntry &s) {
 2050     for (SymbolTableEntry &entry : p.second)
 2071     for (const SymbolTableEntry &e : symbols) {
 2118   for (SymbolTableEntry &ent : symbols) {
 2172     for (SymbolTableEntry &ent : symbols) {
 2224   for (BaseCommand *base : script->sectionCommands)
 2320   for (const Entry &sym : symbols) {
 2335   for (auto i = symbols.begin(), e = symbols.end(); i != e; ++i) {
 2368       std::stable_partition(v.begin(), v.end(), [&](const SymbolTableEntry &s) {
 2381   nBuckets = std::max<size_t>((v.end() - mid) / 4, 1);
 2383   if (mid == v.end())
 2386   for (SymbolTableEntry &ent : llvm::make_range(mid, v.end())) {
 2397   v.erase(mid, v.end());
 2398   for (const Entry &ent : symbols)
 2533   for (GdbChunk &chunk : chunks)
 2545   for (InputSectionBase *s : inputSections)
 2576     for (DWARFAddressRange &r : *ranges) {
 2677   for (ArrayRef<GdbSymbol> v : symbols)
 2684   for (std::vector<GdbSymbol> &vec : symbols)
 2685     for (GdbSymbol &sym : vec)
 2691   for (GdbSymbol &sym : ret) {
 2695   for (GdbSymbol &sym : ret) {
 2710   for (InputSectionBase *s : inputSections)
 2745   for (GdbChunk &chunk : chunks) {
 2746     for (CuEntry &cu : chunk.compilationUnits) {
 2757   for (GdbChunk &chunk : chunks) {
 2758     for (AddressEntry &e : chunk.addressAreas) {
 2773   for (GdbSymbol &sym : symbols) {
 2794   for (GdbSymbol &sym : symbols) {
 2797     for (uint32_t val : sym.cuVector) {
 2836   for (FdeData &fde : fdes) {
 2968   for (SharedFile *f : sharedFiles) {
 2996   for (auto &vn : verneeds) {
 3007     for (auto &vna : vn.vernauxs) {
 3049   for (MergeInputSection *sec : sections)
 3060   for (MergeInputSection *sec : sections)
 3093     for (MergeInputSection *sec : sections) {
 3288   for (InputSection *isec : executableSections) {
 3320   for (InputSection *isec : executableSections) {
 3366   for (Thunk *t : thunks)
 3379   for (Thunk *t : thunks) {
 3397   for (BaseCommand *base : getParent()->sectionCommands)
 3399       for (InputSection *isec : isd->sections)
 3411   for (BaseCommand *base : getParent()->sectionCommands)
 3413       for (InputSection *isec : isd->sections) {
 3448   for (const Symbol *sym : entries) {
 3517   for (PhdrEntry *p : part.phdrs) {
tools/lld/ELF/Target.cpp
   97   for (InputSectionBase *d : inputSections) {
tools/lld/ELF/Writer.cpp
  158     for (InputSectionBase *s : inputSections) {
  173   inputSections.insert(inputSections.end(), newSections.begin(),
  174                        newSections.end());
  178   for (InputSectionBase *&s : inputSections) {
  195   v.erase(std::remove(v.begin(), v.end(), nullptr), v.end());
  195   v.erase(std::remove(v.begin(), v.end(), nullptr), v.end());
  304   for (BaseCommand *base : script->sectionCommands)
  368   for (Partition &part : partitions) {
  563   for (OutputSection *sec : outputSections)
  572   for (Partition &part : partitions)
  580   for (Partition &part : partitions)
  584     for (OutputSection *sec : outputSections)
  680   for (InputFile *file : objectFiles) {
  705   for (BaseCommand *base : script->sectionCommands) {
  714     if (i == sec->sectionCommands.end())
 1020   for (InputSectionBase *isec : inputSections)
 1023   for (Partition &part : partitions) {
 1024     for (EhInputSection *es : part.ehFrame->sections)
 1027       for (InputSection *ex : part.armExidx->exidxSections)
 1058   for (Partition &part : partitions) {
 1059     for (PhdrEntry *p : part.phdrs) {
 1079     for (OutputSection *os : outputSections) {
 1106     for (OutputSection *os : outputSections) {
 1218   for (StringRef s : config->symbolOrderingFile)
 1246   for (InputFile *file : objectFiles)
 1267   for (InputSection *isec : isd->sections) {
 1318   for (std::pair<InputSection *, int> p : orderedSections)
 1368     for (BaseCommand *b : sec->sectionCommands)
 1378   for (BaseCommand *base : script->sectionCommands)
 1393   for (BaseCommand *base : script->sectionCommands) {
 1403     for (InputSection *sec : getInputSections(os))
 1457   auto e = script->sectionCommands.end();
 1507   for (OutputSection *sec : outputSections) {
 1521     for (BaseCommand *base : sec->sectionCommands) {
 1523         for (InputSection *&isec : isd->sections) {
 1580     for (Partition &part : partitions) {
 1633     for (BaseCommand *b : os->sectionCommands)
 1682     for (BaseCommand *base : script->sectionCommands)
 1734   for (Partition &part : partitions)
 1766     for (SharedFile *file : sharedFiles)
 1802     for (DynamicReloc &reloc : part.relaDyn->relocs)
 1820   for (BaseCommand *base : script->sectionCommands)
 1825   for (OutputSection *sec : outputSections) {
 1846     for (Partition &part : partitions) {
 1866     for (PhdrEntry *p : mainPart->phdrs)
 1893   for (Partition &part : partitions) {
 1946   for (OutputSection *sec : outputSections)
 1957   for (OutputSection *os : outputSections)
 1959       for (InputSection *isec : getInputSections(os))
 2094   for (OutputSection *sec : outputSections) {
 2110   for (OutputSection *sec : outputSections) {
 2151   for (OutputSection *sec : outputSections)
 2194   for (OutputSection *sec : outputSections) {
 2215   if (i == outputSections.end())
 2278   for (Partition &part : partitions) {
 2280     for (const PhdrEntry *p : part.phdrs)
 2326   for (OutputSection *sec : outputSections)
 2343   for (Partition &part : partitions)
 2344     for (PhdrEntry *p : part.phdrs)
 2348   for (OutputSection *sec : outputSections) {
 2371   for (OutputSection *sec : outputSections) {
 2384   for (PhdrEntry *p : part.phdrs) {
 2461   for (OutputSection *os : outputSections)
 2474   for (OutputSection *sec : outputSections)
 2492   for (OutputSection *sec : outputSections)
 2501   for (OutputSection *sec : outputSections)
 2581   for (OutputSection *sec : outputSections)
 2610   for (OutputSection *sec : outputSections)
 2627   for (Partition &part : partitions) {
 2629     for (PhdrEntry *p : part.phdrs)
 2640     for (PhdrEntry *p : part.phdrs)
 2655   for (OutputSection *sec : outputSections)
 2659   for (OutputSection *sec : outputSections)
 2702     for (Partition &part : partitions)
 2735   for (Partition &part : partitions)
tools/lld/MinGW/Driver.cpp
  382   for (const std::string &s : linkArgs)
tools/lld/include/lld/Core/File.h
  137       return ConstItTy(_v.end(), ConstDerefFn(DerefConst));
  144       return ItTy(_v.end(), DerefFn(Deref));
  148       return llvm::make_range(_v.begin(), _v.end());
  152       return llvm::make_range(_v.begin(), _v.end());
tools/lld/include/lld/Core/PassManager.h
   35     for (std::unique_ptr<Pass> &pass : _passes)
tools/lld/include/lld/Core/Simple.h
   79     auto newEnd = std::remove_if(atoms.begin(), atoms.end(),
   83     atoms.erase(newEnd, atoms.end());
tools/lld/lib/Core/Resolver.cpp
  298   for (const OwningAtomPtr<Atom> &atom : _atoms) {
  355   for (const OwningAtomPtr<Atom> &atom : _atoms) {
  366     for (const OwningAtomPtr<Atom> &atom : _atoms)
  383   _atoms.erase(std::remove_if(_atoms.begin(), _atoms.end(),
  387                _atoms.end());
  400         std::remove_if(undefinedAtoms.begin(), undefinedAtoms.end(),
  402         undefinedAtoms.end());
  410   for (const UndefinedAtom *undef : undefinedAtoms) {
  444   _atoms.erase(std::remove_if(_atoms.begin(), _atoms.end(),
  449                _atoms.end());
tools/lld/lib/Driver/DarwinLdDriver.cpp
  162   for (std::unique_ptr<File> &file : files)
 1164   for (std::unique_ptr<Node> &ie : ctx.getNodes())
tools/lld/lib/ReaderWriter/MachO/CompactUnwindPass.cpp
  141     for (uint32_t encoding : commonEncodings) {
  196     for (auto &page : pages) {
  209     for (auto &page : pages) {
tools/lld/lib/ReaderWriter/MachO/File.h
  178       for (auto &offAndAtom : sectAndAtoms.second) {
  193     for (auto &offAndAtom : vec)
  324     for (ReExportedDylib &entry : _reExportedDylibs) {
tools/lld/lib/ReaderWriter/MachO/GOTPass.cpp
  129     std::sort(entries.begin(), entries.end(),
  133     for (const GOTEntryAtom *slot : entries)
tools/lld/lib/ReaderWriter/MachO/LayoutPass.cpp
   44   for (auto i = vec.begin(), e = vec.end(); (i + 1) != e; ++i) {
  438   for (SortKey &k : keys)
  464   sort(llvm::parallel::par, vec.begin(), vec.end(),
tools/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
  480     for (auto syslibRoot : _syslibRoots) {
  508     for (auto syslibRoot : _syslibRoots) {
  710   for (StringRef sysPath : _syslibRoots) {
  749     for (MachODylibFile *dylib : _allDylibs) {
 1021   size_t numLibs = std::count_if(elements.begin(), elements.end(), isLibrary);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
  552     for (const Section *s : _segInfo[&sg].sections) {
  715     for (const Section *section : segInfo.sections) {
 1038     for (Relocation r : sect.relocations) {
 1126       for (const Section *section : segInfo.sections) {
 1454     for (TrieNode* node : orderedNodes) {
 1461   for (TrieNode* node : orderedNodes) {
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
  214   for (SectionInfo *si : _sectionInfos) {
  222   for (SegmentInfo *sgi : _segmentInfos) {
  356     for(SectionInfo *sect : _customSections) {
  441   for (SegmentInfo *si : _segmentInfos) {
  531   for (SectionInfo *si : _sectionInfos) {
  536   std::sort(_segmentInfos.begin(), _segmentInfos.end(), SegmentSorter());
  539   for (SegmentInfo *seg : _segmentInfos) {
  541       std::sort(seg->sections.begin(), seg->sections.end(),
  549   for (SegmentInfo *seg : _segmentInfos) {
  551     for (SectionInfo *sect : seg->sections)
  558   for (SectionInfo *sect : seg->sections) {
  581   for (SectionInfo *sect : seg->sections) {
  593   for (SegmentInfo *seg : _segmentInfos) {
  610     for (SegmentInfo *sgi : _segmentInfos) {
  615       for (SectionInfo *si : sgi->sections) {
  626   for (SegmentInfo *sgi : _segmentInfos) {
  664     for (const SectionInfo *sectInfo : _sectionInfos)
  671   for (SectionInfo *si : _sectionInfos) {
  685     for (AtomInfo &ai : si->atomsAndOffsets) {
  703   for (SegmentInfo *sgi : _segmentInfos) {
  704     for (SectionInfo *si : sgi->sections) {
  713   for (SegmentInfo *sgi : _segmentInfos) {
  717     for (SectionInfo *si : sgi->sections) {
  742   for (SectionInfo *sect : _sectionInfos) {
  743     for (const AtomInfo &info : sect->atomsAndOffsets) {
  767   for (const Atom *atom : _machHeaderAliasAtoms) {
  806   for (SectionInfo *sect : _sectionInfos) {
  807     for (const AtomInfo &info : sect->atomsAndOffsets) {
  840   std::sort(atomsNeedingDebugNotes.begin(), atomsNeedingDebugNotes.end(),
  855   for (const DefinedAtom *atom : atomsNeedingDebugNotes) {
 1039   for (auto &stab : _stabs) {
 1056   for (SectionInfo *sect : _sectionInfos) {
 1057     for (const AtomInfo &info : sect->atomsAndOffsets) {
 1099   std::sort(globals.begin(), globals.end(), AtomSorter());
 1101   for (AtomAndIndex &ai : globals) {
 1124   std::sort(undefs.begin(), undefs.end(), AtomSorter());
 1126   for (AtomAndIndex &ai : undefs) {
 1171   for (SectionInfo *si : _sectionInfos) {
 1175       for (const AtomInfo &info : si->atomsAndOffsets) {
 1197       for (const AtomInfo &info : si->atomsAndOffsets) {
 1206       for (const AtomInfo &info : si->atomsAndOffsets) {
 1256   for (DependentDylib &dep : nFile.dependentDylibs) {
 1272   for (const SegmentInfo *seg : _segmentInfos) {
 1285   for (const SectionInfo *si : _sectionInfos) {
 1315   for (SectionInfo *si : _sectionInfos) {
 1317     for (const AtomInfo &info : si->atomsAndOffsets) {
 1342   for (SectionInfo *si : _sectionInfos) {
 1343     for (const AtomInfo &info : si->atomsAndOffsets) {
 1363         file.functionStarts.insert(file.functionStarts.end(), buffer.bytes(),
 1382   for (SectionInfo *si : _sectionInfos) {
 1383     for (const AtomInfo &info : si->atomsAndOffsets) {
 1430   for (SectionInfo *sect : _sectionInfos) {
 1432     for (const AtomInfo &info : sect->atomsAndOffsets) {
 1510     for (SectionInfo *sectInfo : _sectionInfos) {
 1511       for (const AtomInfo &atomInfo : sectInfo->atomsAndOffsets) {
 1537   for (SectionInfo *sect : _sectionInfos) {
 1538     for (const AtomInfo &info : sect->atomsAndOffsets) {
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp
  339       std::copy(_normalizedContent.begin(), _normalizedContent.end(), bytes);
tools/lld/lib/ReaderWriter/MachO/ShimPass.cpp
   76     std::sort(shims.begin(), shims.end(),
   82     for (const DefinedAtom *shim : shims)
tools/lld/lib/ReaderWriter/MachO/StubsPass.cpp
  285     std::sort(targetsNeedingStubs.begin(), targetsNeedingStubs.end(),
  292     for (const Atom *target : targetsNeedingStubs) {
tools/lld/lib/ReaderWriter/MachO/TLVPass.cpp
  101     std::sort(entries.begin(), entries.end(),
  106     for (const TLVPEntryAtom *slot : entries)
tools/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
  214   typename Ty::iterator end() { return _atoms.end(); }
  608       for (const ArchMember &member : _members)
 1266   for (const lld::Reference *ref : _references) {
tools/lld/tools/lld/lld.cpp
   78   for (auto it = v.begin(); it + 1 != v.end(); ++it) {
tools/lld/wasm/Driver.cpp
  184     for (StringRef sym : args::getLines(*buf))
  212   for (std::unique_ptr<MemoryBuffer> &mb : file->takeThinBuffers())
  233       for (MemoryBufferRef &m : getArchiveMembers(mbref))
  260   for (StringRef dir : config->searchPaths) {
  713   for (InputFile *f : files)
tools/lld/wasm/LTO.cpp
  161   for (std::unique_ptr<MemoryBuffer> &file : files)
tools/lld/wasm/MarkLive.cpp
   68     for (const ObjFile *obj : symtab->objectFiles) {
   91     for (const ObjFile *obj : symtab->objectFiles) {
  147     for (const ObjFile *obj : symtab->objectFiles) {
  161     for (InputChunk *c : symtab->syntheticFunctions)
  164     for (InputGlobal *g : symtab->syntheticGlobals)
tools/lld/wasm/OutputSections.cpp
  168     for (InputSegment *inputSeg : segment->inputSegments)
tools/lld/wasm/SymbolTable.cpp
   73   for (BitcodeFile *f : bitcodeFiles)
   76   for (StringRef filename : lto->compile()) {
  574   for (Symbol* v : variants) {
  691     for (auto *s: variants) {
  700     for (auto *symbol : variants) {
  717     for (auto *symbol : variants) {
tools/lld/wasm/SyntheticSections.cpp
   66   for (auto *so : symtab->sharedFiles)
   90   for (const WasmSignature *sig : types)
  156   for (const Symbol *sym : importedSymbols) {
  184   for (const Symbol *sym : gotSymbols) {
  201   for (const InputFunction *func : inputFunctions)
  245   for (InputGlobal *g : inputGlobals)
  247   for (Symbol *sym : staticGotSymbols)
  268   for (InputGlobal *g : inputGlobals)
  270   for (const Symbol *sym : staticGotSymbols) {
  284   for (const DefinedData *sym : dataAddressGlobals) {
  304   for (InputEvent *e : inputEvents) {
  324   for (const WasmExport &export_ : exports)
  361   for (const FunctionSymbol *sym : indirectFunctions) {
  391     for (const Symbol *sym : symtabEntries) {
  455   for (const InputFunction *f : out.functionSec->inputFunctions) {
  497   for (const InputFunction *f : out.functionSec->inputFunctions)
  512   for (const Symbol *s : out.importSec->importedSymbols) {
  518   for (const InputFunction *f : out.functionSec->inputFunctions) {
tools/lld/wasm/Writer.cpp
  109   for (ObjFile *file : symtab->objectFiles) {
  110     for (InputSection *section : file->customSections) {
  172   for (ObjFile *file : symtab->objectFiles) {
  240   for (OutputSegment *seg : segments) {
  364   for (OutputSection *s : outputSections) {
  383     allowed.insert(explicitFeatures.begin(), explicitFeatures.end());
  389   for (ObjFile *file : symtab->objectFiles) {
  416               std::any_of(file->segments.begin(), file->segments.end(), isTLS);
  459   for (ObjFile *file : symtab->objectFiles) {
  556   for (ObjFile *file : symtab->objectFiles) {
  572   for (ObjFile *file : symtab->objectFiles) {
  579   for (const Symbol *sym : out.importSec->importedSymbols) {
  586   for (const InputFunction *f : out.functionSec->inputFunctions)
  589   for (const InputEvent *e : out.eventSec->inputEvents)
  594   for (ObjFile *file : symtab->objectFiles) {
  596     for (InputChunk *chunk : file->functions)
  598     for (InputChunk *chunk : file->segments)
  600     for (auto &p : file->customSections)
  610   for (InputFunction *func : symtab->syntheticFunctions)
  613   for (ObjFile *file : symtab->objectFiles) {
  615     for (InputFunction *func : file->functions)
  619   for (InputGlobal *global : symtab->syntheticGlobals)
  622   for (ObjFile *file : symtab->objectFiles) {
  624     for (InputGlobal *global : file->globals)
  628   for (ObjFile *file : symtab->objectFiles) {
  630     for (InputEvent *event : file->events)
  661   for (ObjFile *file : symtab->objectFiles) {
  662     for (InputSegment *segment : file->segments) {
  687   std::stable_sort(segments.begin(), segments.end(),
  789       for (const OutputSegment *s : segments) {
  823       for (const OutputSegment *s : segments) {
  849     for (const OutputSegment *seg : segments)
  877     for (const WasmInitEntry &f : initFunctions) {
  896     for (auto *seg : segments) {
  936   for (ObjFile *file : symtab->objectFiles) {
 1006     for (const OutputSegment *seg : segments)
 1051     for (ObjFile *file : symtab->objectFiles)
tools/lldb/include/lldb/Core/ModuleSpec.h
  341     m_specs.insert(m_specs.end(), rhs.m_specs.begin(), rhs.m_specs.end());
  408     for (auto spec : m_specs) {
tools/lldb/include/lldb/Core/Section.h
   44   const_iterator end() { return m_sections.end(); }
tools/lldb/include/lldb/Core/UniqueCStringMap.h
  164   void Sort() { llvm::sort(m_map.begin(), m_map.end(), Compare()); }
  173       collection temp(m_map.begin(), m_map.end());
tools/lldb/include/lldb/DataFormatters/FormattersContainer.h
   90     for (MapIterator iter = m_map.begin(); iter != m_map.end(); ++iter)
  109     for (const auto &pos : m_map)
  120       for (const auto &pos : m_map) {
  243     MapIterator pos, end = m_format_map.map().end();
  302     for (const auto &pos : m_format_map.map()) {
tools/lldb/include/lldb/Expression/ExpressionVariable.h
  190              ve = m_variables.end();
tools/lldb/include/lldb/Symbol/Symtab.h
  127       collection new_symbols(m_symbols.begin(), m_symbols.end());
tools/lldb/include/lldb/Target/Language.h
  108       for (auto& scavenger : m_scavengers) {
tools/lldb/include/lldb/Utility/RangeMap.h
  355     auto end = m_entries.end();
  383       std::stable_sort(m_entries.begin(), m_entries.end());
  574     auto end = m_entries.end();
tools/lldb/include/lldb/Utility/StreamTee.h
   65     for (pos = m_streams.begin(), end = m_streams.end(); pos != end; ++pos) {
  121     for (pos = m_streams.begin(), end = m_streams.end(); pos != end; ++pos) {
tools/lldb/include/lldb/Utility/StringList.h
   61   iterator end() { return m_strings.end(); }
  123     for (const auto &s : s_iterable)
tools/lldb/source/API/SBBreakpoint.cpp
  709     for (std::string name : names_vec) {
  814     for (lldb::break_id_t &break_id : m_break_ids) {
  838     if (find(m_break_ids.begin(), m_break_ids.end(), bp_id) ==
  839         m_break_ids.end())
  859     for (lldb::break_id_t id : m_break_ids) {
tools/lldb/source/API/SBTarget.cpp
  223   for (auto &Entry : target_sp->GetStatistics()) {
 1204     for (auto name : name_vec)
 1846       for (auto *runtime : process_sp->GetLanguageRuntimes()) {
 1856     for (auto *type_system : target_sp->GetScratchTypeSystems())
 1870     for (auto *type_system : target_sp->GetScratchTypeSystems())
 1900       for (auto *runtime : process_sp->GetLanguageRuntimes()) {
 1904           for (auto type : types)
 1912       for (auto *type_system : target_sp->GetScratchTypeSystems())
tools/lldb/source/API/SBValueList.cpp
   49     for (auto val : m_values) {
tools/lldb/source/Breakpoint/Breakpoint.cpp
  235   std::vector<std::string>::iterator end = names.end();
  790             for (lldb::break_id_t old_id : old_id_vec) {
  795             for (lldb::break_id_t new_id : new_id_vec) {
tools/lldb/source/Breakpoint/BreakpointList.cpp
   47       m_breakpoints.begin(), m_breakpoints.end(),
   50   if (it == m_breakpoints.end())
   63   for (const auto &bp_sp : m_breakpoints)
   69   for (const auto &bp_sp : m_breakpoints)
   75   for (const auto &bp_sp : m_breakpoints)
   85     for (const auto &bp_sp : m_breakpoints)
   95   for (const auto &bp_sp : m_breakpoints) {
  103       std::remove_if(m_breakpoints.begin(), m_breakpoints.end(),
  105       m_breakpoints.end());
  111       m_breakpoints.begin(), m_breakpoints.end(),
  171   for (const auto &bp_sp : m_breakpoints)
  178   for (const auto &bp_sp : m_breakpoints)
  184   for (const auto &bp_sp : m_breakpoints)
tools/lldb/source/Breakpoint/BreakpointLocationCollection.cpp
   38   if (pos != m_break_loc_collection.end()) {
   66       m_break_loc_collection.end(),                     // Search full range
   84   if (pos != m_break_loc_collection.end())
  140                             end = m_break_loc_collection.end();
  169                             end = m_break_loc_collection.end();
tools/lldb/source/Breakpoint/BreakpointLocationList.cpp
   84   collection::iterator pos, end = m_locations.end();
  156   collection::iterator pos, end = m_locations.end();
  163   collection::iterator pos, end = m_locations.end();
  194   collection::iterator pos, end = m_locations.end();
  306   for (BreakpointLocationSP loc_sp : m_locations) {
tools/lldb/source/Breakpoint/BreakpointResolverName.cpp
   68   for (const std::string &name : names) {
  200     for (auto lookup : m_lookups) {
  226     for (ConstString variant_name : lang->GetMethodNameVariants(name)) {
  278       for (const auto &lookup : m_lookups) {
tools/lldb/source/Commands/CommandObjectBreakpoint.cpp
  163           for (std::string &str : m_commands)
  724         for (auto name : m_options.m_breakpoint_names) {
 1930       for (const std::string &name_str : name_list) {
tools/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
  243     for (BreakpointOptions *bp_options : *bp_options_vec) {
  268     for (auto bp_options : bp_options_vec) {
tools/lldb/source/Commands/CommandObjectDisassemble.cpp
  454       for (AddressRange cur_range : ranges) {
  499       for (AddressRange cur_range : ranges) {
tools/lldb/source/Commands/CommandObjectLog.cpp
   41     for (llvm::StringRef channel : Log::ListChannels())
  287     for (llvm::StringRef channel : Log::ListChannels())
tools/lldb/source/Commands/CommandObjectMemory.cpp
 1666     for (auto thread : thread_list) {
tools/lldb/source/Commands/CommandObjectReproducer.cpp
  342       for (GDBRemotePacket &packet : packets) {
tools/lldb/source/Commands/CommandObjectStats.cpp
   81     for (auto &stat : target.GetStatistics()) {
tools/lldb/source/Commands/CommandObjectTarget.cpp
 4685         for (auto cmd : m_options.m_one_liner)
tools/lldb/source/Commands/CommandObjectThread.cpp
  146       for (const lldb::tid_t &tid : tids) {
  175       for (const lldb::tid_t &tid : tids) {
  886                 find(resume_threads.begin(), resume_threads.end(), thread);
  888             if (this_thread_pos != resume_threads.end()) {
 1196         for (uint32_t line_number : line_numbers) {
 1218         for (lldb::addr_t address : m_options.m_until_addrs) {
tools/lldb/source/Commands/CommandObjectType.cpp
 2581         end = m_options.m_expr_paths.end();
 2767             languages.begin(), languages.end(),
 2784     for (Language *language : languages) {
tools/lldb/source/Core/Debugger.cpp
  527       for (const auto &debugger : *g_debugger_list_ptr)
  645     DebuggerList::iterator pos, end = g_debugger_list_ptr->end();
  659     DebuggerList::iterator pos, end = g_debugger_list_ptr->end();
  674     DebuggerList::iterator pos, end = g_debugger_list_ptr->end();
  688     DebuggerList::iterator pos, end = g_debugger_list_ptr->end();
 1094     DebuggerList::iterator pos, end = g_debugger_list_ptr->end();
tools/lldb/source/Core/Disassembler.cpp
 1085   for (begin = m_instructions.begin(), end = m_instructions.end(), pos = begin;
tools/lldb/source/Core/FileSpecList.cpp
   35   collection::iterator end = m_files.end();
tools/lldb/source/Core/IOHandler.cpp
 1024     Windows::iterator pos, end = m_subwindows.end();
 1053     Windows::iterator pos, end = m_subwindows.end();
 1066          pos != m_subwindows.end(); pos = m_subwindows.erase(pos)) {
 1121     for (auto &subwindow_sp : m_subwindows)
 1192     for (auto subwindow_sp : subwindows) {
 1252       for (auto subwindow_sp : m_subwindows) {
 2058     for (auto &item : m_children) {
 2124       for (auto &item : m_children) {
 2166       for (auto &item : m_children) {
 2899     for (auto &row : rows) {
 2932     for (auto &row : rows) {
 2941     for (auto &row : rows) {
 3560           submenus.erase(submenus.begin() + 8, submenus.end());
 3587         submenus.erase(submenus.begin() + 7, submenus.end());
tools/lldb/source/Core/Module.cpp
  263     ModuleCollection::iterator end = modules.end();
tools/lldb/source/Core/ModuleList.cpp
  176     collection::iterator pos, end = m_modules.end();
  205     collection::iterator pos, end = m_modules.end();
  245     collection::iterator pos, end = m_modules.end();
  271   while (pos != m_modules.end()) {
  285   collection::iterator pos, end = module_list.m_modules.end();
  369     collection::const_iterator pos, end = m_modules.end();
  381     collection::const_iterator pos, end = m_modules.end();
  392   collection::const_iterator pos, end = m_modules.end();
  539   collection::const_iterator pos, end = m_modules.end();
  583                                     end = m_modules.end();
  972   for (auto module : m_modules) {
tools/lldb/source/Core/PluginManager.cpp
  244     ABIInstances::iterator pos, end = instances.end();
  269     ABIInstances::iterator pos, end = instances.end();
  310   for (auto pos = instances.begin(), end = instances.end(); pos != end; ++pos) {
  322   for (const auto &instances : GetArchitectureInstances()) {
  374     DisassemblerInstances::iterator pos, end = instances.end();
  401     DisassemblerInstances::iterator pos, end = instances.end();
  459     DynamicLoaderInstances::iterator pos, end = instances.end();
  486     DynamicLoaderInstances::iterator pos, end = instances.end();
  543     JITLoaderInstances::iterator pos, end = instances.end();
  569     JITLoaderInstances::iterator pos, end = instances.end();
  623     EmulateInstructionInstances::iterator pos, end = instances.end();
  650     EmulateInstructionInstances::iterator pos, end = instances.end();
  708     OperatingSystemInstances::iterator pos, end = instances.end();
  735     OperatingSystemInstances::iterator pos, end = instances.end();
  787     LanguageInstances::iterator pos, end = instances.end();
  813     LanguageInstances::iterator pos, end = instances.end();
  872     LanguageRuntimeInstances::iterator pos, end = instances.end();
  917     LanguageRuntimeInstances::iterator pos, end = instances.end();
  970     SystemRuntimeInstances::iterator pos, end = instances.end();
  997     SystemRuntimeInstances::iterator pos, end = instances.end();
 1061     ObjectFileInstances::iterator pos, end = instances.end();
 1107     ObjectFileInstances::iterator pos, end = instances.end();
 1123     ObjectFileInstances::iterator pos, end = instances.end();
 1138   ObjectFileInstances::iterator pos, end = instances.end();
 1197     ObjectContainerInstances::iterator pos, end = instances.end();
 1224     ObjectContainerInstances::iterator pos, end = instances.end();
 1309     PlatformInstances::iterator pos, end = instances.end();
 1335     PlatformInstances::iterator pos, end = instances.end();
 1353   PlatformInstances::iterator pos, end = instances.end();
 1425     ProcessInstances::iterator pos, end = instances.end();
 1451     ProcessInstances::iterator pos, end = instances.end();
 1510   ScriptInterpreterInstances::iterator pos, end = instances.end();
 1536   ScriptInterpreterInstances::iterator pos, end = instances.end();
 1607     StructuredDataPluginInstances::iterator pos, end = instances.end();
 1635     StructuredDataPluginInstances::iterator pos, end = instances.end();
 1706     SymbolFileInstances::iterator pos, end = instances.end();
 1733     SymbolFileInstances::iterator pos, end = instances.end();
 1786     SymbolVendorInstances::iterator pos, end = instances.end();
 1813     SymbolVendorInstances::iterator pos, end = instances.end();
 1866     UnwindAssemblyInstances::iterator pos, end = instances.end();
 1893     UnwindAssemblyInstances::iterator pos, end = instances.end();
 1946     MemoryHistoryInstances::iterator pos, end = instances.end();
 1973     MemoryHistoryInstances::iterator pos, end = instances.end();
 2034     InstrumentationRuntimeInstances::iterator pos, end = instances.end();
 2074     InstrumentationRuntimeInstances::iterator pos, end = instances.end();
 2130     TypeSystemInstances::iterator pos, end = instances.end();
 2157     TypeSystemInstances::iterator pos, end = instances.end();
 2229     REPLInstances::iterator pos, end = instances.end();
 2254     REPLInstances::iterator pos, end = instances.end();
 2280     DynamicLoaderInstances::iterator pos, end = instances.end();
 2292     JITLoaderInstances::iterator pos, end = instances.end();
 2304     PlatformInstances::iterator pos, end = instances.end();
 2316     ProcessInstances::iterator pos, end = instances.end();
 2326     for (auto &sym_file : GetSymbolFileInstances()) {
 2335     for (auto &os : GetOperatingSystemInstances()) {
 2344     for (auto &plugin : GetStructuredDataPluginInstances()) {
tools/lldb/source/Core/Section.cpp
  448   iterator end = m_sections.end();
  469   iterator sect_iter, end = m_sections.end();
  618   const_iterator pos, end = m_sections.end();
tools/lldb/source/Core/ValueObject.cpp
  587     std::vector<uint32_t>::const_iterator end = child_indexes.end();
tools/lldb/source/Core/ValueObjectList.cpp
   66   collection::iterator pos, end = m_value_objects.end();
   79   collection::iterator pos, end = m_value_objects.end();
   96   collection::iterator pos, end = m_value_objects.end();
tools/lldb/source/DataFormatters/FormatManager.cpp
  241   for (lldb::LanguageType language_type : GetCandidateLanguages(valobj)) {
  243       for (ConstString candidate :
  621   for (lldb::LanguageType lang_type : match_data.GetCandidateLanguages()) {
  662     for (lldb::LanguageType lang_type : match_data.GetCandidateLanguages()) {
  696   for (lldb::LanguageType lang_type : match_data.GetCandidateLanguages()) {
  737     for (lldb::LanguageType lang_type : match_data.GetCandidateLanguages()) {
  770   for (lldb::LanguageType lang_type : match_data.GetCandidateLanguages()) {
  811     for (lldb::LanguageType lang_type : match_data.GetCandidateLanguages()) {
  872     for (lldb::LanguageType lang_type : match_data.GetCandidateLanguages()) {
  905   for (lldb::LanguageType lang_type : match_data.GetCandidateLanguages()) {
tools/lldb/source/DataFormatters/FormattersHelpers.cpp
  110   for (auto child : children)
tools/lldb/source/DataFormatters/LanguageCategory.cpp
  138   for (auto &candidate : m_hardcoded_formats) {
  158   for (auto &candidate : m_hardcoded_summaries) {
  178   for (auto &candidate : m_hardcoded_synthetics) {
  198   for (auto &candidate : m_hardcoded_validators) {
tools/lldb/source/DataFormatters/TypeCategory.cpp
   94   const auto iter = std::find(m_languages.begin(), m_languages.end(), lang),
   95              end = m_languages.end();
tools/lldb/source/DataFormatters/TypeCategoryMap.cpp
  105           sorted_categories.begin(), sorted_categories.end(),
  112                                         vend = sorted_categories.end();
  182     for (auto match : match_data.GetMatchesVector()) {
  221     for (auto match : match_data.GetMatchesVector()) {
  262     for (auto match : match_data.GetMatchesVector()) {
  303     for (auto match : match_data.GetMatchesVector()) {
tools/lldb/source/Expression/IRExecutionUnit.cpp
  111   for (JittedFunction &function : m_jitted_functions) {
  279   for (std::string &feature : m_cpu_features)
  402     for (ConstString failed_lookup : m_failed_lookups) {
  422   for (JittedFunction &jitted_function : m_jitted_functions) {
  449     for (AllocationRecord &record : m_records) {
  738     CPP_specs.insert(CPP_specs.end(), alternates.begin(), alternates.end());
  916     for (LanguageRuntime *runtime : process_sp->GetLanguageRuntimes()) {
  993             for (JittedFunction &jitted_function : m_jitted_functions) {
 1058   for (AllocationRecord &record : m_records) {
 1085   for (AllocationRecord &record : m_records) {
 1145   for (AllocationRecord &record : m_records) {
 1154     for (AllocationRecord &record : m_records) {
 1168   for (AllocationRecord &record : m_records) {
 1185   for (AllocationRecord &record : m_records) {
 1226   for (AllocationRecord &record : m_records) {
tools/lldb/source/Expression/Materializer.cpp
  401   EntityVector::iterator iter = m_entities.insert(m_entities.end(), EntityUP());
  754   EntityVector::iterator iter = m_entities.insert(m_entities.end(), EntityUP());
 1034   EntityVector::iterator iter = m_entities.insert(m_entities.end(), EntityUP());
 1151   EntityVector::iterator iter = m_entities.insert(m_entities.end(), EntityUP());
 1328   EntityVector::iterator iter = m_entities.insert(m_entities.end(), EntityUP());
 1368   for (EntityUP &entity_up : m_entities) {
 1382     for (EntityUP &entity_up : m_entities)
 1417       for (EntityUP &entity_up : m_materializer->m_entities)
 1421     for (EntityUP &entity_up : m_materializer->m_entities) {
 1437   for (EntityUP &entity_up : m_materializer->m_entities) {
tools/lldb/source/Host/common/Editline.cpp
  114       result.insert(result.end(), input.substr(start));
  117     result.insert(result.end(), input.substr(start, end - start));
  413   for (EditLineStringType line : m_input_lines) {
  636         m_input_lines.insert(m_input_lines.end(), lines[index]);
  762         m_input_lines.end(),
tools/lldb/source/Host/common/MainLoop.cpp
  232   for (const auto &fd : read_fds) {
  248   for (const auto &signal : signals) {
tools/lldb/source/Host/common/NativeProcessProtocol.cpp
   96   for (const auto &thread : m_threads) {
  161   for (const auto &thread : m_threads) {
  182       for (auto unwatch_thread_sp : watchpoint_established_threads) {
  202   for (const auto &thread : m_threads) {
  248   for (const auto &thread : m_threads) {
  260       for (auto rollback_thread_sp : breakpoint_established_threads) {
  287   for (const auto &thread : m_threads) {
  301   if (std::find(m_delegates.begin(), m_delegates.end(), &native_delegate) !=
  302       m_delegates.end())
  316       remove(m_delegates.begin(), m_delegates.end(), &native_delegate),
  317       m_delegates.end());
  329   for (auto native_delegate : m_delegates)
  354     for (auto native_delegate : m_delegates)
tools/lldb/source/Host/common/TCPSocket.cpp
  154   for (auto address : addresses) {
  192   for (auto address : addresses) {
tools/lldb/source/Interpreter/CommandAlias.cpp
  154   for (const auto &opt_entry : *options) {
  179   for (const auto &opt_entry : *GetOptionArguments()) {
  212                     desugared.second->end());
tools/lldb/source/Interpreter/CommandInterpreter.cpp
 1399   for (const auto &entry : *option_arg_vector) {
 1906     for (const auto &option_entry : *option_arg_vector) {
tools/lldb/source/Interpreter/OptionValueArgs.cpp
   18   for (auto value : m_values) {
tools/lldb/source/Interpreter/OptionValueArray.cpp
  223             llvm::sort(remove_indexes.begin(), remove_indexes.end());
tools/lldb/source/Interpreter/OptionValueFileSpecList.cpp
  144           llvm::sort(remove_indexes.begin(), remove_indexes.end());
tools/lldb/source/Interpreter/OptionValuePathMappings.cpp
  179           llvm::sort(remove_indexes.begin(), remove_indexes.end());
tools/lldb/source/Interpreter/Options.cpp
  866   OptionInfos::iterator pos, end = m_option_infos.end();
  879   OptionInfos::iterator pos, end = m_option_infos.end();
tools/lldb/source/Interpreter/ScriptInterpreter.cpp
   76   for (BreakpointOptions *bp_options : bp_options_vec) {
   89   for (BreakpointOptions *bp_options : bp_options_vec) {
tools/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
 1343       std::sort(kexts_failed_to_load.begin(), kexts_failed_to_load.end());
 1344       for (const auto &ku : kexts_failed_to_load) {
 1348       for (const auto &ku : kexts_failed_to_load) {
tools/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.cpp
  450     AddressVector::iterator end = addrs.end();
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp
  167           ImageInfo::collection::iterator pos, end = m_dyld_image_infos.end();
  952       for (Address address : addresses) {
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp
  602     ImageInfo::collection::iterator pos, end = m_dyld_image_infos.end();
tools/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp
  310     for (auto const &existing : m_loaded_modules.m_list) {
  337   for (auto const &existing : m_loaded_modules.m_list) {
tools/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
  492     AddressVector::iterator end = addrs.end();
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.cpp
  451   for (clang::NamedDecl *decl : m_decls) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
  327                                                     e = namespace_map->end();
  753                                                   e = namespace_map->end();
 1671   llvm::sort(sorted_items.begin(), sorted_items.end(),
 1676   for (const auto &item : sorted_items) {
 1891                                                   e = parent_map->end();
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangDeclVendor.cpp
   24   for (auto *named_decl : named_decls) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
  752                                                   e = namespace_map->end();
 1177         for (CompilerDecl decl : found_decls) {
 1328         for (const FuncDeclInfo &fdi : fdi_cache) {
 1390         for (clang::NamedDecl *decl : decls_from_modules) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
  139     for (ClangModulesDeclVendor::ModuleID module : exported_modules)
  249   for (const std::string &dir : include_directories) {
 1370   for (lldb::addr_t static_initializer : static_initializers) {
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
  138   for (IDAndDiagnostic &diag : m_diagnostics) {
  648   for (const std::string &arg : compiler_invocation_arguments)
  654                             compiler_invocation_arguments.end()));
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
  538                             m_include_directories.end()));
tools/lldb/source/Plugins/ExpressionParser/Clang/IRDynamicChecks.cpp
  161                       last_ii = m_to_instrument.end();
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
 1412   for (CallInst *ci : calls_to_remove)
tools/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp
  412     for (auto &candidate : map) {
  488     for (auto &candidate : map) {
tools/lldb/source/Plugins/Language/ObjC/ObjCLanguage.cpp
  941             for (const CompilerType &type :
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTrampolineHandler.cpp
  408   std::vector<VTableDescriptor>::iterator pos, end = m_descriptors.end();
  607   region_collection::iterator pos, end = m_regions.end();
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.cpp
  136     for (auto element : elements) {
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
  838   for (const auto &module_desc : *m_rsmodules) {
  842     for (const auto &reduction : module_desc->m_reductions) {
  899   for (auto &name : names) {
  909     for (const RSScriptGroupDescriptor::Kernel &k : sg->m_kernels) {
 1175     for (auto sg : m_scriptGroups) {
 1321   for (const uint64_t alloc_addr : allocs) {
 1457   for (auto iter = m_allocations.begin(); iter != m_allocations.end(); ++iter) {
 1632   for (const auto &rs_script : m_scripts) {
 2236   for (auto module_sp : m_rsmodules)
 2322     for (Element &child : elem.children) {
 2745     for (const auto &rs_module : m_rsmodules) {
 3132     for (const auto &kernel : module->m_kernels) {
 3152   for (const auto &a : m_allocations) {
 3326   for (auto &alloc : m_allocations) {
 3352   for (auto &alloc : m_allocations) {
 3447   for (const auto &kernel : rsmodule_sp->m_kernels) {
 3469     for (const auto &module : m_rsmodules)
 3820   for (const auto &s : m_scripts) {
 3836   for (const auto &a : m_allocations) {
 3850   while (it != m_allocations.end()) {
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h
  398     for (const auto &module : m_rsmodules)
  399       for (const auto &kernel : module->m_kernels)
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptScriptGroup.cpp
   64     for (const auto &name : sites) {
  124         for (const auto &k : g->m_kernels) {
tools/lldb/source/Plugins/ObjectContainer/Universal-Mach-O/ObjectContainerUniversalMachO.cpp
  225       for (const llvm::MachO::fat_arch &fat_arch : fat_archs) {
tools/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
 1397            I != section_headers.end(); ++I) {
 1797        I != m_section_headers.end(); ++I) {
 2346   DynamicSymbolCollIter E = m_dynamic_symbols.end();
 2850        I != m_section_headers.end(); ++I) {
 2913   for (const Symbol &s : new_symbols)
 3181        I != m_section_headers.end(); ++I, ++idx) {
tools/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
 1966         for (auto name_slice : nameSlices)
 2513         for (auto &e : trie_entries)
 4475     for (auto &nlist : nlists) {
 4482     for (auto &nlist : nlists) {
 4668     for (const auto &e : trie_entries) {
 5078       for (auto &rpath : rpath_paths) {
 5088       for (const auto &rpath_relative_path : rpath_relative_paths) {
 5089         for (const auto &rpath : rpath_paths) {
 5111       for (const auto &at_exec_relative_path : at_exec_relative_paths) {
 6131         for (auto &LC_THREAD_data : LC_THREAD_datas) {
 6174         for (const auto &LC_THREAD_data : LC_THREAD_datas) {
 6199         for (auto &segment : segment_load_commands) {
 6205         for (const auto &LC_THREAD_data : LC_THREAD_datas) {
 6213         for (const auto &segment : segment_load_commands) {
 6257             for (const auto &segment : segment_load_commands) {
tools/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
 1197   SectionHeaderCollIter pos, end = m_sect_headers.end();
tools/lldb/source/Plugins/ObjectFile/PECOFF/PECallFrameInfo.cpp
  304   for (const EHInstruction &i : m_program)
tools/lldb/source/Plugins/Platform/Android/AdbClient.cpp
  287       message.insert(message.end(), &buffer[0], &buffer[n]);
  386                     std::string(output_buf.begin(), output_buf.end()).c_str());
  400     output->assign(output_buffer.begin(), output_buffer.end());
tools/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp
  366   for (auto name: dl_open_names) {
tools/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
 1511   options.insert(options.end(), apple_arguments.begin(), apple_arguments.end());
 1663   for (const auto &executable_dir : g_executable_dirs) {
tools/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.cpp
  184       for (const auto &sdk_directory_info : builtin_sdk_directory_infos) {
  202       for (std::string &dirname : device_support_dirnames)
  248         for (const auto &sdk_directory_info : env_var_sdk_directory_infos) {
  332         m_sdk_directory_infos.begin(), m_sdk_directory_infos.end(),
  336     if (max != m_sdk_directory_infos.end())
tools/lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp
   50         m_archs.begin(), m_archs.end(),
   52     if (iter != m_archs.end())
tools/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
  846   for (const auto &gdbserver : remote_servers) {
tools/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
 1039     for (const auto &thread : m_threads) {
 1056   for (const auto &thread : m_threads) {
 1115   for (const auto &thread : m_threads) {
 1150   for (const auto &thread : m_threads) {
 1245   for (auto it = m_mem_region_cache.begin(); it != m_mem_region_cache.end();
 1552   for (const auto &thread : m_threads) {
 1569   for (auto it = m_threads.begin(); it != m_threads.end(); ++it) {
 1623   for (const auto &it : m_mem_region_cache) {
 1641   for (const auto &it : m_mem_region_cache) {
 1705   for (const auto &thread : m_threads) {
 1718   for (const auto &thread_sp : m_threads) {
 1915   for (const auto &thread_sp : m_threads) {
tools/lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.cpp
  457       llvm::sort(pos->second.begin(), pos->second.end());
  459           std::unique(pos->second.begin(), pos->second.end());
  460       if (unique_end != pos->second.end())
  461         pos->second.erase(unique_end, pos->second.end());
  485       for (const uint32_t invalidate_reg_num : pos->second) {
  489           for (const uint32_t concrete_invalidate_reg_num :
  496       pos->second.insert(pos->second.end(), extra_invalid_regs.begin(),
  497                          extra_invalid_regs.end());
  507       llvm::sort(pos->second.begin(), pos->second.end());
  509           std::unique(pos->second.begin(), pos->second.end());
  510       if (unique_end != pos->second.end())
  511         pos->second.erase(unique_end, pos->second.end());
  529   for (const auto &reg : m_regs) {
  541       for (auto &reg : m_regs) {
  562       for (auto &reg : m_regs) {
  585       for (auto &reg : m_regs) {
  601       for (auto &reg : m_regs) {
  651   name_collection::iterator pos, end = m_set_names.end();
tools/lldb/source/Plugins/Process/Utility/RegisterContextFreeBSD_x86_64.cpp
   86     g_register_infos.insert(g_register_infos.end(), &base_info[0],
tools/lldb/source/Plugins/Process/Utility/RegisterContextLinux_x86_64.cpp
  100     g_register_infos.insert(g_register_infos.end(), &base_info[0],
tools/lldb/source/Plugins/Process/elf-core/ProcessElfCore.cpp
  214   for (const auto &thread_data : m_thread_data) {
  224       for (auto &thread_data : m_thread_data)
  702     for (auto &data : m_thread_data)
  709     for (auto &data : m_thread_data) {
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
 1573   for (const auto &map_region : m_qXfer_memory_map) {
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp
  193   std::reverse(m_packet_history.begin(), m_packet_history.end());
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
 2778     for (auto const &library : *library_list) {
tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
 1319                      t_end = m_continue_c_tids.end();
 1330                      s_end = m_continue_C_tids.end();
 1342                      t_end = m_continue_s_tids.end();
 1353                      s_end = m_continue_S_tids.end();
 1787       auto iter = std::find(m_thread_ids.begin(), m_thread_ids.end(), tid);
 1788       if (iter != m_thread_ids.end()) {
 4276     for (const ModuleSpec &spec : *module_specs)
 4597       for (auto &feature_node : feature_nodes) {
 4602       for (const auto &include : target_info.includes) {
 4826   for (LoadedModuleInfoList::LoadedModuleInfo &modInfo : module_list->m_list) {
tools/lldb/source/Plugins/Process/minidump/ProcessMinidump.cpp
  362   if (pos == m_memory_regions->end())
  411   for (auto module : filtered_modules) {
tools/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
  547     for (auto bp_options : *bp_options_vec) {
tools/lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
  600       for (auto &rule_sp : m_filter_rules) {
tools/lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.cpp
  608   for (++it; it != program.end(); ++it) {
tools/lldb/source/Plugins/SymbolFile/DWARF/AppleDWARFIndex.cpp
  162   for (const DIERef &die_ref : offsets) {
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
 1986         for (const DWARFDIE &die : member_function_dies)
 2009                                                pe = delayed_properties.end();
 2044           for (const auto &base_class : bases) {
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp
  168   if (pos == m_type_hash_to_unit_index.end() || pos->first != hash)
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
  386     for (const DWARFDIE &die : dies) {
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h
  209     return die_iterator_range(m_die_array.begin(), m_die_array.end());
tools/lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.cpp
  182   offsets.insert(offsets.end(), incomplete_types.begin(),
  183                  incomplete_types.end());
  237   for (DWARFDIE die : v)
tools/lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp
   75     for (auto &set : sets)
  407     for (const DIERef &die_ref: offsets) {
  418     for (const DIERef &die_ref: offsets) {
  431     for (const DIERef &die_ref: offsets) {
  441     for (const DIERef &die_ref: offsets) {
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
  839   for (const DWARFDIE &die : function_dies) {
  959       std::reverse(module.path.begin(), module.path.end());
 2283   for (const DWARFDIE &die : dies) {
 2325   for (DIERef ref : offsets) {
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
   71     for (auto comp_unit_info : cu_infos) {
  316       for (uint32_t sym_idx : m_func_indexes) {
  324       for (uint32_t sym_idx : m_glob_indexes) {
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp
  370   for (TypeIndex fwd : fwd_keys) {
  374   for (TypeIndex full : full_keys) {
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbFPOProgramToDWARFExpression.cpp
   61   for (auto it = parsed.begin(), end = parsed.end(); it != end; ++it) {
tools/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
 1110       lldbassert(fn_iter != cci->m_file_list.end());
 1150   for (llvm::StringRef f : cci->m_file_list) {
 1190   for (const SymbolAndOffset &result : results) {
 1222   for (const SymbolAndOffset &match : matches) {
 1273   for (TypeIndex ti : matches) {
tools/lldb/source/Plugins/SymbolFile/NativePDB/UdtRecordCompleter.cpp
  197   for (const OneMethodRecord &method : method_list.Methods)
  216   std::stable_sort(m_bases.begin(), m_bases.end(),
  223   for (auto &ib : m_bases)
tools/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
 1324       for (uint32_t id : ids) {
 1362       for (auto id : ids) {
 1608           std::find(type_collection.begin(), type_collection.end(), type);
 1609       if (result == type_collection.end())
 1641   for (auto type : type_collection) {
 2021             std::upper_bound(sec_cs.begin(), sec_cs.end(), offset, pred_upper);
 2047         std::upper_bound(sec_cs.begin(), sec_cs.end(), DataOffset, pred_upper);
tools/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp
  827     for (ItemRefAndCodeAddress pending_item :
tools/lldb/source/Symbol/ArmUnwindInfo.cpp
   68   llvm::sort(m_exidx_entries.begin(), m_exidx_entries.end());
  329   for (const auto &offset : register_offsets) {
  355   auto it = std::upper_bound(m_exidx_entries.begin(), m_exidx_entries.end(),
tools/lldb/source/Symbol/Block.cpp
  116   collection::const_iterator pos, end = m_children.end();
  419     collection::const_iterator pos, end = m_children.end();
  480     collection::const_iterator pos, end = m_children.end();
  489     collection::const_iterator pos, end = m_children.end();
tools/lldb/source/Symbol/ClangASTContext.cpp
 8341   for (auto &b : bases)
 9443   std::stable_sort(values.begin(), values.end(), [](const auto &a, const auto &b) {
 9447   for (const auto &val : values) {
tools/lldb/source/Symbol/CompactUnwindInfo.cpp
  518   it = std::lower_bound(m_indexes.begin(), m_indexes.end(), key);
  519   if (it == m_indexes.end()) {
  533   if (next_it != m_indexes.end()) {
tools/lldb/source/Symbol/CompileUnit.cpp
   74   llvm::sort(sorted_functions.begin(), sorted_functions.end(),
   79   for (auto &f : sorted_functions)
tools/lldb/source/Symbol/CxxModuleHandler.cpp
   84   for (Scope *s : scopes)
tools/lldb/source/Symbol/DeclVendor.cpp
   25     for (auto decl : decls)
tools/lldb/source/Symbol/Function.cpp
  269   llvm::sort(m_call_edges.begin(), m_call_edges.end(),
tools/lldb/source/Symbol/LineTable.cpp
   38   entry_collection::iterator end_pos = m_entries.end();
  106     m_entries.insert(m_entries.end(), seq->m_entries.begin(),
  107                      seq->m_entries.end());
  113   entry_collection::iterator end_pos = m_entries.end();
  132   m_entries.insert(pos, seq->m_entries.begin(), seq->m_entries.end());
  183       entry_collection::const_iterator end_pos = m_entries.end();
tools/lldb/source/Symbol/SymbolContext.cpp
 1226   collection::iterator pos, end = m_symbol_contexts.end();
tools/lldb/source/Symbol/SymbolFile.cpp
  222     for (const CompUnitSP &cu_sp : *m_compile_units) {
tools/lldb/source/Symbol/Symtab.cpp
   97       const_iterator end = m_symbols.end();
  113       for (const_iterator pos = m_symbols.begin(), end = m_symbols.end();
  159     std::vector<uint32_t>::const_iterator end = indexes.end();
  329     for (const auto &record : backlog) {
  587   std::stable_sort(indexes.begin(), indexes.end(), comparator);
  591     auto last = std::unique(indexes.begin(), indexes.end());
  592     indexes.erase(last, indexes.end());
  645     while (pos != indexes.end()) {
  665     while (pos != indexes.end()) {
  809       std::vector<uint32_t>::const_iterator pos, end = matching_indexes.end();
  864     const_iterator end = m_symbols.end();
 1102     llvm::sort(symbol_indexes.begin(), symbol_indexes.end());
 1104         std::unique(symbol_indexes.begin(), symbol_indexes.end()),
 1105         symbol_indexes.end());
tools/lldb/source/Symbol/TypeList.cpp
   70   for (pos = m_types.begin(), end = m_types.end(); pos != end; ++pos) {
   88   for (auto pos = m_types.begin(), end = m_types.end(); pos != end; ++pos) {
   95   for (iterator pos = m_types.begin(), end = m_types.end(); pos != end; ++pos) {
  123   iterator pos, end = m_types.end();
  197   iterator pos, end = m_types.end();
tools/lldb/source/Symbol/UnwindPlan.cpp
  370   while (it != m_row_list.end()) {
  376   if (it == m_row_list.end() || (*it)->GetOffset() != row_sp->GetOffset())
tools/lldb/source/Symbol/VariableList.cpp
   40               variable_list->m_variables.end(),   // source end
   64   iterator pos, end = m_variables.end();
   75   iterator pos, end = m_variables.end();
   91   iterator pos, end = m_variables.end();
  105   iterator pos, end = m_variables.end();
  115   iterator pos, end = m_variables.end();
  132   iterator pos, end = m_variables.end();
  149   const iterator end = m_variables.end();
tools/lldb/source/Target/JITLoaderList.cpp
   28                                       m_jit_loaders_vec.end(), jit_loader_sp),
   29                           m_jit_loaders_vec.end());
   41   for (auto const &jit_loader : m_jit_loaders_vec)
   47   for (auto const &jit_loader : m_jit_loaders_vec)
   53   for (auto const &jit_loader : m_jit_loaders_vec)
tools/lldb/source/Target/PathMappingList.cpp
   88     insert_iter = m_pairs.end();
  260   if (pos != m_pairs.end()) {
  287   iterator end = m_pairs.end();
tools/lldb/source/Target/Platform.cpp
  275     for (const auto &platform_sp : GetPlatformList()) {
  318       for (const auto &platform_sp : GetPlatformList()) {
  325       for (const auto &platform_sp : GetPlatformList()) {
  519   options.insert(options.end(), default_compilation_options.begin(),
  520                  default_compilation_options.end());
tools/lldb/source/Target/Process.cpp
  654   std::vector<Notifications>::iterator pos, end = m_notifications.end();
  668       notification_end = m_notifications.end();
 1552   for (LanguageRuntime *runtime : GetLanguageRuntimes()) {
 2292   for (const auto &Entry : entries) {
 5527     auto found_iter = std::find(m_pre_resume_actions.begin(), m_pre_resume_actions.end(), element);
 5528     if (found_iter != m_pre_resume_actions.end())
 5930     for (auto &type_name : names_to_remove)
tools/lldb/source/Target/StackFrameList.cpp
  625   const_iterator pos, begin = m_frames.begin(), end = m_frames.end();
  739     collection::const_iterator end = m_frames.end();
  778   const_iterator end = m_frames.end();
  927   const_iterator end = m_frames.end();
tools/lldb/source/Target/Target.cpp
  744   llvm::sort(names.begin(), names.end());
 1623       for (LanguageRuntime *runtime : m_process_sp->GetLanguageRuntimes()) {
tools/lldb/source/Target/TargetList.cpp
  216           for (const auto &the_platform_sp : platforms) {
  244             for (const auto &the_platform_sp : platforms) {
  445   collection::iterator pos, end = m_target_list.end();
  552     collection::iterator pos, end = m_target_list.end();
  604                                   end = m_target_list.end();
tools/lldb/source/Target/Thread.cpp
  262   for (auto plan : m_plan_stack)
  265   for (auto plan : m_discarded_plan_stack)
  268   for (auto plan : m_completed_plan_stack)
 1210   for (ThreadPlanSP plan_sp : m_plan_stack) {
 2204   for (LanguageRuntime *runtime : GetProcess()->GetLanguageRuntimes()) {
 2219   for (LanguageRuntime *runtime : GetProcess()->GetLanguageRuntimes()) {
tools/lldb/source/Target/ThreadCollection.cpp
   37         std::upper_bound(m_threads.begin(), m_threads.end(), thread_sp,
tools/lldb/source/Target/ThreadList.cpp
  244     for (lldb::ThreadSP thread_sp : m_threads) {
  266   collection::iterator pos, end = threads_copy.end();
  361   collection::iterator pos, end = m_threads.end();
  401   collection::iterator pos, end = m_threads.end();
  414   collection::iterator pos, end = m_threads.end();
  469   collection::iterator pos, end = m_threads.end();
  479   collection::iterator pos, end = m_threads.end();
  492   collection::iterator pos, end = m_threads.end();
  621   collection::iterator pos, end = m_threads.end();
  633   collection::iterator pos, end = m_threads.end();
  716     collection::iterator rhs_pos, rhs_end = rhs.m_threads.end();
  737   collection::iterator pos, end = m_threads.end();
tools/lldb/source/Target/ThreadPlanRunToAddress.cpp
   52   std::vector<lldb::addr_t>::iterator pos, end = m_addresses.end();
tools/lldb/source/Target/ThreadPlanStepOut.cpp
  220   for (StackFrameSP frame_sp : m_stepped_past_frames) {
tools/lldb/source/Target/ThreadPlanStepThrough.cpp
   90     for (LanguageRuntime *runtime :
tools/lldb/source/Utility/DataBufferHeap.cpp
   63   m_data.insert(m_data.end(), static_cast<const uint8_t *>(src),
tools/lldb/source/Utility/Listener.cpp
  191       end_iter = m_broadcaster_managers.end();
  441         end_iter = m_broadcaster_managers.end();
tools/lldb/source/Utility/Reproducer.cpp
  230   auto it = std::lower_bound(m_files.begin(), m_files.end(), file.str());
  231   return (it != m_files.end()) && (*it == file);
  261   for (auto &recorder : m_data_recorders) {
  323   for (auto &file : files) {
tools/lldb/source/Utility/StringList.cpp
   65   m_strings.insert(m_strings.end(), strings.begin(), strings.end());
  233   for (const auto &s : m_strings) {
tools/lldb/source/Utility/Timer.cpp
  144   llvm::sort(sorted.begin(), sorted.end(), CategoryMapIteratorSortCriterion);
  146   for (const auto &stats : sorted)
tools/lldb/tools/driver/Driver.cpp
  164   for (const auto &command_entry : *command_set) {
tools/lldb/tools/intel-features/intel-mpx/cli-wrapper-mpxtable.cpp
  232   bt_entry_v.insert(bt_entry_v.begin(), lbound_v.begin(), lbound_v.end());
  235                     ubound_v.end());
tools/lldb/tools/lldb-test/lldb-test.cpp
  271   for (auto entry: result)
tools/lldb/tools/lldb-vscode/VSCode.cpp
   65   for (auto &bp : exception_breakpoints) {
   74   for (auto &bp : exception_breakpoints) {
tools/lldb/tools/lldb-vscode/lldb-vscode.cpp
 1094   for (const auto &exc_bp : g_vsc.exception_breakpoints) {
 1618     for (auto line: remove_lines)
 1705   for (const auto &bp : g_vsc.exception_breakpoints)
 1840   for (const auto &name: remove_names)
tools/lldb/unittests/Symbol/PostfixExpressionTest.cpp
  112   for (const auto &p : parsed)
tools/lldb/unittests/Utility/ReproducerInstrumentationTest.cpp
  122   for (auto *foo : g_foos) {
  126   for (auto *bar : g_bars) {
  138   g_foos.erase(std::remove(g_foos.begin(), g_foos.end(), &foo));
  145   g_foos.erase(std::remove(g_foos.begin(), g_foos.end(), &foo));
tools/lldb/unittests/tools/lldb-server/inferior/thread_inferior.cpp
   35   for (std::thread& t : threads) {
tools/lldb/utils/TableGen/LLDBOptionDefEmitter.cpp
   43       for (int Group : Groups)
  130     OS << llvm::join(CompletionArgs.begin(), CompletionArgs.end(), " | ");
  156   for (Record *R : Records)
  170   for (CommandOption &CO : Options)
tools/lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp
  133   for (Record *R : PropertyRecords)
  154   for (Record *R : PropertyRecords)
tools/lldb/utils/TableGen/LLDBTableGenUtils.cpp
   18   for (Record *R : Records)
tools/lli/lli.cpp
  876   for (auto &Arg : Args)
  886   for (auto &AltEntryThread : AltEntryThreads)
tools/llvm-ar/llvm-ar.cpp
  600         if (I == Members.end())
  626   for (StringRef Name : Members)
  730   if (MI == Members.end())
  794       std::vector<StringRef>::iterator MemberI = Members.end();
  818       if (MemberI != Members.end() && !CountParam)
  835   for (auto &M : Moved) {
  842     for (auto &Member : Members)
  848   for (auto &Member : Members)
  851   std::move(NewMembers.begin(), NewMembers.end(),
tools/llvm-cat/llvm-cat.cpp
   64       for (auto &BitcodeMod : Mods) {
tools/llvm-cfi-verify/lib/FileAnalysis.cpp
  568     for (const auto &Addr : ElfObject->getPltAddresses()) {
tools/llvm-config/llvm-config.cpp
  174   std::reverse(RequiredLibs.begin(), RequiredLibs.end());
  617         for (auto &Lib : MissingLibs)
  629         for (auto &Lib : MissingLibs)
  642       for (auto &Component : DyLibComponents) {
  647       for (auto &Lib : RequiredLibs) {
tools/llvm-cov/CodeCoverage.cpp
  239   for (const auto &Files : LoadedSourceFiles)
  309   for (const auto &Group : Coverage.getInstantiationGroups(SourceFile)) {
  350   for (StringRef ObjectFilename : ObjectFilenames)
  358           join(ObjectFilenames.begin(), ObjectFilenames.end(), ", "));
  403   for (StringRef Filename : Coverage.getUniqueSourceFiles()) {
  417   for (std::string &Filename : SourceFiles) {
  429   auto UncoveredFilesIt = SourceFiles.end();
  433       SourceFiles.begin(), SourceFiles.end(), [&](const std::string &SF) {
  434         return !std::binary_search(CoveredFiles.begin(), CoveredFiles.end(),
  438   SourceFiles.erase(UncoveredFilesIt, SourceFiles.end());
  477   for (StringRef Arg : ViewOpts.DemanglerOpts)
  771       for (const std::string &SF : SourceFiles)
  886     for (StringRef Filename : Coverage->getUniqueSourceFiles()) {
  903     for (const auto &SourceFile : SourceFiles)
  951     for (const std::string &SourceFile : SourceFiles)
  957     for (const std::string &SourceFile : SourceFiles)
tools/llvm-cov/CoverageExporterJson.cpp
  195   for (StringRef SF : Coverage.getUniqueSourceFiles()) {
tools/llvm-cov/CoverageExporterLcov.cpp
  111   for (StringRef SF : Coverage.getUniqueSourceFiles()) {
tools/llvm-cov/CoverageReport.cpp
  327   for (const auto &Group : Coverage->getInstantiationGroups(Filename)) {
  375   for (const auto &FileReport : FileReports)
  384   for (StringRef SF : Coverage.getUniqueSourceFiles()) {
  405   for (const FileCoverageSummary &FCS : FileReports)
  428   for (const FileCoverageSummary &FCS : FileReports) {
  439     for (const FileCoverageSummary &FCS : FileReports)
tools/llvm-cov/SourceCoverageView.cpp
  195   auto EndESV = ExpansionSubViews.end();
  197   auto EndISV = InstantiationSubViews.end();
tools/llvm-cvtres/llvm-cvtres.cpp
  164   for (const auto &File : InputFiles) {
  188     for (const auto& DupeDiag : Duplicates)
tools/llvm-cxxdump/llvm-cxxdump.cpp
  191   for (auto &P : SymAddr) {
tools/llvm-dwarfdump/Statistics.cpp
  387     for (auto Range : Ranges)
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
  629     Objects.insert(Objects.end(), Objs.begin(), Objs.end());
  629     Objects.insert(Objects.end(), Objs.begin(), Objs.end());
  639     for (auto Object : Objects)
  642     for (auto Object : Objects)
tools/llvm-dwp/llvm-dwp.cpp
  326   for (const auto &I : Buckets)
  330   for (const auto &I : Buckets)
  736     DWOFilenames.insert(DWOFilenames.end(),
tools/llvm-elfabi/ELFObjHandler.cpp
  137   for (uint64_t Offset : Dyn.NeededLibNames) {
  338   for (uint64_t NeededStrOffset : DynEnt.NeededLibNames) {
tools/llvm-elfabi/ErrorCollector.cpp
   34   for (Error &E : Errors) {
   59   for (Error &E : Errors) {
tools/llvm-exegesis/lib/Analysis.cpp
  547   for (const auto &RSCAndPoints : makePointsPerSchedClass()) {
  559           std::find_if(SchedClassClusters.begin(), SchedClassClusters.end(),
  563       if (SchedClassClusterIt == SchedClassClusters.end()) {
  565         SchedClassClusterIt = std::prev(SchedClassClusters.end());
tools/llvm-exegesis/lib/BenchmarkRunner.cpp
  146   for (BenchmarkMeasure &BM : InstrBenchmark.Measurements) {
tools/llvm-exegesis/lib/Clustering.cpp
  149     ToProcess.insert(Neighbors.begin(), Neighbors.end());
  170         ToProcess.insert(Neighbors.begin(), Neighbors.end());
  289           OldCluster.PointIndices.begin(), OldCluster.PointIndices.end(),
  293       assert(std::distance(it, OldCluster.PointIndices.end()) > 0 &&
  296       std::for_each(it, OldCluster.PointIndices.end(),
  301       UnstableCluster.PointIndices.insert(UnstableCluster.PointIndices.end(),
  302                                           it, OldCluster.PointIndices.end());
  304       OldCluster.PointIndices.erase(it, OldCluster.PointIndices.end());
tools/llvm-exegesis/lib/Latency.cpp
   47   std::iota(Opcodes.begin(), Opcodes.end(), 0U);
   48   std::shuffle(Opcodes.begin(), Opcodes.end(), randomGenerator());
   51   for (const unsigned OtherOpcode : Opcodes) {
  128     for (const auto OtherInstr : computeAliasingInstructions(
tools/llvm-exegesis/lib/SnippetGenerator.cpp
   69     for (CodeTemplate &CT : E.get()) {
   74         for (InstructionTemplate &IT : CT.Instructions) {
tools/llvm-exegesis/lib/SnippetRepetitor.cpp
   67       for (const MCInst &Inst :
tools/llvm-exegesis/lib/Uops.cpp
  105   for (InstructionTemplate &IT : Instructions) {
  152       for (BitVector &OtherPossibleRegs : PossibleRegsForVar) {
tools/llvm-exegesis/llvm-exegesis.cpp
  268       std::move(ConfigsForInstr->begin(), ConfigsForInstr->end(),
  288   for (const BenchmarkCode &Conf : Configurations) {
tools/llvm-jitlink/llvm-jitlink.cpp
  171   std::sort(Sections.begin(), Sections.end(),
  184   for (auto *S : Sections) {
  198     for (auto *Sym : Syms) {
  606     for (auto *JD : S.JDSearchOrder) {
  608       for (auto *JD2 : S.JDSearchOrder) {
  665     for (auto *JD : S.JDSearchOrder)
tools/llvm-link/llvm-link.cpp
  309         for (auto &S : I.second.SummaryList) {
tools/llvm-lipo/llvm-lipo.cpp
  371     for (auto A : InputArgs.getAllArgValues(LIPO_verify_arch))
tools/llvm-lto/llvm-lto.cpp
  341       for (auto &Summary : Summaries.second.SummaryList) {
  697     for (auto &MemBuffer : InputBuffers)
  730     for (auto &MemBuffer : InputBuffers)
tools/llvm-mca/CodeRegion.cpp
  111   for (UniqueCodeRegion &Region : Regions)
tools/llvm-mca/CodeRegion.h
  103   iterator end() { return Regions.end(); }
tools/llvm-mca/Views/ResourcePressureView.cpp
   41   std::fill(ResourceUsage.begin(), ResourceUsage.end(), 0.0);
tools/llvm-mca/Views/SchedulerStatistics.cpp
   93   for (BufferUsage &BU : Usage) {
tools/llvm-mca/Views/TimelineView.cpp
   31   std::fill(Timeline.begin(), Timeline.end(), InvalidTVEntry);
   34   std::fill(WaitTime.begin(), WaitTime.end(), NullWTEntry);
   38   std::fill(UsedBuffer.begin(), UsedBuffer.end(), NullUsedBufferEntry);
tools/llvm-mt/llvm-mt.cpp
  138   for (const auto &File : InputFiles) {
tools/llvm-nm/llvm-nm.cpp
  794   for (const NMSymbol &S : SymbolList) {
 1309           for (const NMSymbol &S : SymbolList)
tools/llvm-objcopy/COFF/Object.cpp
   29   for (Symbol &Sym : Symbols)
   49   for (Symbol &Sym : Symbols)
   51   for (const Section &Sec : Sections) {
   74   for (Section &S : Sections) {
  126   for (Section &Sec : Sections) {
tools/llvm-objcopy/COFF/Object.h
  113     return make_range(Symbols.begin(), Symbols.end());
  129     return make_range(Sections.begin(), Sections.end());
tools/llvm-objcopy/COFF/Reader.cpp
  178     for (Relocation &R : Sec.Relocs) {
tools/llvm-objcopy/COFF/Writer.cpp
   28     for (Relocation &R : Sec.Relocs) {
  285     for (const auto &DD : Obj.DataDirectories) {
tools/llvm-objcopy/ELF/Object.cpp
  643   for (auto &Sym : Symbols)
  712   for (std::unique_ptr<Symbol> &Sym : Symbols)
  729   for (std::unique_ptr<Symbol> &Sym : Symbols) {
  752     for (std::unique_ptr<Symbol> &Sym : Symbols)
  761   for (const std::unique_ptr<Symbol> &Sym : Symbols) {
  817   for (const Relocation &R : Relocations) {
  895   for (const Relocation &Reloc : Relocations)
  905   for (const Relocation &Reloc : Relocations)
 1834     for (auto &Segment : Segments)
 1854   std::move(Iter, Sections.end(), std::back_inserter(RemovedSections));
 1862     for (const SecPtr &Sec : Sections)
 1899   for (Segment *Seg : Segments) {
 2147     for (Segment *Seg : OrderedSegments)
 2175     for (Segment *Segment : OrderedSegments) {
tools/llvm-objcopy/ELF/Object.h
 1045     return SecIt == Sections.end() ? nullptr : SecIt->get();
tools/llvm-objcopy/MachO/MachOLayoutBuilder.cpp
   20   for (const auto &LC : O.LoadCommands) {
   48   for (std::unique_ptr<SymbolEntry> &Sym : O.SymTable.Symbols)
   55   for (auto &Symbol : O.SymTable.Symbols)
   64   assert(std::is_sorted(O.SymTable.Symbols.begin(), O.SymTable.Symbols.end(),
   75   auto End = O.SymTable.Symbols.end();
  108   for (auto &LC : O.LoadCommands) {
  143     for (auto &Sec : LC.Sections) {
  205   for (auto &LC : O.LoadCommands)
  206     for (auto &Sec : LC.Sections) {
  261   for (auto &LC : O.LoadCommands) {
tools/llvm-objcopy/MachO/MachOReader.cpp
  206   for (auto &LC : O.LoadCommands)
  207     for (auto &Sec : LC.Sections)
  208       for (auto &Reloc : Sec.Relocations)
tools/llvm-objcopy/MachO/MachOWriter.cpp
  113   for (const auto &LC : O.LoadCommands)
  150   for (const auto &LC : O.LoadCommands) {
  230   for (const auto &LC : O.LoadCommands)
  292   for (auto Iter = O.SymTable.Symbols.begin(), End = O.SymTable.Symbols.end();
tools/llvm-objcopy/MachO/Object.cpp
   14   for (LoadCommand &LC : LoadCommands)
tools/llvm-objdump/MachODump.cpp
  412       std::search(Dices.begin(), Dices.end(), Dice.begin(), Dice.end(),
  412       std::search(Dices.begin(), Dices.end(), Dice.begin(), Dice.end(),
  414   if (DTI != Dices.end()) {
 1487   array_pod_sort(Relocs.begin(), Relocs.end());
 1514     if (Reloc != Relocs.end()) {
 1525     if (Sect == LiteralSections.end()) {
 1637   array_pod_sort(Relocs.begin(), Relocs.end());
 1664       if (Reloc != Relocs.end()) {
 7327   array_pod_sort(Dices.begin(), Dices.end());
tools/llvm-objdump/llvm-objdump.cpp
  760     std::vector<RelocationRef>::const_iterator RelEnd = Rels->end();
  962     for (auto PltEntry : ElfObj->getPltAddresses()) {
 1168   array_pod_sort(SectionAddresses.begin(), SectionAddresses.end());
 1201     array_pod_sort(SecSyms.second.begin(), SecSyms.second.end());
 1202   array_pod_sort(AbsoluteSymbols.begin(), AbsoluteSymbols.end());
 1218       for (const auto &Symb : Symbols) {
 1276     std::vector<RelocationRef>::const_iterator RelEnd = Rels.end();
 1637     for (SectionRef Section : P.second) {
 1673   for (const SectionRef &Section : DynRelSec)
tools/llvm-pdbutil/DumpOutputStyle.cpp
  339   for (const auto &K : Stats.getStatsSortedBySize()) {
  405                    make_range(BV.begin(), BV.end()));
  718   for (const auto &K : TypeStats.getStatsSortedBySize()) {
  872   for (const auto &Stat : UdtTargetStats.getStatsSortedBySize()) {
  898   for (const auto &Stat : NamespacedStatsSorted) {
 1191       for (uint32_t I : SortedIDs) {
 1484       std::vector<TypeIndex> TiList(Indices.begin(), Indices.end());
 1718       for (ResultEntryType Result : Results) {
tools/llvm-pdbutil/MinimalSymbolDumper.cpp
  472   for (const auto &Entry : EnvBlock.Fields) {
  843   for (const auto &I : Caller.Indices) {
tools/llvm-pdbutil/MinimalTypeDumper.cpp
  478   for (auto &M : Overloads.Methods)
tools/llvm-pdbutil/PrettyTypeDumper.cpp
  247         for (auto &Class : Filtered)
tools/llvm-pdbutil/llvm-pdbutil.cpp
  779     for (auto S : *YamlObj.StringTable)
  827     for (auto &SS : CodeViewSubsections) {
 1042   for (PDB_SymType ST : SymTypes) {
 1239           for (const auto &Func : Funcs) {
 1257           for (const auto &Var : Datas)
tools/llvm-profdata/llvm-profdata.cpp
  280   for (auto &ErrorPair : Src->Errors)
  356     for (auto &ErrorPair : WC->Errors) {
  995     for (auto Entry : PS->getDetailedSummary()) {
tools/llvm-rc/ResourceFileWriter.cpp
 1279   for (auto Key : StringTableData.BundleList) {
tools/llvm-rc/ResourceScriptParser.cpp
   44     : Tokens(std::move(TokenList)), CurLoc(Tokens.begin()), End(Tokens.end()) {}
tools/llvm-rc/llvm-rc.cpp
  104     InArgsInfo.insert(InArgsInfo.end(), DashDash + 1, Argv + Argc);
  130     for (const RCToken &Token : Tokens) {
tools/llvm-readobj/COFFDumper.cpp
 1615   for (const auto &L : Libs) {
tools/llvm-readobj/ELFDumper.cpp
 2186   for (const auto &L : Libs)
 2889   for (const GroupSection &G : V) {
 3050         for (const auto &R : RelrRelas)
 3055       for (const auto &R : AndroidRelas)
 3737     for (const Elf_Rela &Rela : RelrRelas) {
 4567   for (CoreFileMapping &Mapping : Ret.Mappings) {
 5210   for (const GroupSection &G : V) {
 5292       for (const Elf_Rela &R : RelrRelas)
 5299     for (const Elf_Rela &R :
 5362       SectionFlags.insert(SectionFlags.end(), std::begin(ElfARMSectionFlags),
 5366       SectionFlags.insert(SectionFlags.end(),
 5371       SectionFlags.insert(SectionFlags.end(), std::begin(ElfMipsSectionFlags),
 5375       SectionFlags.insert(SectionFlags.end(), std::begin(ElfX86_64SectionFlags),
 5379       SectionFlags.insert(SectionFlags.end(), std::begin(ElfXCoreSectionFlags),
 5463         SymOtherFlags.insert(SymOtherFlags.end(),
 5467         SymOtherFlags.insert(SymOtherFlags.end(),
 5546     for (const Elf_Rela &Rela : RelrRelas)
 5787   for (uint64_t Sym : *V) {
tools/llvm-readobj/MachODumper.cpp
  718   for (const auto &L : Libs) {
tools/llvm-readobj/ObjDumper.cpp
   86   for (object::SectionRef Section :
  121   for (object::SectionRef Section :
tools/llvm-reduce/deltas/Delta.cpp
   65   for (auto &C : Chunks) {
   78     for (auto C : Chunks) {
  122       for (auto C : Chunks)
tools/llvm-reduce/deltas/ReduceArguments.cpp
   61   for (auto *F : Funcs) {
   74     for (auto *I : InstToDelete) {
tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp
   57     for (auto Dest : ChunkSucessors)
  118   for (auto &BB : BBsToDelete) {
tools/llvm-reduce/deltas/ReduceFunctions.cpp
   54   for (auto *F : FuncsToRemove)
tools/llvm-reduce/deltas/ReduceGlobalVars.cpp
   47   for (auto *Inst : InstToRemove) {
   52   for (auto *GV : ToRemove)
tools/llvm-reduce/deltas/ReduceInstructions.cpp
   44   for (auto &I : InstToDelete)
tools/llvm-reduce/deltas/ReduceMetadata.cpp
   96   for (auto *NN : NamedNodesToDelete) {
tools/llvm-rtdyld/llvm-rtdyld.cpp
  421     for (const auto &P : SymAddr) {
tools/llvm-stress/llvm-stress.cpp
  319       ScalarTypes.insert(ScalarTypes.end(),
  701     for (auto &Mod : Modifiers)
  714   std::shuffle(BoolInst.begin(), BoolInst.end(), R);
  716   for (auto *Instr : BoolInst) {
tools/llvm-symbolizer/llvm-symbolizer.cpp
  244       for (DILocal Local : *ResOrErr)
tools/llvm-xray/xray-account.cpp
  210     for (auto &E : make_range(I, ThreadStack.end())) {
  213     ThreadStack.erase(I, ThreadStack.end());
  239   R.Sum = std::accumulate(Timings.begin(), Timings.end(), 0.0);
  240   auto MinMax = std::minmax_element(Timings.begin(), Timings.end());
  246   std::nth_element(Timings.begin(), Timings.begin() + MedianOff, Timings.end());
  250   std::nth_element(Timings.begin(), Timings.begin() + Pct90Off, Timings.end());
  254   std::nth_element(Timings.begin(), Timings.begin() + Pct99Off, Timings.end());
  327     Results.erase(Results.begin() + MaxTop, Results.end());
  330   for (const auto &R : Results)
tools/llvm-xray/xray-extract.cpp
   58   YAMLSleds.reserve(std::distance(Sleds.begin(), Sleds.end()));
   59   for (const auto &Sled : Sleds) {
tools/llvm-xray/xray-fdr-dump.cpp
   83       for (auto &Ptr : Records)
   95   for (auto &Ptr : Records)
  106     for (auto &B : Blocks) {
  107       for (auto *R : B.Records) {
tools/llvm-xray/xray-graph.cpp
  287     getStats(A.Timings.begin(), A.Timings.end(), A.S);
  298         TempTimings.insert(TempTimings.end(), A.Timings.begin(),
  299                            A.Timings.end());
  301       getStats(TempTimings.begin(), TempTimings.end(), G[V.first].S);
tools/obj2yaml/elf2yaml.cpp
  753   for (uint32_t &V : *S->Bucket)
  757   for (uint32_t &V : *S->Chain)
tools/obj2yaml/macho2yaml.cpp
  233       LC.PayloadBytes.insert(LC.PayloadBytes.end(), EndPtr,
  449   for (auto &Child : Entry.Children) {
  455   for (auto &Child : Entry.Children) {
tools/polly/include/polly/CodeGen/RuntimeDebugBuilder.h
  111     Values.insert(Values.end(), Array.begin(), Array.end());
tools/polly/include/polly/ScopInfo.h
 2141     return make_range(AccessFunctions.begin(), AccessFunctions.end());
tools/polly/lib/Analysis/ScopBuilder.cpp
 1648   for (auto *Subscript : Subscripts) {
 1664   for (auto V : Sizes)
 1698   Sizes.insert(Sizes.end(), AccItr->second.Shape->DelinearizedSizes.begin(),
tools/polly/lib/Analysis/ScopDetection.cpp
  855   for (const auto &Pair : Context.Accesses[BasePointer]) {
  859       Terms.insert(Terms.begin(), MaxTerms.begin(), MaxTerms.end());
  944     for (const auto &Pair : Context.Accesses[BasePointer]) {
  972   for (const auto &Pair : Context.Accesses[BasePointer]) {
 1377   for (auto &SubLoop : SubLoops)
 1499   for (Region *CurrentRegion : ToExpand) {
tools/polly/lib/Analysis/ScopDetectionDiagnostic.cpp
  621                                          PE = Pointers.end();
tools/polly/lib/Analysis/ScopInfo.cpp
 1590   for (isl::id Id : OutermostSizeIds) {
 1730                                           StmtMapIt->second.end(), &Stmt),
 1731                               StmtMapIt->second.end());
 1921   for (isl::id Id : FortranIDs)
 2375   for (Instruction *Inst : Instructions) {
 2388   for (Instruction *Inst : Instructions) {
tools/polly/lib/Analysis/ScopPass.cpp
   76   for (auto &Pass : Passes) {
tools/polly/lib/CodeGen/IslNodeBuilder.cpp
  613   for (BasicBlock *BB : Nodes)
  930   for (Value *IV : IVS) {
tools/polly/lib/CodeGen/RuntimeDebugBuilder.cpp
   70   for (auto GetID : BlockIDs) {
   86   for (auto GetId : ThreadIDs) {
  182   ToPrint.insert(ToPrint.end(), Values.begin(), Values.end());
  194   for (auto Val : ToPrint) {
  265   Arguments.insert(Arguments.end(), Values.begin(), Values.end());
tools/polly/lib/Support/ISLTools.cpp
  733   for (const isl::basic_set &BSet : BSets) {
tools/sancov/sancov.cpp
 1059     for (const auto &FileName : FileNames) {
unittests/ADT/DenseMapTest.cpp
  450   DenseMap<int, CountCopyAndMove> Map(Values.begin(), Values.end());
unittests/ADT/IteratorTest.cpp
  448   EXPECT_EQ(std::distance(v1.begin(), v1.end()), size(v1));
  449   EXPECT_EQ(std::distance(v2.begin(), v2.end()), size(v2));
unittests/ADT/RangeAdapterTest.cpp
  116   iterator end()  const { return V.end(); }
  117   reverse_iterator rbegin() const { return reverse_iterator(V.end()); }
unittests/ADT/STLExtrasTest.cpp
  305   llvm::sort(I, V.end());
  379   auto R1 = make_range(V.begin(), V.end());
  479   EXPECT_EQ(V.end(), partition_point(V, [](unsigned X) { return X < 50; }));
unittests/ADT/SmallSetTest.cpp
   81   std::sort(V.begin(), V.end());
   92   std::sort(V.begin(), V.end());
  107   std::sort(V.begin(), V.end());
  118   std::sort(V.begin(), V.end());
unittests/ADT/StringExtrasTest.cpp
   28   EXPECT_EQ("", join(Items.begin(), Items.end(), " <sep> "));
   31   EXPECT_EQ("foo", join(Items.begin(), Items.end(), " <sep> "));
   34   EXPECT_EQ("foo <sep> bar", join(Items.begin(), Items.end(), " <sep> "));
   38             join(Items.begin(), Items.end(), " <sep> "));
unittests/ADT/StringRefTest.cpp
  915   bool v1_join2 = join(v1.begin(), v1.end(), ":") == join_result2;
  917   bool v1_join3 = join(v1.begin(), v1.end(), "::") == join_result3;
  922   bool v2_join2 = join(v2.begin(), v2.end(), ":") == join_result2;
  924   bool v2_join3 = join(v2.begin(), v2.end(), "::") == join_result3;
unittests/ADT/TinyPtrVectorTest.cpp
   51     std::shuffle(TestPtrs.begin(), TestPtrs.end(), std::mt19937{});
  392   this->V.insert(this->V.end(), this->TestPtrs.end(), this->TestPtrs.end());
  392   this->V.insert(this->V.end(), this->TestPtrs.end(), this->TestPtrs.end());
unittests/Analysis/DomTreeUpdaterTest.cpp
  380         std::remove_if(BasicBlocks.begin(), BasicBlocks.end(),
  382         BasicBlocks.end());
unittests/Analysis/ScalarEvolutionTest.cpp
  610     for (const auto &LoopSet : LoopSets)
  611       for (auto *S : Exprs) {
unittests/DebugInfo/CodeView/RandomAccessVisitorTest.cpp
  212   for (uint32_t I : IndicesToVisit) {
  241   for (uint32_t I : IndicesToVisit) {
  270   for (uint32_t I : IndicesToVisit) {
  301   for (uint32_t I : IndicesToVisit) {
  331   for (uint32_t I : IndicesToVisit) {
unittests/DebugInfo/DWARF/DwarfGenerator.cpp
  212   Contents.insert(Contents.end(), Operands.begin(), Operands.end());
  220   Contents.insert(Contents.end(), Operands.begin(), Operands.end());
  484   for (auto &CU : CompileUnits) {
  502   for (auto &CU : CompileUnits) {
  521   for (auto &LT : LineTables)
unittests/DebugInfo/MSF/MSFBuilderTest.cpp
   96   for (auto B : Blocks) {
unittests/DebugInfo/PDB/HashTableTest.cpp
  179     for (StringRef S : Streams)
  205   } while (std::next_permutation(Streams.begin(), Streams.end()));
  235     Buffer.insert(Buffer.end(), S.begin(), S.end());
unittests/ExecutionEngine/MCJIT/MCJITTest.cpp
  288   auto I = UnresolvedExternals.begin(), E = UnresolvedExternals.end();
unittests/FuzzMutate/RandomIRBuilderTest.cpp
  118   for (auto *T: Types) {
unittests/FuzzMutate/ReservoirSamplerTest.cpp
   51     for (int Ys : Counts)
unittests/IR/DominatorTreeBatchUpdatesTest.cpp
   39   for (const auto &CFGU : In)
  239     std::shuffle(Updates.begin(), Updates.end(), Generator);
unittests/IR/DominatorTreeTest.cpp
  821   while (std::next_permutation(Updates.begin(), Updates.end(), CompUpdates)) {
  942     std::shuffle(Updates.begin(), Updates.end(), Generator);
unittests/Object/SymbolSizeTest.cpp
   27   array_pod_sort(Syms.begin(), Syms.end(), compareAddress);
unittests/ProfileData/CoverageMappingTest.cpp
  234       for (const auto &OF : OutputFunctions) {
  838   for (const auto &Group : InstantiationGroups)
unittests/Support/AlignmentTest.cpp
   63   for (uint64_t Value : getValidAlignments()) {
   79   for (uint64_t Value : getValidAlignments()) {
  130   for (uint64_t Value : getValidAlignments()) {
  166   for (uint64_t Value : getValidAlignments()) {
  233   std::sort(ValidAlignments.begin(), ValidAlignments.end());
  343   for (uint64_t Value : getNonPowerOfTwo()) {
  351   for (uint64_t Value : getValidAlignmentsForDeathTest()) {
  362   for (uint64_t Value : getValidAlignmentsForDeathTest()) {
  374   for (uint64_t Value : getValidAlignmentsForDeathTest()) {
unittests/Support/BinaryStreamTest.cpp
  200   for (auto &Stream : Streams) {
  219   for (const auto &Stream : Streams) {
  363   for (auto &Stream : Streams) {
  422   for (auto &Stream : Streams) {
  444   for (auto &Stream : Streams) {
  490   for (auto &Stream : Streams) {
  505   for (auto &Stream : Streams) {
  514   for (auto &Stream : Streams) {
  535   for (auto &Stream : Streams) {
  573   for (auto &Stream : Streams) {
  595   for (auto &Stream : Streams) {
  597     for (auto Value : Enums)
  629   for (auto &Stream : Streams) {
  632     for (const auto &Value : TestValues)
  666   for (auto &Stream : Streams) {
  669     for (const auto &Value : TestValues)
  704   for (auto &Stream : Streams) {
  726   for (auto &Stream : Streams) {
  766   for (auto &Stream : Streams) {
  793   for (auto &Stream : Streams) {
  819   for (auto &Stream : Streams) {
  883   for (const auto &F : Foos) {
  897   for (const auto &F : Foos) {
unittests/Support/FormatVariadicTest.cpp
  547             formatv("{0}", make_range(IntRange.begin(), IntRange.end())).str());
  549             formatv("{0}", make_range(IntRange.begin() + 1, IntRange.end() - 1))
  555       formatv("{0:$[/]}", make_range(IntRange.begin(), IntRange.end())).str());
  560       formatv("{0:@[x]}", make_range(IntRange.begin(), IntRange.end())).str());
  565       formatv("{0:$[ + ]@[x]}", make_range(IntRange.begin(), IntRange.end()))
  572       formatv("<{0:$[><]@(x)}>", make_range(IntRange.begin(), IntRange.end()))
  576       formatv("[{0:$(][)@[x]}]", make_range(IntRange.begin(), IntRange.end()))
  580       formatv("({0:$<)(>@<x>})", make_range(IntRange.begin(), IntRange.end()))
  590             formatv("{0:$[]@<>}", make_range(IntRange.begin(), IntRange.end()))
unittests/Support/JSONTest.cpp
  207   for (auto Invalid : std::vector<std::pair<const char *, const char *>>{
unittests/Support/Path.cpp
  729   for (fs::TempFile &T : TempFiles)
  865   ASSERT_NE(a0, visited.end());
  866   ASSERT_NE(aa1, visited.end());
  867   ASSERT_NE(ab1, visited.end());
  868   ASSERT_NE(dontlookhere, visited.end());
  869   ASSERT_EQ(da1, visited.end()); // Not visited.
  870   ASSERT_NE(z0, visited.end());
  871   ASSERT_NE(za1, visited.end());
  872   ASSERT_NE(pop, visited.end());
  873   ASSERT_EQ(p1, visited.end()); // Not visited.
 1139   for (auto &T : Tests) {
unittests/Support/SpecialCaseListTest.cpp
  187   for (auto &Path : Files)
unittests/Support/TargetParserTest.cpp
 1090   for (auto Ext : Extensions)
unittests/Support/TrigramIndexTest.cpp
   26     for (auto &Rule : Rules)
unittests/Support/VirtualFileSystemTest.cpp
  622   for (const std::string &Name : Contents) {
  697     for (const std::string &Name : Contents) {
unittests/TextAPI/TextStubV1Tests.cpp
  120   llvm::sort(Exports.begin(), Exports.end());
  124       std::equal(Exports.begin(), Exports.end(), std::begin(TBDv1Symbols)));
unittests/TextAPI/TextStubV2Tests.cpp
  122   llvm::sort(Exports.begin(), Exports.end());
  126       std::equal(Exports.begin(), Exports.end(), std::begin(TBDv2Symbols)));
unittests/TextAPI/TextStubV3Tests.cpp
  131   llvm::sort(Exports.begin(), Exports.end());
  135       std::equal(Exports.begin(), Exports.end(), std::begin(TBDv3Symbols)));
unittests/TextAPI/TextStubV4Tests.cpp
  156   llvm::sort(Exports.begin(), Exports.end());
  157   llvm::sort(Reexports.begin(), Reexports.end());
  158   llvm::sort(Undefineds.begin(), Undefineds.end());
  166   EXPECT_TRUE(std::equal(Exports.begin(), Exports.end(),
  168   EXPECT_TRUE(std::equal(Reexports.begin(), Reexports.end(),
  170   EXPECT_TRUE(std::equal(Undefineds.begin(), Undefineds.end(),
unittests/Transforms/IPO/LowerTypeTests.cpp
   55     for (auto Offset : T.Offsets)
   67     for (auto Offset : T.Offsets)
   72       if (I != T.Offsets.end() && *I == NonOffset) {
   98     for (auto &&F : T.Fragments)
  102     for (auto &&F : GLB.Fragments)
  103       ComputedLayout.insert(ComputedLayout.end(), F.begin(), F.end());
  103       ComputedLayout.insert(ComputedLayout.end(), F.begin(), F.end());
  144     for (auto &&A : T.Allocs) {
unittests/XRay/FDRBlockIndexerTest.cpp
   59     for (auto &R : B.get())
unittests/XRay/FDRBlockVerifierTest.cpp
   55     for (auto &R : B.get())
   63     for (auto &B : Blocks) {
   64       for (auto *R : B.Records)
   82   for (auto &R : Block)
   96   for (auto &R : Block)
  111   for (auto &R : Block)
unittests/XRay/FDRProducerConsumerTest.cpp
  153   for (auto &P : Records)
  194   for (auto &P : Records)
unittests/XRay/FDRRecordsTest.cpp
   62     for (auto &R : B.get())
   86   for (auto &R : Block)
  130     for (auto &R : B.get())
  139     for (auto &B : Blocks) {
  140       for (auto *R : B.Records)
  154     for (auto &B : Blocks) {
  155       for (auto *R : B.Records)
unittests/XRay/FDRTraceWriterTest.cpp
   53   for (auto &P : L)
   98   for (auto &P : L)
  150   for (auto &P : L)
unittests/XRay/ProfileTest.cpp
  196   Profile Merged = std::accumulate(Profiles.begin(), Profiles.end(), Profile(),
  232   Profile Merged = std::accumulate(Profiles.begin(), Profiles.end(), Profile(),
usr/include/c++/7.4.0/bits/random.tcc
 2750       for (auto __dit = __prob.begin(); __dit != __prob.end(); ++__dit)
 2783 		param_type(__prob_vec.begin(), __prob_vec.end()));
 2965       for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit)
 3181       for (auto __dit = __den.begin(); __dit != __den.end(); ++__dit)
usr/include/c++/7.4.0/bits/range_access.h
   68     end(_Container& __cont) -> decltype(__cont.end())
   69     { return __cont.end(); }
usr/include/c++/7.4.0/bits/regex.tcc
   60       for (auto& __it : __res)
   86 	  for (auto& __it : __res)
  113 	  for (auto& __it : __res)
usr/include/c++/7.4.0/bits/regex_automaton.tcc
  165       for (auto __it : this->_M_paren_stack)
  180       for (auto& __it : *this)
usr/include/c++/7.4.0/bits/regex_compiler.h
  522 	std::sort(_M_char_set.begin(), _M_char_set.end());
  523 	auto __end = std::unique(_M_char_set.begin(), _M_char_set.end());
  524 	_M_char_set.erase(__end, _M_char_set.end());
usr/include/c++/7.4.0/bits/regex_executor.tcc
  127 	  for (auto& __task : __old_queue)
usr/include/c++/7.4.0/bits/stl_queue.h
  479       { std::make_heap(c.begin(), c.end(), comp); }
  484       { std::make_heap(c.begin(), c.end(), comp); }
  598 	std::push_heap(c.begin(), c.end(), comp);
  606 	std::push_heap(c.begin(), c.end(), comp);
  614 	  std::push_heap(c.begin(), c.end(), comp);
  633 	std::pop_heap(c.begin(), c.end(), comp);
usr/include/c++/7.4.0/bits/stl_vector.h
  600       { return reverse_iterator(end()); }
  712 	  _M_fill_insert(end(), __new_size - size(), __x);
  898 	return *(end() - 1);
  948 	  _M_realloc_insert(end(), __x);
usr/include/c++/7.4.0/bits/vector.tcc
  105 	  _M_realloc_insert(end(), std::forward<_Args>(__args)...);
  123 	if (__position == end())
  156       if (__position + 1 != end())
  157 	_GLIBCXX_MOVE3(__position + 1, end(), __position);
  170 	  if (__last != end())
  171 	    _GLIBCXX_MOVE3(__last, end(), __first);
  172 	  _M_erase_at_end(__first.base() + (end() - __last));
  219 			    end(), _M_get_Tp_allocator());
  247 	  std::fill(begin(), end(), __val);
  472 	      const size_type __elems_after = end() - __position;
  640 		const size_type __elems_after = end() - __position;
utils/FileCheck/FileCheck.cpp
  390   std::sort(Annotations.begin(), Annotations.end(),
  426   auto AnnotationItr = Annotations.begin(), AnnotationEnd = Annotations.end();
  459         for (auto M : FoundAndExpectedMatches) {
utils/TableGen/AsmMatcherEmitter.cpp
  941   for (Record *Predicate : TheDef->getValueAsListOfDefs("Predicates"))
 1351   for (Record *Rec : AsmOperands) {
 1357   for (Record *Rec : AsmOperands) {
 1446   for (const auto &MI : Matchables) {
 1570   for (auto &II : Matchables) {
 1636     Matchables.insert(Matchables.end(),
 1638                       std::make_move_iterator(NewMatchables.end()));
 1644   for (Record *Rec : AllTokenAliases) {
 1968     for (const auto &MI : Infos) {
 2038   for (auto &II : Infos) {
 2554       for (StringRef SC : SuperClasses)
 2629     for (auto AltName : AltNames) {
 2727   for (Record *R : Aliases) {
 3153       for (const auto &MI : Info.Matchables)
 3160     for (auto I = Info.Matchables.begin(), E = Info.Matchables.end(); I != E;
 3321   for (const auto &MI : Info.Matchables) {
 3336   for (const auto &MI : Info.Matchables) {
 3359       std::unique(FeatureBitsets.begin(), FeatureBitsets.end()),
 3360       FeatureBitsets.end());
 3364   for (const auto &FeatureBitset : FeatureBitsets) {
 3372   for (const auto &FeatureBitset : FeatureBitsets) {
 3435     for (const auto &MI : Info.Matchables) {
utils/TableGen/AsmWriterEmitter.cpp
  126   for (const AsmWriterInst &AWI : SimilarInsts)
  143       for (const AsmWriterInst &AWI : SimilarInsts) {
  148       std::reverse(OpsToPrint.begin(), OpsToPrint.end());
  180     if (I != UniqueOperandCommands.end()) {
  295   for (AsmWriterInst &AWI : Instructions) {
  308   for (AsmWriterInst &AWI : Instructions) {
  361       for (unsigned Idx : InstIdxs[i]) {
  473   Instructions.erase(I, Instructions.end());
  478   std::reverse(Instructions.begin(), Instructions.end());
  676            I = Conds.begin(), E = Conds.end(); I != E; ++I) {
  781   for (Record *R : AllInstAliases) {
  998     for (auto &LHS : IAPs) {
 1000       for (const auto &RHS : IAPs) {
 1015     for (IAPrinter *IAP : UniqueIAPs) {
utils/TableGen/Attributes.cpp
   47   for (auto A : Attrs)
   63   for (auto A : Attrs) {
  114   for (auto *Rule : CompatRules) {
  128   for (auto *Rule : MergeRules) {
utils/TableGen/CTagsEmitter.cpp
   78   for (const Tag &T : Tags)
utils/TableGen/CallingConvEmitter.cpp
   41   for (Record *CC : CCs) {
   59   for (Record *CC : CCs) {
utils/TableGen/CodeEmitterGen.cpp
  464   for (std::vector<Record*>::iterator IC = Insts.begin(), EC = Insts.end();
  553     for (Record *Predicate : Inst->TheDef->getValueAsListOfDefs("Predicates")) {
  575       std::unique(FeatureBitsets.begin(), FeatureBitsets.end()),
  576       FeatureBitsets.end());
  581   for (const auto &FeatureBitset : FeatureBitsets) {
  589   for (const auto &FeatureBitset : FeatureBitsets) {
  615     for (Record *Predicate : Inst->TheDef->getValueAsListOfDefs("Predicates")) {
utils/TableGen/CodeGenDAGPatterns.cpp
  478   for (unsigned M : Modes) {
  520   for (unsigned M : Modes) {
  567   for (unsigned M : union_modes(Vec, Elem)) {
  650   for (unsigned M : union_modes(Vec, Sub)) {
  690   for (unsigned M : union_modes(V, W)) {
  724   for (unsigned M : union_modes(A, B)) {
 1680   for (TypeSetByHwMode &S : Types) {
 1686   for (const TreePatternNodePtr &C : Children)
 1708   for (Record *R : ConstraintList)
 1914   std::fill(Types.begin(), Types.end(), TypeSetByHwMode());
 1984       for (auto NewChild : ChildAlternatives[i])
 2686   for (TreePatternNodePtr &Tree : Trees)
 2923     for (TreePatternNodePtr &Tree : Trees) {
 2982   for (const TreePatternNodePtr &Tree : Trees)
 3106   for (Record *Frag : Fragments) {
 3121     OperandsSet.insert(ArgsCopy.begin(), ArgsCopy.end());
 3167   for (Record *Frag : Fragments) {
 3785   for (Record *Instr : Instrs) {
 4194   for (Record *CurPattern : Patterns) {
 4250     Preds.insert(Preds.end(), MC.begin(), MC.end());
 4257   for (PatternToMatch &P : Copy) {
 4372       for (unsigned Idx : Idxs) {
 4682       for (auto &P : MatchedPredicates)
utils/TableGen/CodeGenDAGPatterns.h
  672     std::iota(ResultPerm.begin(), ResultPerm.end(), 0);
  678     std::iota(ResultPerm.begin(), ResultPerm.end(), 0);
utils/TableGen/CodeGenHwModes.cpp
   58   for (auto I = MRs.begin(), E = MRs.end(); I != E; ++I) {
   65   for (Record *R : MRs) {
   72   for (Record *R : MSs) {
utils/TableGen/CodeGenInstruction.cpp
  142   for (OperandInfo &OpInfo : OperandList)
utils/TableGen/CodeGenInstruction.h
  166     iterator end() { return OperandList.end(); }
utils/TableGen/CodeGenMapTable.cpp
  241   for (Record *CurInstr : InstrDefs) {
  294   for (Record *CurKeyInstr : KeyInstrVec) {
  348         for (Init *Value : KeyValue) {
  516   for (Record *CurMap : InstrMapVec) {
  592   for (Record *CurMap : InstrMapVec) {
utils/TableGen/CodeGenRegisters.cpp
   99     for (Record *Part : Parts)
  192   for (Record *Alias : Aliases) {
  738   M.erase(std::unique(M.begin(), M.end(), deref<std::equal_to<>>()), M.end());
  738   M.erase(std::unique(M.begin(), M.end(), deref<std::equal_to<>>()), M.end());
  829   for (const auto R : Members) {
 1038   for (auto *SuperRegRC : SuperRegRCs) {
 1039     for (const auto &SuperRegClassPair : SuperRegClasses) {
 1087   std::unique_copy(TmpUnits.begin(), TmpUnits.end(),
 1124   for (Record *R : Tups) {
 1127     for (Record *RC : TupRegs)
 1192   for (auto *R : RCs) {
 1648          E = UberSets.end(); I != E; ++I) {
 1675                       : I->Regs) dbgs()
 1683     for (const auto R : I->Regs) {
 1895     if (SetI != std::prev(RegUnitSets.end()))
 1903     for (auto &U : RegUnitSets[USIdx].Units)
 1915     for (auto &U : RegUnitSets[USIdx].Units)
 1933                             RegUnitSets[Idx].Units.end(),
 1935                             RegUnitSets[SearchIdx].Units.end(),
 1946                      RegUnitSets[Idx].Units.end(),
 1948                      RegUnitSets[SearchIdx].Units.end(),
 1955       if (SetI != std::prev(RegUnitSets.end()))
 1961                         : RegUnitSets.back().Units) printRegUnitName(U);
 1974         for (auto &U : RegUnitSets[USIdx].Units)
 1997                     : RCRegUnits) printRegUnitName(U);
utils/TableGen/CodeGenSchedule.cpp
  301     for (const Record *EC : Classes) {
  307       for (const Record *Opcode : Opcodes) {
  325   for (std::pair<APInt, APInt> &MaskPair : OpcodeMasks)
  337     for (const Record *EC : Classes) {
  348       for (const Record *Opcode : Opcodes) {
  396   for (OpcodeMapPair &Info : OpcodeMappings)
  406   for (const Record *R : RV) {
  422   for (STIPredicateFunction &Fn : STIPredicates)
  433   if (It == Predicates.end()) {
  447   for (const Record *TIIPred : MCPredicates) {
  467   for (Record *RCU : Units) {
  482   for (Record *Queue : Queues) {
  538   for (Record *ProcRecord : ProcRecords)
  573     for (Record *WSRec : Seq)
  579     for (Record *Variant : Vars) {
  582       for (Record *SelDef : Selected)
  604     for (Record *RW : RWs) {
  615   for (Record *InstRWDef : InstRWDefs) {
  618     for (Record *RWDef : RWDefs) {
  629   for (Record *ItinRWDef : ItinRWDefs) {
  632     for (Record *RWDef : RWDefs) {
  645   for (Record *ADef : AliasDefs) {
  663   for (Record *SWDef : SWDefs) {
  668   for (Record *SRDef : SRDefs) {
  673   for (CodeGenSchedRW &CGRW : SchedWrites) {
  680   for (Record *ADef : AliasDefs) {
  702            : RWDefs) {
  841   return I == RWVec.end() ? 0 : std::distance(RWVec.begin(), I);
  889   for (Record *RWDef : InstRWDefs)
  927         for (IdxIter WI = SC.Writes.begin(), WE = SC.Writes.end(); WI != WE;
  930         for (IdxIter RI = SC.Reads.begin(), RE = SC.Reads.end(); RI != RE; ++RI)
  947         for (unsigned WIdx : Writes)
  949         for (unsigned RIdx : Reads)
  956       if (!std::count(ProcIndices.begin(), ProcIndices.end(), 0)) {
  957         for (const CodeGenProcModel &PM : ProcModels) {
  958           if (!std::count(ProcIndices.begin(), ProcIndices.end(), PM.Index))
 1022                    SchedClasses[Idx].ProcIndices.end(),
 1119       for (Record *OldRWDef : SchedClasses[OldSCIdx].InstRWs) {
 1154   for (CodeGenProcModel &ProcModel : ProcModels) {
 1166     for (Record *ItinData : ItinRecords) {
 1200   for (Record *RWDef  : ItinRWDefs) {
 1215   for (CodeGenProcModel &ProcModel : ProcModels) {
 1216     for (Record *Pred : ProcModel.ModelDef->getValueAsListOfDefs("UnsupportedFeatures")) {
 1255       if (!std::count(Matched.begin(), Matched.end(), ItinClassDef))
 1391       for (unsigned SI : ExpandedRWs) {
 1463   for (TransVariant &Variant : Variants) {
 1541     for (IdxIter RWI = SelectedRWs.begin(), RWE = SelectedRWs.end();
 1549                                   ExpandedRWs.begin(), ExpandedRWs.end());
 1558     for (IdxIter RWI = SelectedRWs.begin(), RWE = SelectedRWs.end();
 1565     Seq.insert(Seq.end(), ExpandedRWs.begin(), ExpandedRWs.end());
 1600              IVE = IntersectingVariants.end();
 1628            TransVec.begin() + StartIdx, E = TransVec.end(); I != E; ++I) {
 1639            TransVec.begin() + StartIdx, E = TransVec.end(); I != E; ++I) {
 1675     Preds.erase(std::unique(Preds.begin(), Preds.end()), Preds.end());
 1675     Preds.erase(std::unique(Preds.begin(), Preds.end()), Preds.end());
 1704     Seq.append(WriteSeq.begin(), WriteSeq.end());
 1713     Seq.append(ReadSeq.begin(), ReadSeq.end());
 1722     for (const PredTransition &Trans : LastTransitions)
 1744     RecIter RI = SubUnits.begin(), RE = SubUnits.end();
 1768       if (std::find_first_of(CheckUnits.begin(), CheckUnits.end(),
 1769                              OtherUnits.begin(), OtherUnits.end())
 1770           != CheckUnits.end()) {
 1772         OtherUnits.insert(OtherUnits.end(), CheckUnits.begin(),
 1773                           CheckUnits.end());
 1790   for (Record *RF : RegisterFileDefs) {
 1855   for (Record *WR : WRDefs) {
 1860   for (Record *SWR : SWRDefs) {
 1865   for (Record *RA : RADefs) {
 1870   for (Record *SRA : SRADefs) {
 1879   for (Record *PRG : ProcResGroups) {
 1887   for (Record *PRU : Records.getAllDerivedDefinitions("ProcResourceUnits")) {
 1895   for (CodeGenProcModel &PM : ProcModels) {
 1902                                          RE = PM.WriteResDefs.end();
 1910              RE = PM.ReadAdvanceDefs.end();
 1919              RE = PM.ProcResourceDefs.end();
 1995       if (!std::count(Matched.begin(), Matched.end(), ItinClassDef))
 2036     for (IdxIter SI = ExpandedRWs.begin(), SE = ExpandedRWs.end();
 2128   for (RecIter WritePRI = ProcResDefs.begin(), WritePRE = ProcResDefs.end();
 2154     for (const Record *PredDef : Inst.TheDef->getValueAsListOfDefs("Predicates")) {
utils/TableGen/CodeGenSchedule.h
  361     assert(std::find(Opcodes.begin(), Opcodes.end(), Opcode) == Opcodes.end() &&
  361     assert(std::find(Opcodes.begin(), Opcodes.end(), Opcode) == Opcodes.end() &&
  453   class_iterator classes_end() { return SchedClasses.end(); }
utils/TableGen/CodeGenTarget.cpp
  369       Result.insert(Result.end(), InVTs.begin(), InVTs.end());
  375   Result.erase(std::unique(Result.begin(), Result.end()), Result.end());
  375   Result.erase(std::unique(Result.begin(), Result.end()), Result.end());
  458       InstrsByEnum.begin() + EndOfPredefines, InstrsByEnum.end(),
  483   for (Record *R : Insts) {
utils/TableGen/DAGISelEmitter.cpp
  160   std::stable_sort(Patterns.begin(), Patterns.end(),
utils/TableGen/DAGISelMatcherEmitter.cpp
  269   for (const auto &It : VecIncludeStrings) {
utils/TableGen/DFAEmitter.cpp
   69       for (state_type &ToState : I->second) {
  254   for (Record *R : Records.getAllDerivedDefinitions("GenericAutomaton")) {
  270   for (Record *T : Records.getAllDerivedDefinitions(TransitionClass)) {
  293     for (Transition &T : Transitions) {
utils/TableGen/DFAPacketizerEmitter.cpp
  407   for (Record *R : ProcItinList)
utils/TableGen/ExegesisEmitter.cpp
   74   for (Record *Def : Records.getAllDerivedDefinitions("ProcPfmCounters")) {
   77     for (const Record *IssueCounter :
  165       for (const Record *ICDef : Def->getValueAsListOfDefs("IssueCounters"))
  191   for (Record *Binding : Bindings) {
utils/TableGen/FastISelEmitter.cpp
  832       MI->second.erase(std::unique(MI->second.begin(), MI->second.end()),
  833                        MI->second.end());
utils/TableGen/FixedLenDecoderEmitter.cpp
  693       Table.insert(Table.end(), Buffer, Buffer + Len);
  722   FixupScopeList::iterator Source = TableInfo.FixupStack.end() - 1;
  724   Dest->insert(Dest->end(), Source->begin(), Source->end());
  724   Dest->insert(Dest->end(), Source->begin(), Source->end());
  762   DecoderTable::const_iterator E = Table.end();
 1992   for (const auto &Op : InOutOperands) {
 1994       InsnOperands.insert(InsnOperands.end(),
 1996                           NumberedInsnOperands[Op.second].end());
 2433   for (const auto &NumberedAlias : RK.getAllDerivedDefinitions("AdditionalEncoding"))
utils/TableGen/GICombinerEmitter.cpp
  428   for (const auto &Rule : Rules)
utils/TableGen/GlobalISelEmitter.cpp
  720     return make_range(Matchers.begin(), Matchers.end());
  772     return make_range(Matchers.begin(), Matchers.end());
  971     return make_range(Matchers.begin(), Matchers.end());
 2083     auto I = std::find_if(Operands.begin(), Operands.end(),
 2087     if (I != Operands.end())
 2109   OperandVec::iterator operands_end() { return Operands.end(); }
 2133     for (const auto &Operand : Operands)
 2176                Operands.begin(), Operands.end(), 0,
 2281     for (auto &OM : Operands)
 2296   for (auto &OM : Operands) {
 2873       for (const auto &MergeInsnID : MergeInsnIDs)
 3137   for (const auto &PM : EpilogueMatchers)
 3399   for (Record *Equiv : RK.getAllDerivedDefinitions("GINodeEquiv"))
 3403   for (Record *Equiv : RK.getAllDerivedDefinitions("GIComplexPatternEquiv")) {
 3411  for (Record *Equiv : RK.getAllDerivedDefinitions("GISDNodeXFormEquiv")) {
 4827     for (const auto *Record : MatchedRecords) {
 4843   for (const auto *Record : MatchedRecords) {
 4944   std::stable_sort(InputRules.begin(), InputRules.end(),
 4954   for (Matcher *Rule : InputRules)
 4961   for (Matcher *Rule : OptRules)
 4974   auto E = Matchers.end();
 5066   for (const auto &Rule : Rules)
 5145   for (const auto &TypeObject : TypeObjects) {
 5153   for (const auto &TypeObject : TypeObjects) {
 5163   for (auto &Rule : Rules)
 5180       std::unique(FeatureBitsets.begin(), FeatureBitsets.end()),
 5181       FeatureBitsets.end());
 5185   for (const auto &FeatureBitset : FeatureBitsets) {
 5193   for (const auto &FeatureBitset : FeatureBitsets) {
 5210   for (const auto &Record : ComplexPredicates)
 5233   for (const auto &Record : ComplexPredicates)
 5242   for (const auto &Record : CustomRendererFns)
 5249   for (const auto &Record : CustomRendererFns)
 5446     for (const auto &Rule : Matchers)
 5472   for (const auto &M : Matchers)
 5539   std::stable_sort(Matchers.begin(), Matchers.end(),
 5578   std::generate(LabelIDs.begin(), LabelIDs.end(),
utils/TableGen/InstrDocsEmitter.cpp
  144       for (auto FlagString : FlagStrings) {
  223       for (Record *P : Predicates) {
utils/TableGen/InstrInfoEmitter.cpp
  209     for (const std::string &Info : OperandInfo)
  445   for (const Record *Rec : TIIPredicates) {
  464   for (const Record *Rec : TIIPredicates) {
  489   for (const Record *Rec : TIIPredicates) {
utils/TableGen/OptParserEmitter.cpp
   66                                                 AEPre = APrefixes.end(),
   68                                                 BEPre = BPrefixes.end();
  117   array_pod_sort(Opts.begin(), Opts.end(), CompareOptionRecords);
  127     PrefixKeyT prfkey(prf.begin(), prf.end());
  215     OS << Prefixes[PrefixKeyT(prf.begin(), prf.end())] << ", ";
  313     for (const std::string &Pref : R.getValueAsListOfStrings("Prefixes")) {
utils/TableGen/PredicateExpander.cpp
  410   for (const Record *Delegate : Delegates) {
utils/TableGen/RegisterBankEmitter.cpp
   66     for (const auto &RCDef : getDef().getValueAsListOfDefs("RegisterClasses"))
   73     if (std::find_if(RCs.begin(), RCs.end(),
   76                      }) != RCs.end())
  218   for (const auto &Bank : Banks) {
  227     for (const auto &RCs : RCsGroupedByWord) {
  242   for (const auto &Bank : Banks) {
  259   for (const auto &Bank : Banks)
  284   for (const auto &V : Records.getAllDerivedDefinitions("RegisterBank")) {
  288     for (const CodeGenRegisterClass *RC :
  304   for (const auto &Class : Records.getAllDerivedDefinitions("RegisterClass")) {
  305     for (const auto &Bank : Banks) {
utils/TableGen/RegisterInfoEmitter.cpp
  348   std::stable_sort(DwarfRegNums.begin(), DwarfRegNums.end(),
  352   for (const auto &X : DwarfRegNums) {
  363       DwarfRegNums.begin(), DwarfRegNums.end(),
  367   DwarfRegNums.erase(Last, DwarfRegNums.end());
  390                                    E = DwarfRegNums.end();
  413                I = DwarfRegNums.begin(), E = DwarfRegNums.end(); I != E; ++I) {
  452         std::lower_bound(DwarfRegNums.begin(), DwarfRegNums.end(), Alias,
  456     assert(AliasIter != DwarfRegNums.end() && AliasIter->first == Alias &&
  459         std::lower_bound(DwarfRegNums.begin(), DwarfRegNums.end(), Reg,
  463     assert(RegIter != DwarfRegNums.end() && RegIter->first == Reg &&
  479                I = DwarfRegNums.begin(), E = DwarfRegNums.end(); I != E; ++I) {
 1572     for (Record *CSRSet : CSRSets)
 1585     for (Record *CSRSet : CSRSets)
utils/TableGen/SDNodeProperties.cpp
   17   for (Record *Property : R->getValueAsListOfDefs("Properties")) {
utils/TableGen/SearchableTableEmitter.cpp
  326     std::stable_sort(Entries.begin(), Entries.end(),
  333     for (const auto &Entry : Entries) {
  585     std::stable_sort(Enum.Entries.begin(), Enum.Entries.end(),
  641   for (auto EnumRec : Records.getAllDerivedDefinitions("GenericEnum")) {
  666   for (auto TableRec : Records.getAllDerivedDefinitions("GenericTable")) {
  673     for (const auto &FieldName : Fields) {
  695       std::stable_sort(Table->Entries.begin(), Table->Entries.end(),
  705   for (Record *IndexRec : Records.getAllDerivedDefinitions("SearchIndex")) {
  766     for (const auto &Field :
  777   for (const auto &Enum : Enums)
utils/TableGen/SubtargetEmitter.cpp
  267   for (Record *Processor : ProcessorList) {
  570     assert(ProcItinListsIter != ProcItinLists.end() && "bad iterator");
  630     for (Record *RUDef : ResUnits) {
  794       for (Record *RU : ResUnits) {
  966       RecIter SubI = SubResources.begin(), SubE = SubResources.end();
 1068     for (unsigned W : Writes) {
 1086       for (unsigned WS : WriteSeq) {
 1168         for (Record *VW : ValidWrites) {
 1173       for(unsigned W : WriteIDs) {
 1195                   SchedTables.WriteProcResources.end(),
 1196                   WriteProcResources.begin(), WriteProcResources.end());
 1197     if (WPRPos != SchedTables.WriteProcResources.end())
 1202                                             WriteProcResources.end());
 1208                   SchedTables.WriteLatencies.end(),
 1209                   WriteLatencies.begin(), WriteLatencies.end());
 1210     if (WLPos != SchedTables.WriteLatencies.end()) {
 1221       SchedTables.WriteLatencies.insert(SchedTables.WriteLatencies.end(),
 1223                                         WriteLatencies.end());
 1224       SchedTables.WriterNames.insert(SchedTables.WriterNames.end(),
 1225                                      WriterNames.begin(), WriterNames.end());
 1231                   SchedTables.ReadAdvanceEntries.end(),
 1232                   ReadAdvanceEntries.begin(), ReadAdvanceEntries.end());
 1233     if (RAPos != SchedTables.ReadAdvanceEntries.end())
 1238                                             ReadAdvanceEntries.end());
 1438   for (Record *P : Prologs)
 1550                    ProcIndices.begin(), ProcIndices.end(),
 1575   for (unsigned VC : VariantClasses) {
 1585     for (unsigned PI : ProcIndices) {
 1706   for (Record *R : Features) {
utils/TableGen/SubtargetFeatureInfo.cpp
   30   for (Record *Pred : AllPredicates) {
utils/TableGen/TableGen.cpp
  209     for (Record *Rec : Records.getAllDerivedDefinitions(Class))
  218     for (Record *Rec : Records.getAllDerivedDefinitions("Set")) {
utils/TableGen/WebAssemblyDisassemblerEmitter.cpp
  136           OperandTable.insert(OperandTable.end(), CurOperandList.begin(),
  137                               CurOperandList.end());
  155   for (auto &Op : OperandTable) {
utils/TableGen/X86DisassemblerTables.cpp
  721            E = ModRMDecision.end(); I != E; ++I) {
utils/TableGen/X86EVEX2VEXTablesEmitter.cpp
  198   for (const CodeGenInstruction *EVEXInst : EVEXInsts) {
  213       if (Match != VEXInsts[Opcode].end())
utils/TableGen/X86FoldTablesEmitter.cpp
  617   for (const CodeGenInstruction *MemInst : MemInsts) {
  631     if (Match != OpcRegInsts.end()) {
utils/benchmark/src/benchmark.cc
  212       for (std::thread& thread : pool) thread.join();
  280     stat_reports.insert(stat_reports.end(), additional_run_stats.begin(),
  281                         additional_run_stats.end());
  286   reports.insert(reports.end(), stat_reports.begin(), stat_reports.end());
  286   reports.insert(reports.end(), stat_reports.begin(), stat_reports.end());
  542     for (auto const& benchmark : benchmarks) Out << benchmark.name << "\n";
utils/benchmark/src/benchmark_register.cc
  131   for (std::unique_ptr<Benchmark>& family : families_) {
  153     for (auto const& args : family->args_) {
  272   for (int64_t i : arglist) {
utils/benchmark/src/complexity.cc
  137     for (const auto& fit : fit_curves) {
utils/benchmark/src/csv_reporter.cc
   57     for (auto B = elements.begin(); B != elements.end();) {
   59       if (B != elements.end()) Out << ",";
utils/benchmark/src/statistics.cc
   42   std::nth_element(copy.begin(), center, copy.end());
   50   std::nth_element(copy.begin(), center2, copy.end());
utils/unittest/googlemock/include/gmock/gmock-matchers.h
 3481                            matchers.begin(), matchers.end()));
 3510                            matchers.begin(), matchers.end()));
utils/unittest/googlemock/include/gmock/gmock-spec-builders.h
  903          it != untyped_actions_.end(); ++it) {
 1566          it != specs_to_delete.end(); ++it) {
utils/unittest/googlemock/src/gmock-spec-builders.cc
  452        it != untyped_expectations_.end(); ++it) {
  473        it != untyped_expectations_.end(); ++it) {
utils/unittest/googletest/include/gtest/internal/gtest-param-util.h
  548          test_it != tests_.end(); ++test_it) {
  551                instantiations_.begin(); gen_it != instantiations_.end();
  673          it != test_case_infos_.end(); ++it) {
  686          it != test_case_infos_.end(); ++it) {
  713          it != test_case_infos_.end(); ++it) {
utils/unittest/googletest/src/gtest-death-test.cc
  910     for (std::vector<char*>::iterator i = args_.begin(); i != args_.end();
  916     args_.insert(args_.end() - 1, posix::StrDup(argument));
  924       args_.insert(args_.end() - 1, posix::StrDup(i->c_str()));
utils/unittest/googletest/src/gtest-typed-test.cc
   71        name_it != name_vec.end(); ++name_it) {
utils/unittest/googletest/src/gtest.cc
 1081   std::reverse(best_path.begin(), best_path.end());
 2064       std::find_if(test_properties_.begin(), test_properties_.end(),
 2066   if (property_with_matching_key == test_properties_.end()) {
 4508       std::find_if(test_cases_.begin(), test_cases_.end(),
 4511   if (test_case != test_cases_.end())