[all-commits] [llvm/llvm-project] 0a92af: Replace uses of std::iterator with explicit using

Hamza Sood via All-commits all-commits at lists.llvm.org
Mon Apr 12 10:47:35 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a92aff721f43406691e38a0965fd0c917121d09
      https://github.com/llvm/llvm-project/commit/0a92aff721f43406691e38a0965fd0c917121d09
  Author: Hamza Sood <hamza_sood at me.com>
  Date:   2021-04-12 (Mon, 12 Apr 2021)

  Changed paths:
    M clang/include/clang/AST/StmtIterator.h
    M clang/include/clang/Rewrite/Core/RewriteRope.h
    M llvm/include/llvm/ADT/BreadthFirstIterator.h
    M llvm/include/llvm/ADT/CoalescingBitVector.h
    M llvm/include/llvm/ADT/DepthFirstIterator.h
    M llvm/include/llvm/ADT/EquivalenceClasses.h
    M llvm/include/llvm/ADT/ImmutableSet.h
    M llvm/include/llvm/ADT/IntervalMap.h
    M llvm/include/llvm/ADT/PostOrderIterator.h
    M llvm/include/llvm/ADT/SparseMultiSet.h
    M llvm/include/llvm/ADT/iterator.h
    M llvm/include/llvm/Analysis/AliasSetTracker.h
    M llvm/include/llvm/Analysis/MemorySSA.h
    M llvm/include/llvm/Analysis/RegionIterator.h
    M llvm/include/llvm/CodeGen/MachineRegisterInfo.h
    M llvm/include/llvm/CodeGen/ScheduleDAG.h
    M llvm/include/llvm/CodeGen/SelectionDAGNodes.h
    M llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
    M llvm/include/llvm/IR/CFG.h
    M llvm/include/llvm/IR/DebugInfoMetadata.h
    M llvm/include/llvm/IR/GetElementPtrTypeIterator.h
    M llvm/include/llvm/IR/Metadata.h
    M llvm/include/llvm/IR/Module.h
    M llvm/include/llvm/IR/Value.h
    M llvm/include/llvm/IR/ValueMap.h
    M llvm/include/llvm/Object/ELFTypes.h
    M llvm/include/llvm/Object/SymbolicFile.h
    M llvm/include/llvm/ProfileData/Coverage/CoverageMappingReader.h
    M llvm/include/llvm/ProfileData/InstrProfReader.h
    M llvm/include/llvm/Support/LineIterator.h
    M llvm/include/llvm/Support/TargetRegistry.h
    M llvm/include/llvm/Support/YAMLParser.h
    M llvm/include/llvm/TextAPI/ArchitectureSet.h
    M llvm/include/llvm/Transforms/Scalar/GVNExpression.h
    M llvm/lib/Analysis/CFGPrinter.cpp
    M llvm/tools/llvm-objdump/MachODump.cpp
    M polly/include/polly/Support/VirtualInstruction.h

  Log Message:
  -----------
  Replace uses of std::iterator with explicit using

This patch removes all uses of `std::iterator`, which was deprecated in C++17.
While this isn't currently an issue while compiling LLVM, it's useful for those using LLVM as a library.

For some reason there're a few places that were seemingly able to use `std` functions unqualified, which no longer works after this patch. I've updated those places, but I'm not really sure why it worked in the first place.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D67586




More information about the All-commits mailing list