Skip to content

Conversation

maribu
Copy link

@maribu maribu commented May 25, 2023

compile_commands.json (e.g. as generated with bear -- make) contains the exact commands used for building the binary including compiler flags such as include paths and warnings. It is useful for LLVM based tools for code completion / linting / ... such as clangd, as they then find the headers included. There is little reason in tracking this file, as it can be generated from the Makefile with bear.

.cache is a folder generated by clangd to speed up code completion, linting, etc.

`compile_commands.json` (e.g. as generated with `bear -- make`) contains
the exact commands used for building the binary including compiler
flags such as include paths and warnings. It is useful for LLVM based
tools for code completion / linting / ... such as clangd, as they then
find the headers included. There is little reason in tracking this file,
as it can be generated from the `Makefile` with `bear`.

`.cache` is a folder generated by `clangd` to speed up code completion,
linting, etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant