llvm-project/clang/lib/Tooling/DependencyScanning
Duncan P. N. Exon Smith cf593d224c SourceManager: getFileEntryRefForID => getNonBuiltinFilenameForID, NFC
`SourceManager::getFileEntryRefForID`'s remaining callers just want the
filename component, which is coming from the `FileInfo`. Replace the API
with `getNonBuiltinFilenameForID`, which also removes another use of
`FileEntryRef::FileEntryRef` outside of `FileManager`.

Both callers are collecting file dependencies, and one of them relied on
this API to filter out built-ins (as exposed by
clang/test/ClangScanDeps/modules-full.cpp). It seems nice to continue
providing that service.

Differential Revision: https://reviews.llvm.org/D89508
2020-10-22 22:20:50 -04:00
..
CMakeLists.txt [clang][clang-scan-deps] Add support for extracting full module dependencies. 2019-10-30 15:27:27 -07:00
DependencyScanningFilesystem.cpp Lex: Avoid MemoryBuffer* key in ExcludedPreprocessorDirectiveSkipMapping, NFC 2020-10-12 17:39:01 -04:00
DependencyScanningService.cpp [clang][clang-scan-deps] Add support for extracting full module dependencies. 2019-10-30 15:27:27 -07:00
DependencyScanningTool.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
DependencyScanningWorker.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
ModuleDepCollector.cpp SourceManager: getFileEntryRefForID => getNonBuiltinFilenameForID, NFC 2020-10-22 22:20:50 -04:00