Never happened to me. We're going to need a minimal reproducible example (your directory structure,
compile_commands.json
and/or Clangd config, etc).