[libcxx-commits] [PATCH] D105078: [libcxx][modularisation] properly modularises advance, next, and prev

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 22 01:26:51 PDT 2021


Mordante accepted this revision.
Mordante added a comment.

LGTM, but please hold off landing a short time to give @Quuxplusone an opportunity to respond.



================
Comment at: libcxx/include/module.modulemap:481
       module access                { private header "__iterator/access.h" }
-      module advance               { private header "__iterator/advance.h" }
+      module advance               {
+        private header "__iterator/advance.h"
----------------
cjdb wrote:
> Quuxplusone wrote:
> > zoecarver wrote:
> > > I don't like the formatting here. But whatever. 
> > There should be no need to `export __function_like` here. Then it'll all fit on one line, consistent with all the other lines, so there won't be a formatting problem anymore.
> > I don't like the formatting here. But whatever. 
> 
> Yeah, I didn't notice till after I threw it up on Phab. Will fix before merging.
> 
> > There should be no need to `export __function_like` here. Then it'll all fit on one line, consistent with all the other lines, so there won't be a formatting problem anymore.
> 
> There is a need to export `__function_like`. I've gone into this in other patches before, so I'm not going to repeat myself here.
> There should be no need to `export __function_like` here.
I agree, but clang disagrees. I had the same issue in my format series, before we made these headers private.
I know no other solution than what @cjdb did here.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D105078



More information about the libcxx-commits mailing list