Closed shaojunjie0912 closed 5 months ago
afaik clangd
doesn't support setting driver options thru command line options atm. But u can create a user or project config (see clangd:Configuration#files) and fill in the following content to make it work:
CompileFlags:
Add: [-std=c++20] # or -std=gnu++20
Do note that support for c++20
by many open-source LSP vendors, including clangd
, is still in the alpha stage, and many features that require compiler support have not (yet) been implemented. You may encounter a bunch of errors and it's expected, see my reply here.
Thank you! @Jint-lzxy I will have a try.
It works! Thanks a lot.
Hi, I have some problems with modifying the
clangd.lua
to make it support C++ 20.How can I modify this?