Skip to content

Clang-CL 15.x reporting warning when using /clang:-xc #59307

Closed
@dgehriger

Description

@dgehriger

OS: Windows

Unlike previous versions, when running clang-cl.exe version 15.x as follows from a cmd.exe prompt:

clang-cl /WX /clang:-xc /clang:-E /clang:-dM nul

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.

Metadata

Metadata

Assignees

Labels

clang-cl`clang-cl` driver. Don't use for other compiler partsconfirmedVerified by a second party

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions