diff options
author | Qiongsi Wu <qiongsiwu@gmail.com> | 2025-06-24 15:48:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-24 15:48:39 -0700 |
commit | 51d1385cdf5e9508dd02a8283443afdd01641a1a (patch) | |
tree | 7ef1b0849bba03b015692482bb34cbd4bc6b89d1 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 48a21e69159a7e6698cde380f6d64274c6569f29 (diff) | |
download | llvm-51d1385cdf5e9508dd02a8283443afdd01641a1a.zip llvm-51d1385cdf5e9508dd02a8283443afdd01641a1a.tar.gz llvm-51d1385cdf5e9508dd02a8283443afdd01641a1a.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions