mirror of
https://github.com/apple/swift.git
synced 2026-10-30 22:15:52 +01:00
Carry the directories each Clang module depends on the listing of (ModuleDeps::DirectoryDeps) through the scanner, the serialized scanner cache, the JSON output, and libSwiftScan (swiftscan_clang_detail_get_directory_deps). Clients report the paths that changed since the previous build through swiftscan_scanner_add_invalidated_paths, before the scanner's first scan. They are forwarded to the Clang scanning service so that scanning modules depending on them are rebuilt, and a Clang module loaded from a serialized scanner cache is treated as out of date if any of its directory dependencies were reported. rdar://189838107 Assisted-by: Claude Code: opus-5.5