Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2a76f2766f524a82097e14c97691eadc366bde94
      
https://github.com/WebKit/WebKit/commit/2a76f2766f524a82097e14c97691eadc366bde94
  Author: Claudio Saavedra <[email protected]>
  Date:   2026-09-28 (Mon, 28 Sep 2026)

  Changed paths:
    M Tools/Scripts/analyze-safer-cpp
    M Tools/Scripts/webkitpy/safer_cpp/analyze_safer_cpp_unittest.py

  Log Message:
  -----------
  analyze-safer-cpp: Support the GTK and WPE ports on Linux
https://bugs.webkit.org/show_bug.cgi?id=325489

Reviewed by Ryosuke Niwa.

Off macOS, resolve the analyzer from $CXX, the compiler recorded in the
compile database, or the clang++ names in PATH, choosing the one that
implements the most SaferCPP checkers, instead of looking for Xcode
toolchains and offering the swift.org download. Add --gtk and --wpe to
locate the build-webkit tree through webkit-build-directory, so
set-webkit-configuration and WEBKIT_OUTPUTDIR are honored. Without a
build location on Linux, name the flags to pass instead of failing on
the cmake-mac default.

* Tools/Scripts/analyze-safer-cpp:
(find_linux_clang):
(resolve_analyzer_clang):
(parse_args):
(resolve_port_build_dir):
(main):
* Tools/Scripts/webkitpy/safer_cpp/analyze_safer_cpp_unittest.py:
(write_fake_clang):
(AnalyzeSaferCppLinuxTest):
(AnalyzeSaferCppLinuxTest.test_picks_the_clang_with_the_most_checkers):

Canonical link: https://commits.webkit.org/322070@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to