Project-Specific clangd Configuration with a Temporary Shell

I've been writing C and some C++ in terminal-based editors for the past five years. By default, clangd searches the current file's parent directories for a compile_commands.json . This becomes annoying when a repository contains several independently built firmware projects that share code and have a common repository root. Each project needs its own compilation database. Replacing a single…