[PATCH] D100590: DeclContext: Fix iterator category

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 15 22:22:07 PDT 2021


HazardyKnusperkeks updated this revision to Diff 337985.
HazardyKnusperkeks added a comment.

Trigger build.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100590/new/

https://reviews.llvm.org/D100590

Files:
  clang/include/clang/AST/DeclBase.h


Index: clang/include/clang/AST/DeclBase.h
===================================================================
--- clang/include/clang/AST/DeclBase.h
+++ clang/include/clang/AST/DeclBase.h
@@ -2378,7 +2378,7 @@
 
   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 {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100590.337985.patch
Type: text/x-patch
Size: 564 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210416/29ccb86d/attachment.bin>


More information about the cfe-commits mailing list