Bug 260218

Summary: [CMake] Generate a usable compile_commands.json
Product: WebKit Reporter: Patrick Griffis <pgriffis>
Component: CMakeAssignee: Patrick Griffis <pgriffis>
Status: RESOLVED FIXED    
Severity: Normal CC: Hironori.Fujii
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=260769
https://bugs.webkit.org/show_bug.cgi?id=260841

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 ..."