Skip to content
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

No intellisense when using Clang-CL 15 with /WX #10221

Closed
dgehriger opened this issue Dec 2, 2022 · 5 comments
Closed

No intellisense when using Clang-CL 15 with /WX #10221

dgehriger opened this issue Dec 2, 2022 · 5 comments
Assignees
Labels
bug Feature: Configuration An issue related to configuring the extension or IntelliSense fixed Check the Milestone for the release in which the fix is or will be available. Language Service quick fix
Milestone

Comments

@dgehriger
Copy link

Environment

  • OS and Version: Windows 10
  • VS Code Version: 1.73.1
  • C/C++ Extension Version: v1.13.5

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.

Bug Summary and Steps to Reproduce

Use clang-cl version 15 and observe missing Intellisense

Expected behavior

Intellisense working

Code sample and Logs

N/A

Screenshots

No response

Additional context

No response

@sean-mcmanus sean-mcmanus added bug Language Service Feature: Configuration An issue related to configuring the extension or IntelliSense labels Dec 2, 2022
@sean-mcmanus sean-mcmanus added this to the 1.14.0 milestone Dec 2, 2022
@sean-mcmanus
Copy link
Collaborator

Thanks for reporting this.

@dgehriger
Copy link
Author

See also llvm/llvm-project#59307

@sean-mcmanus
Copy link
Collaborator

Can you remove the "/WX" argument? That is unneeded when configuring IntelliSense.

@sean-mcmanus sean-mcmanus self-assigned this Dec 28, 2022
@sean-mcmanus
Copy link
Collaborator

We have a potential fix (just skipping the /WX which we already do for the clang equivalent -Werror).

@sean-mcmanus sean-mcmanus added the fixed Check the Milestone for the release in which the fix is or will be available. label Jan 4, 2023
@sean-mcmanus sean-mcmanus changed the title No intellisense when using Clang-CL 15 No intellisense when using Clang-CL 15 with /WX Jan 4, 2023
@sean-mcmanus
Copy link
Collaborator

The fix is available with 1.14.0 (pre-release): https://github.com/microsoft/vscode-cpptools/releases/tag/v1.14.0

@github-actions github-actions bot locked and limited conversation to collaborators Apr 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Feature: Configuration An issue related to configuring the extension or IntelliSense fixed Check the Milestone for the release in which the fix is or will be available. Language Service quick fix
Projects
None yet
Development

No branches or pull requests

2 participants