-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
libcxx and clang-cl Visual Studio IDE integration #128701
Comments
libc++ doesn't have support for MSVC or EDG, so you can't use Visual Studio as an IDE with libc++. You can use VS Code (or any other editor with LSP support) with clangd if you want though. |
Falsenuke. There IS support for both MinGW and MSVC environment. See for example: https://github.com/llvm/llvm-project/blob/main/libcxx/include/__config |
Lines like |
libc++ supports building for MinGW and MSVC environments, but doesn't support Microsoft tools. You can only build libc++ with clang-cl in those environments. |
I'm not talking about the Microsoft tools (as I don't ever ever use them for personal projects), I'm talking about using Clang-CL build tools, libc++ and Visual Studio IDE |
Visual Studio is a Microsoft tool. For it to work properly your standard library needs to support EDG, since that's what IntelliSense uses. We don't have support for EDG, so you can't use libc++ with Visual Studio. |
What if I disable IntelliSense? It is too wasteful on resources. I guess clang-tidy and clangd are a better tool |
I guess you can do that, but I don't know why you'd use Visual Studio at that point. AFAICT you want to disable basically everything that it ships with. Anyways, there is a guide on how to build for MSVC here if that's all you want to do. |
Uh not really. For example Visual Studio provides the best debugging experience on Windows. |
I'm pretty sure you give (at least parts of) that up as well, since there are no pretty printers for libc++'s containers in the visual studio debugger. It might mostly work, but I'm not sure you'll actually get what you want. |
Hi! I would like to know how to use libcxx + clang-cl in Visual Studio 2022 IDE for Windows. Could someone write a guide or something on how to make it possible? Specifying your own VS directories and redirecting them to libcxx path doesn't work and breaks at random places. Thanks!
The text was updated successfully, but these errors were encountered: