git: 73570795e790 - main - gitignore: Add compile_commands.json

Ka Ho Ng khng at FreeBSD.org
Fri Jun 4 08:06:41 UTC 2021


The branch main has been updated by khng:

URL: https://cgit.FreeBSD.org/src/commit/?id=73570795e7906ec555b37ff7e20e5d5d559ccdad

commit 73570795e7906ec555b37ff7e20e5d5d559ccdad
Author:     Ka Ho Ng <khng at FreeBSD.org>
AuthorDate: 2021-06-04 08:04:04 +0000
Commit:     Ka Ho Ng <khng at FreeBSD.org>
CommitDate: 2021-06-04 08:06:32 +0000

    gitignore: Add compile_commands.json
    
    The purpose of this change is to make sure no one would accidentally
    include their own workspace leftover into a commit.
    
    compile_commands.json is a generated file which contains build commands.
    The file is consumed by Language Servers such as clangd and ccls.
    
    Sponsored by:   The FreeBSD Foundation
    Reviewed by:    lwhsu
    Differential Revision:  https://reviews.freebsd.org/D26514
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.gitignore b/.gitignore
index c674e06fda50..2e735237b30f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -25,3 +25,4 @@ cscope.files
 cscope.in.out
 cscope.out
 cscope.po.out
+compile_commands.json


More information about the dev-commits-src-main mailing list