[PATCH] D119825: [clang][lex] Introduce `SearchDirIndex` to usage tracking code

Jan Svoboda via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 15 02:58:27 PST 2022


jansvoboda11 created this revision.
jansvoboda11 added reviewers: ahoppen, Bigcheese, dexonsmith.
Herald added a subscriber: arphaman.
jansvoboda11 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This patch introduces new `SearchDirIndex` type to the internal `HeaderSearch` code that tracks search path usage. The type replaces the current uses of `unsigned` to identify `DirectoryLookup` objects.

In a follow-up patch (D116750 <https://reviews.llvm.org/D116750>), this type will become resilient against insertions "into the middle" of `SearchDirs` as done by `HeaderSearch::AddSearchPath()`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119825

Files:
  clang/include/clang/Lex/HeaderSearch.h
  clang/lib/Lex/HeaderSearch.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119825.408790.patch
Type: text/x-patch
Size: 7349 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220215/ededdb92/attachment-0001.bin>


More information about the cfe-commits mailing list