[all-commits] [llvm/llvm-project] 51d138: [clang Dependency Scanning] Enhance File Caching D...
Qiongsi Wu via All-commits
all-commits at lists.llvm.org
Tue Jun 24 15:49:01 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 51d1385cdf5e9508dd02a8283443afdd01641a1a
https://github.com/llvm/llvm-project/commit/51d1385cdf5e9508dd02a8283443afdd01641a1a
Author: Qiongsi Wu <qiongsiwu at gmail.com>
Date: 2025-06-24 (Tue, 24 Jun 2025)
Changed paths:
M clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h
M clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
M clang/unittests/Tooling/DependencyScanning/DependencyScanningFilesystemTest.cpp
Log Message:
-----------
[clang Dependency Scanning] Enhance File Caching Diagnostics (#144105)
`DependencyScanningFileSystemSharedCache` can currently report
out-of-date negatively stat cached paths. This PR enhances the reporting
with two modifications.
1. The reported path are now null terminated char arrays instead of
`StringRef`s. This way the API's user can avoid copying `StringRef`s to
other containers because the char arrays can be used directly.
2. The API now reports out-of-date cache entry due to file size changes.
Specifically, we check each file's cached size against the size of the
same file on the underlying FS. If the sizes are different, diagnostics
will be reported.
rdar://152247357
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list