From f7e7c1d08bbd303bdca3b69247e28a9422d91884 Mon Sep 17 00:00:00 2001 From: Thanos Makatos Date: Tue, 23 Jun 2026 12:23:16 +0100 Subject: [PATCH] Add .clangd to point at Meson's compile_commands.json clangd needs a compile_commands.json to properly work. This also enables source navigation in Cursor when using the C/C++ plugin. Signed-off-by: Thanos Makatos --- .clangd | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .clangd diff --git a/.clangd b/.clangd new file mode 100644 index 00000000..75ad2722 --- /dev/null +++ b/.clangd @@ -0,0 +1,7 @@ +# clangd configuration. +# +# Point clangd at the Meson-generated compile_commands.json so it works +# without a symlink at the repo root. Run `make` (or `meson setup build`) +# once and clangd will pick up per-file flags automatically. +CompileFlags: + CompilationDatabase: build