[ADT] Move drop_begin from iterator_range.h into STLExtras.
authorLang Hames <lhames@gmail.com>
Wed, 13 Nov 2019 17:13:03 +0000 (09:13 -0800)
committerLang Hames <lhames@gmail.com>
Thu, 14 Nov 2019 16:10:59 +0000 (08:10 -0800)
commit058bc4c8d48a1f3644845f4795832391bc5eb9de
treef8fa2ef01abfa5bee5feeea168a74ad6c7c65494
parent23022b93293676890b2c707616aaa8327f0e3708
[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
llvm/include/llvm/ADT/STLExtras.h
llvm/include/llvm/ADT/iterator_range.h
llvm/unittests/ADT/IteratorTest.cpp
llvm/unittests/ADT/STLExtrasTest.cpp