Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5237eb1d8302b04c9e8fe380f173be9492657620
https://github.com/WebKit/WebKit/commit/5237eb1d8302b04c9e8fe380f173be9492657620
Author: Geoffrey Garen <[email protected]>
Date: 2026-06-29 (Mon, 29 Jun 2026)
Changed paths:
M Tools/Scripts/analyze-safer-cpp
Log Message:
-----------
analyze-safer-cpp: Improve header-only analysis
https://bugs.webkit.org/show_bug.cgi?id=318120
rdar://180945755
Reviewed by David Kilzer.
* Tools/Scripts/analyze-safer-cpp: When a header changes, instead of searching
the whole project for a .cpp file that #includes it (which is slow, and can
fail), just compile the header stand-alone. .h files don't get entries in
compile_commands.json, so just borrow the compiler flags from any other file
in the same folder.
We still prefer to compile a related .cpp file if we can find one trivially
because the .cpp file may instantiate templates, revealing failures that weren't
visible in the template definitions alone.
Canonical link: https://commits.webkit.org/316054@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications