this post was submitted on 15 Aug 2023
8 points (90.0% liked)
C++
1763 readers
1 users here now
The center for all discussion and news regarding C++.
Rules
- Respect instance rules.
- Don't be a jerk.
- Please keep all posts related to C++.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If you use meson or cmake, you can generate a compile_commands.json which you can link from the build dir into your source dir. If not you cam create a local config file for clangd https://stackoverflow.com/questions/73758291/is-there-a-way-to-specify-the-c-standard-of-clangd-without-recompiling-it
This,
.clangd
, file in the root of the project directory worked:Thank you!