Use simpler constructor for range adapter.

It is a good idea, it's slightly clearer and simpler. Unfortunately
the headline news is: we save one line!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212641 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Tim Northover 2014-07-09 19:14:34 +00:00
parent 3e8ed89484
commit bdd9df49fc

View File

@ -153,8 +153,7 @@ public:
iterator_range<arg_iterator> filtered(OptSpecifier Id0 = 0U,
OptSpecifier Id1 = 0U,
OptSpecifier Id2 = 0U) const {
return iterator_range<arg_iterator>(filtered_begin(Id0, Id1, Id2),
filtered_end());
return make_range(filtered_begin(Id0, Id1, Id2), filtered_end());
}
/// @}