How can I specify the C++ version in VS Code's clangd?

50 views Asked by At

VS Code keeps recommending C++17 features in my C++14 project, such as

Function xxx should be marked [[nodiscard]] (clang-tidy)

I tried setting this:

clang-tidy extra args

but this seems to be unrelated to the clangd extension which is installed in addition to C/C++. And as these clang-tidy hints briefly disappear when I restart clangd, I suspect they originate from that. How can I tell it to use C++14 for this project?

0

There are 0 answers