Nathan Ridge
Nathan Ridge
> I have another project that I can't produce compile_commands.json. I need to specify the path. can't we specify additional includes path in settings.json? Not in settings.json, but clangd has...
> > Not in settings.json, but clangd has a [config file](https://clangd.llvm.org/config.html) (`.clangd` in the project directory) where you can specify includes, for example: > > Does it supports relative path...
If your per-target CDB (CDB = compilation database = `compile_commands.json`) files correspond to source directories, then you can already achieve this by placing them into the corresponding directories, e.g. ```...
I am curious as to why your combined CDB is 10GB in size. Looking at a CDB of a codebase I work on as a point of reference, it's 30MB...
> Could clangd do fuzzy matching (if a file isn't mentioned in compile commands, look for a peer file's entry)? Clangd already does this. The mechanism is primarily designed with...
I have noticed this as well. It's slightly annoying / counter-intuitive, but I'm not sure what we can do about it, as it's the behaviour that falls out from the...
> * Does Clangd support any method to override or customize code navigation target locations? > > * If not, is there a recommended way to achieve this behavior, for...
Yeah, this is not likely to be a regression. This is likely to be an edge case (C++ has a lot of those related to the preprocessor) that no one...
A workaround would be to disable document links in your editor, for example `"editor.links": false` in vscode. Note that go-to-definition on includes will still work even with editor links disabled.
Another approach could be, if we can reliably determine the beginning of the range, to make the end of the range the end of the line, as I don't think...