]> granicus.if.org Git - clang/commit
Implement PreprocessingRecord's and LazyVector's iterators on top of iterator_adaptor...
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 15 Mar 2015 15:27:19 +0000 (15:27 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 15 Mar 2015 15:27:19 +0000 (15:27 +0000)
commit7c070ee11d15b5db74a8616e28a8d9157c401bb2
tree97fceaba4352390e4b76c61d05b945e11b01d83a
parent214d2fdddb02b95597a80379f336ff82f986c4ff
Implement PreprocessingRecord's and LazyVector's iterators on top of iterator_adaptor_base

This basically creates a wrapper around an 'int' that poses as an iterator.
While that looks a bit counter-intuitive it works just fine because iterator
operations and basic integer arithmetic works in exactly the same way.

Remove the manual integer wrapping code and reduce the reliance on iterator
internals in the implementation. No functionality change intended.

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