]> granicus.if.org Git - clang/commit
[ADT] Change iterator_adaptor_base's default template arguments to forward more under...
authorTim Shen <timshen91@gmail.com>
Tue, 9 Aug 2016 20:22:55 +0000 (20:22 +0000)
committerTim Shen <timshen91@gmail.com>
Tue, 9 Aug 2016 20:22:55 +0000 (20:22 +0000)
commitcd5c8a487b573ac8c8bfdeb8ae596124d3ebc11a
treee6909407061893835716bafdb8b70ba6211e397d
parent0221f4a136a57a2db2193f03975dab0464600ba0
[ADT] Change iterator_adaptor_base's default template arguments to forward more underlying typedefs

Summary:
The corresponding LLVM change: D23217.

LazyVector::iterator breaks, because int isn't an iterator type.
Since iterator_adaptor_base shouldn't be blamed to break at the call to
iterator_traits<int>::xxx, I'd rather "fix" LazyVector::iterator.

The perfect solution is to model "relative pointer", but it's beyond the goal of this patch.

Reviewers: chandlerc, bkramer

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@278156 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ExternalASTSource.h