Visual Studio Code – How to make clangd to enable header-only library implementation
There is a way of distributing C/C++ libraries as a one header-only file. Library is in one library.h file: header declarations together with implementation hidden under #ifdef LIBRARY_IMPL. You need to create some .c/.cpp file that does #define LIBRARY_IMPL; #include…