[libcxx-commits] [PATCH] D132327: [libc++] Implement P2445R1 (`std::forward_like`)

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 29 09:45:16 PDT 2022


Mordante added a comment.

I glossed over the code and don't see any obvious issues. However I didn't do a real review.



================
Comment at: libcxx/test/std/utilities/utility/forward_like/forward_like.msvc/test.pass.cpp:12
+// Includes Microsoft's test that tests the entire header.
+
+#include "test.cpp"
----------------
fsb4000 wrote:
> philnik wrote:
> > fsb4000 wrote:
> > > huixie90 wrote:
> > > > Is this test supposed to be running on gcc/clang? I am slightly confused because it is in "msvc" folder
> > > Yes, all configurations should be tested.
> > > 
> > > I used https://github.com/llvm/llvm-project/tree/main/libcxx/test/std/utilities/charconv/charconv.msvc as a naming example.
> > > 
> > > I opened `gcc 12/ C++ latest` log: https://buildkite.com/llvm-project/libcxx-ci/builds/13210#0182deee-3853-484d-a646-79afa1e27420 and I found:
> > > 
> > > ```
> > > ... cfg.in :: std/utilities/utility/forward_like/forward_like.msvc/test.pass.cpp
> > >  98% [=========================================================--(B](B ETA: 00:00:04
> > > ```
> > > and `C++2b` log: https://buildkite.com/llvm-project/libcxx-ci/builds/13210#0182deee-3841-41d9-8725-06f9a249e560
> > > 
> > > ```
> > > ... cfg.in :: std/utilities/utility/forward_like/forward_like.msvc/test.pass.cpp
> > >  98% [=========================================================--(B](B ETA: 00:00:08
> > > ```
> > This way to include the test seems quite weird to me. Why can't we just name the MSVC test `test.pass.cpp`?
> Sure, we can.
> I did similar to https://github.com/llvm/llvm-project/blob/main/libcxx/test/std/utilities/charconv/charconv.msvc/test.pass.cpp
> 
> If we name the test `test.pass.cpp` should I add LLVM licence comment too?
> This way to include the test seems quite weird to me. Why can't we just name the MSVC test `test.pass.cpp`?

I agree it's weird but we used this method before and it minimized the differences between our version and upstream.

I still want to look at a way to include more MSVC STL tests in our repository; however that is very low on my todo list.


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

https://reviews.llvm.org/D132327



More information about the libcxx-commits mailing list