[PATCH] D143414: [clang] refactor FileManager::GetUniqueIDMapping

Richard Howell via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 6 09:22:02 PST 2023


rmaz created this revision.
Herald added a subscriber: mgrang.
Herald added a project: All.
rmaz requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Refactor `FileManager::GetUniqueIDMapping` to populate an array of 
`OptionalFileEntryRefDegradesToFileEntryPtr` instead of UID to 
`FileEntry *`. This should allow the path serialization of input files
to use the paths used when looking up a file entry, instead of the 
last reference.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143414

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: D143414.495158.patch
Type: text/x-patch
Size: 4738 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230206/45bc2028/attachment.bin>


More information about the cfe-commits mailing list