Issues:
- On Windows, the Arduino-generated
compile_commands.jsonmay be missing the.exeextension, which causesclangdto not be able to query the compiler driver.postbuild.jsscript appends the extension for now. - If using
gcc-arm-none-eabi-7-2017-Q4or earlier, there is a bug where the extracted system includes (which are passed to the compiler via the-isystemflag) will have C linkage instead of C++ linkage, which causes a lot of compiler warnings, especially throughclangdintellisense... ** A drop-in replacement ofgcc-arm-none-eabi-10-2020-q4-majorinto the toolchain folder fixes this issue... or you can wait for Arduino to update the toolchain.