-
Notifications
You must be signed in to change notification settings - Fork 461
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
How can I clean these error for C++20 #614
Comments
See #585 (comment). Please set |
我已经设置了 |
CompileFlags:
Add: [-std=c++20, -fmodules] |
Yep, Apple Clang does not support most of the C++20 features.
Assign |
"--query-driver=<add-your-path-here>", For example, on my Intel mac: "--query-driver=/usr/local/opt/llvm/bin/clang++", |
After checking the newsletters for
I don't think this is something we can address, and after checking other IDEs (e.g., VSCode) that use open-source language server implementations (rather than builtin servers such as CLion), their support for modules is also incomplete (although some have chosen to add several tweaks to cover a small fraction of regular use cases, they are still bug prone due to limitations in the compiler's underlying implementation). It should be noted that being able to compile is not equivalent to being able to perform static analysis - only adding a new specialized parser for the existing ASTs would solve this problem. We suggest using such features at least after full support for |
okay...thx:( |
@Penguin-SAMA Are you slove this problem? |
In your project root path, create a file named CompileFlags:
Add: [-std=c++20] |
Version confirmation
Following prerequisites
Neovim version
NVIM v0.9.0-dev-1312+g908494889
Operating system/version
macos 13.3
Terminal name/version
iTerm2 3.4.19
$TERM environment variable
No response
Branch info
main (Default/Latest)
Fetch Preferences
SSH (use_ssh = true)
Affected language servers
clangd
How to reproduce the issue
编写c++20的新特性代码就会有这些报错,但是电脑自带的clangd以及lsp下载的clangd版本都是支持编译c++20的,有什么解决办法吗?
Actual behavior
Expected behavior
No response
Support info
Logs
Additional information
No response
The text was updated successfully, but these errors were encountered: