[webkit-dev] Using compile_command.json in sources that go into Unified Sources
Adrian Perez de Castro
aperez at igalia.com
Mon Mar 26 06:30:58 PDT 2018
On Mon, 26 Mar 2018 07:54:38 -0500, Michael Catanzaro <mcatanzaro at igalia.com> wrote:
> On Sat, Mar 24, 2018 at 6:03 PM, Cadu Bentzen <cadubentzen at gmail.com>
> wrote:
> > I included calling this script at the end of the build-webkit (under
> > a command line option) script. So far it has work for me, but I
> > wonder if this is the right approach or if you already solved that in
> > another way.
>
> Is compile_commands.json intended only for use by IDEs? If it's not
> going to break anything, then this seems reasonable to me. I would go
> ahead and submit a patch for review on bugs.webkit.org, and leave a
> link to it in this thread.
At least I know also that the “scan-build” implementation in Python [1] uses
the compilation database (in my experience it is easier to get running than
Clang's, and is what I have used in the past to run the Clang analyzer on the
WebKit code).
I *think* that many tools like scan-build should work equally well regardless
of whether the compilation database contains the unifies or the individual
sources. But of course it's difficult to predict what every other tool will
do, so it's impossible to be sure :-\
Didn't we have a CMake flag that disabled unified sources completely? Maybe
people who want to use “compile_commands.json” with IDEs can just use that…
Cheers,
--
Adrián 🎩
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20180326/10098f72/attachment.bin>
More information about the webkit-dev
mailing list