Skip to content

Commit 4696857

Browse files
DeclContext: Fix iterator category
This amends 0cb7e7c. 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
1 parent 7946cc4 commit 4696857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/AST/DeclBase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2378,7 +2378,7 @@ class DeclContext {
23782378

23792379
using udir_iterator_base =
23802380
llvm::iterator_adaptor_base<udir_iterator, lookup_iterator,
2381-
std::random_access_iterator_tag,
2381+
typename lookup_iterator::iterator_category,
23822382
UsingDirectiveDecl *>;
23832383

23842384
struct udir_iterator : udir_iterator_base {

0 commit comments

Comments
 (0)