-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Clang-CL 15.x reporting warning when using /clang:-xc #59307
Comments
As a workaround, the following should work on both old and new versions of clang-cl:
|
@Fznamznon -- I assigned this one to you because I figured it was one you might be able to knock out pretty quickly, but if you don't feel like it, feel free to unassign yourself. :-) |
For some reason |
Ah, I see. In cl mode |
@MaskRay -- is it expected that all |
In case silencing the warning in cl mode sounds okay-ish, I've prepared https://reviews.llvm.org/D142757 . Otherwise if we want to emit a correct warning in cl mode, we need to change how to |
The error is emitted as intended. So simply ignoring the error in CL mode (https://reviews.llvm.org/D142757) looks wrong to me. |
Unfortunately there is no coresponding flag to specify C++20 Modules. |
OS: Windows
Unlike previous versions, when running clang-cl.exe version 15.x as follows from a cmd.exe prompt:
It outputs the following warning:
clang-cl: error: '-x c' after last input file has no effect [-Werror,-Wunused-command-line-argument]
Expected outcome is no error, and dumping of preprocessor variables.
Among other things, this prevents clang-cl 15.x from being used by Visual Studio Code's C++ extension for Intellisense.
The text was updated successfully, but these errors were encountered: