diff mbox

gitignore: Add compile_commands.json

Message ID 20170609040412.2471-1-ruscur@russell.cc
State Accepted
Headers show

Commit Message

Russell Currey June 9, 2017, 4:04 a.m. UTC
compile_commands.json is a compilation database used by Clang and some
tagging magic tools.  There's a tool called `bear` which intercepts the
compiler and creates this database of how every file is compiled.  This
enables my editor to highlight which #ifdef blocks actually get compiled,
for example.

Used by rtags: https://github.com/Andersbakken/rtags

Signed-off-by: Russell Currey <ruscur@russell.cc>
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

Comments

Stewart Smith June 9, 2017, 4:35 a.m. UTC | #1
Russell Currey <ruscur@russell.cc> writes:
> compile_commands.json is a compilation database used by Clang and some
> tagging magic tools.  There's a tool called `bear` which intercepts the
> compiler and creates this database of how every file is compiled.  This
> enables my editor to highlight which #ifdef blocks actually get compiled,
> for example.
>
> Used by rtags: https://github.com/Andersbakken/rtags
>
> Signed-off-by: Russell Currey <ruscur@russell.cc>

Cool. I have no idea what crazy editor you use, but I'm sure it looks
excellent on a CRT :)

Merged to master as of 5ed7f51c53fdaea01151d6de18d7b96a9cddee12
diff mbox

Patch

diff --git a/.gitignore b/.gitignore
index a276cc7d..e7fa4a08 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,6 +23,7 @@  GTAGS
 GRTAGS
 GPATH
 cscope.out
+compile_commands.json
 asm/asm-offsets.s
 include/asm-offsets.h
 version.c