[PATCH] D142780: [clang] NFCI: Use FileEntryRef in FileManager's UID mapping

Jan Svoboda via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 27 12:08:04 PST 2023


jansvoboda11 created this revision.
jansvoboda11 added reviewers: rmaz, benlangmuir, bnbarham.
Herald added a subscriber: ributzka.
Herald added a project: All.
jansvoboda11 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Per the `FileManager` documentation, `VirtualFileEntries` is a subset of `SeenFileEntries`. This means we only have to iterate over the latter to create complete UID mapping. This allows us to map UID to `FileEntryRef` instead of `FileEntry`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142780

Files:
  clang/include/clang/Basic/FileManager.h
  clang/lib/Basic/FileManager.cpp
  clang/lib/Serialization/ASTWriter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142780.492876.patch
Type: text/x-patch
Size: 4800 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230127/7a7f28e8/attachment.bin>


More information about the cfe-commits mailing list