-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<ranges>
: namespace views
not available with clang-cl
#2232
Comments
It seems that clang-cl defines ... and clang 12 maps |
Hi I put the origional community issue in. So does this mean it will all just work when VS bumps its clang to 13. Looks like the're pretty close to releaseing it https://lists.llvm.org/pipermail/llvm-dev/2021-September/152932.html. I'm assume clang-cl will be changed at the same time. In the mean time should I expect BTW I was trying to find a was to use the libc++ standard library with clang-cl, is that possible and if so is there documentation on how? |
We ship clang updates in VS fairly quickly, but I can't speculate on precisely when or if Clang and VS releases will happen to line up. Generally if Clang ships while VS XX.Y is in preview, we'll update clang either in XX.Y or XX.(Y+1). (clang, clang++, and clang-cl are literally the same program which changes its behavior depending on the name you invoke it by.)
Yes, manually defining
Microsoft doesn't support using libc++ on Windows. My understanding is that libc++ has at least partial / in progress support for Windows, you'd have to ask them how mature it is or how to use it since it doesn't ship in the LLVM windows binary packages. |
Welp, this is no longer blocked on Clang 13, which has shipped, it's now blocked in 17.2p2. Clang 13 added This will be corrected either when LLVM 14 ships - which will correctly define the corresponding values of Sorry for yet more delay here, clang-cl users. I miscommunicated our requirements to the clang-cl devs in the LLVM 13 cycle, but I'll be more careful next time. |
Just to make sure I understand
|
Close. 17.1p2 ships Clang 13, but you still need to add |
I think I got confused by the Changelog https://github.com/microsoft/STL/wiki/Changelog. |
The Changelog is a list of changes to the STL specifically, not to Visual Studio in general. Our dependencies generally track what has shipped in the most recent VS preview. So when VS ships Clang 13 (in some preview) we will (soon) update the STL's required Clang version to Clang 13. If the VS change happens late in a particular cycle - as is the case here - the first STL to ship that requires Clang X may be a full minor release later than the VS that ships Clang X. |
VS 2022 17.2 Preview 2 is now available, so this is unblocked. I believe the remaining work needed is to remove |
IIRC, Clang configurations that currently specify |
We now recognize Clang's `/std:c++20` and `/std:c++latest` modes without the "`/std:c++latest` with or without `/D_HAS_CXX23`" hack. Fixes microsoft#2232
I'm still having to resort to using |
This is certainly unexpected. Are you certain you don't have another older clang in your path, maybe from a separate LLVM installation? Please open a new issue, and check what output |
Describe the bug
<ranges>
: namespaceviews
not available with clang-clCommand-line test case
Expected behavior
clang-cl should compile it
STL version
Additional context
This is also tracked as DevCom-1544711
The text was updated successfully, but these errors were encountered: