Re: [PATCH] Makefile: add support for generating JSON compilation database
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 31, 2020, 04:24 UTC
- Message-ID
- <xmqqsgc3h28s.fsf@gitster.c.googlers.com>
- In-Reply-To
- <20200830221004.GB241078@camp.crustytoothpaste.net>
"brian m. carlson" <sandals@crustytoothpaste.net> writes:
Show 13 quoted lines
> On 2020-08-30 at 19:28:27, Philippe Blain via GitGitGadget wrote: >> From: Philippe Blain <levraiphilippeblain@gmail.com> >> >> Tools based on LibClang [1] can make use of a 'JSON Compilation >> Database' [2] that keeps track of the exact options used to compile a set >> of source files. > > For additional context why this is valuable, clangd, which is a C > language server protocol implementation, can use these files to > determine the flags needed to compile a file so it can provide proper > editor integration. As a result, editors supporting the language server > protocol (such as VS Code, or Vim with a suitable plugin) can provide > better searching, integration, and refactoring tools.
I found that the proposed commit log was very weak to sell the change; some of what you gave above should definitely help strenthen it.
Thanks.