[all-commits] [llvm/llvm-project] 058bc4: [ADT] Move drop_begin from iterator_range.h into S...

lhames via All-commits all-commits at lists.llvm.org
Thu Nov 14 08:12:02 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 058bc4c8d48a1f3644845f4795832391bc5eb9de
      https://github.com/llvm/llvm-project/commit/058bc4c8d48a1f3644845f4795832391bc5eb9de
  Author: Lang Hames <lhames at gmail.com>
  Date:   2019-11-14 (Thu, 14 Nov 2019)

  Changed paths:
    M llvm/include/llvm/ADT/STLExtras.h
    M llvm/include/llvm/ADT/iterator_range.h
    M llvm/unittests/ADT/IteratorTest.cpp
    M llvm/unittests/ADT/STLExtrasTest.cpp

  Log Message:
  -----------
  [ADT] Move drop_begin from iterator_range.h into STLExtras.

Summary:
drop_begin depends on adl_begin/adl_end, which are defined in STLExtras.h,
but we can't just #include STLExtras.h in iterator_range.h as that would
introduce a circular reference (STLExtras.h already depends on
iterator_range.h). The simplest solution is to move drop_begin into
STLExtras.h, which is a reasonable home for it anyway.

Reviewers: dblaikie

Subscribers: dexonsmith, ributzka, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list