[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Make autoconf and automake generate compile_commands.json for integr
Re: Make autoconf and automake generate compile_commands.json for integration with other build systems and IDEs
Sat, 28 Jul 2018 16:41:22 +0300
сб, 28 июл. 2018 г., 15:27 Doron Behar <address@hidden>:
> On Tue, Jul 24, 2018 at 10:47:20PM +0300, Basin Ilya wrote:
> > Hi Doron.
> > The list of source files and resulting object files isn't known until
> `make` is launched. The IDE should be ready to support a constantly
> updating compilation database.
> > It is possible to create a wrapper program for GNU Make that will do the
> job. It won't be part of Make, you will have to install it separately. An
> IDE can be configured to run the wrapper instead of the real Make binary.
> > The wrapper can handle the shell commands executed by Make. For
> instance, it can pass these commands and other information to another
> component that will update the compilation database.
> > I have a script that stores the needed info in a binary format, but
> somebody has to write at least the part that reads the binary data from the
> standard input and converts it to JSON.
> I wonder how this script compares to the tool I mentioned called
> `scan-build` (https://github.com/neomutt/neomutt/issues/1014). Could you
> please share it with us?