-
Notifications
You must be signed in to change notification settings - Fork 60
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
Cannot suppress driver diagnostics #1142
Comments
I have the same problem |
From clangd/vscode-clangd#327, it said we can suppress these by adding to your CompileFlags:
Remove:
- -forward-unknown-to-host-compiler
- --generate-code* |
I met the same question because one of my CompileFlags:
Remove: -fno-lifetime-dse in Finally, I solved it by creating another So for me, it's because I use |
|
The suppression filter is added after we run the driver, so driver diagnostics (e.g.
drv_unknown_argument
) cannot be suppressed.Discussed in #1135
Originally posted by alexcocinda May 2, 2022
I am getting these two errors, but my project builds fine:
I tried to disable them with the following
.clangd
config:I am running on Ubuntu 20.04 with clangd 14.0.0. Am I missing something?
The text was updated successfully, but these errors were encountered: