The return types of some CachedFileSystemEntry member function are needlessly complex.
This patch attempts to simplify the code by unwrapping cached entries that represent errors early, and then asserting !isError().
Paths
| Differential D115935
[clang][deps] NFC: Simplify handling of cached FS errors ClosedPublic Authored by jansvoboda11 on Dec 17 2021, 5:19 AM.
Details Summary The return types of some CachedFileSystemEntry member function are needlessly complex. This patch attempts to simplify the code by unwrapping cached entries that represent errors early, and then asserting !isError().
Diff Detail
Unit TestsFailed
Event Timelinejansvoboda11 created this revision. jansvoboda11 added a child revision: D114966: [clang][deps] Ensure filesystem cache consistency.Dec 17 2021, 5:34 AM This revision is now accepted and ready to land.Dec 20 2021, 9:32 AM This revision was landed with ongoing or failed builds.Jan 21 2022, 4:04 AM Closed by commit rGced077e1ba52: [clang][deps] NFC: Simplify handling of cached FS errors (authored by jansvoboda11). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 395101 clang/include/clang/Tooling/DependencyScanning/DependencyScanningFilesystem.h
clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
|