DeclContext: Fix iterator category

This amends 0cb7e7ca0c.
The iterator category of lookup_iterator was changed, but here it stayed
hardcoded as random access. Found while trying to build Clazy.

Differential-Revision: https://reviews.llvm.org/D100590
This commit is contained in:
Björn Schäpers 2021-04-15 20:49:46 +02:00
parent 7946cc404f
commit 4696857733
1 changed files with 1 additions and 1 deletions

View File

@ -2378,7 +2378,7 @@ public:
using udir_iterator_base =
llvm::iterator_adaptor_base<udir_iterator, lookup_iterator,
std::random_access_iterator_tag,
typename lookup_iterator::iterator_category,
UsingDirectiveDecl *>;
struct udir_iterator : udir_iterator_base {