Bug 246984

Summary: generate-compile-commands --delete-invalid
Product: WebKit Reporter: Gerald Squelart <g_squelart>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Minor CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 246988    

Description Gerald Squelart 2022-10-24 20:01:35 PDT
Sometimes after some builds (probably failed or interrupted ones), `generate-compile-commands` starts listing invalid-json files.
These don't go away between rebuilds, potentially adding lots of lines obscuring the results from the above build.
I would like an option `--delete-invalid` to remove those invalid files, so that they won't keep appearing in subsequent builds.
Comment 1 Radar WebKit Bug Importer 2022-10-24 20:01:50 PDT
<rdar://problem/101526717>
Comment 2 Gerald Squelart 2022-10-24 20:08:54 PDT
Pull request: https://github.com/WebKit/WebKit/pull/5731
Comment 3 EWS 2022-10-24 21:37:06 PDT
Committed 255942@main (a74c9a0a746b): <https://commits.webkit.org/255942@main>

Reviewed commits have been landed. Closing PR #5731 and removing active labels.