Bug 260218 - [CMake] Generate a usable compile_commands.json
Summary: [CMake] Generate a usable compile_commands.json
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CMake (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Patrick Griffis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-15 13:14 PDT by Patrick Griffis
Modified: 2023-08-28 21:26 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Griffis 2023-08-15 13:14:06 PDT
When using unified builds CMake generates a compile_commands.json that isn't useful by many tools as it lacks much of the sources.

This adds a script to expand UnifiedSources into the full list of sources. It outputs it to webkit_compile_commands.json.
Comment 1 Patrick Griffis 2023-08-15 13:14:52 PDT
Pull request: https://github.com/WebKit/WebKit/pull/16718
Comment 2 EWS 2023-08-16 08:23:59 PDT
Committed 266947@main (5c9dd47913bc): <https://commits.webkit.org/266947@main>

Reviewed commits have been landed. Closing PR #16718 and removing active labels.
Comment 3 Fujii Hironori 2023-08-28 21:26:09 PDT
rewrite-compile-commands outputs annoying messages.
Filed: Bug 260841 – [CMake] rewrite-compile-commands reports a lot of warning messages "Failed to find ..."