From 83c88c1dc0e41c94be399ea96cb39a2b50f9df09 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Thu, 25 May 2023 14:13:00 +0200 Subject: [PATCH] .gitignore: ignore compile_commands.json and .cache `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. --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 12b1651..b8711a0 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,6 @@ mspdebug mspdebug.exe inst/ config.mk +# temporary data for better code insight, e.g. when using bear and clangd +/compile_commands.json +/.cache