# clangd config for raylib-jamstack.
#
# Compile flags (include roots + MRB_INT64) live in compile_commands.json, which
# is GENERATED by `ruby tools/gen_compile_commands.rb` (rebuild.sh regenerates it).
# That file sets `directory` = the project root so the relative `-Ivendor/...`
# paths resolve correctly — clangd's fallback (no compile db) resolves them
# against the file's own dir and breaks, hence the generator.
#
# compile_commands.json is gitignored (it holds absolute paths). After a fresh
# clone, run the generator (or rebuild.sh) once before opening C/C++ files.
#
# This targets the DESKTOP build. Web-only headers (<emscripten.h>) are guarded
# by #ifdef __EMSCRIPTEN__ (not defined here), so clangd skips them.
# Sources: mrbgems/{raylib,rmlui,flecs,jolt}/src/* + src/main.c
# (raylib_gen.c is generated — index it for definition nav, never hand-edit it.)

Index:
  # mruby/raylib/etc. are full of macros; skip indexing the C++ standard library
  # to keep the index lean and avoid churn on vendored system headers.
  StandardLibrary: No
