Make clangd check your asserts even with -DNDEBUG
A two-line .clangd file restores autocomplete and type checking inside assert() when your compile_commands.json was generated from a Release build.
A two-line .clangd file restores autocomplete and type checking inside assert() when your compile_commands.json was generated from a Release build.