[PATCH] D123854: [clang][lex] NFCI: Use DirectoryEntryRef in FrameworkCacheEntry

Ben Barham via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 15 09:16:25 PDT 2022


bnbarham accepted this revision.
bnbarham added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/lib/Lex/HeaderSearch.cpp:584
   // If it is known and in some other directory, fail.
-  if (CacheEntry.Directory && CacheEntry.Directory != getFrameworkDir())
+  if (CacheEntry.Directory && *CacheEntry.Directory != getFrameworkDir())
     return None;
----------------



================
Comment at: clang/lib/Lex/HeaderSearch.cpp:607
     // If the framework dir doesn't exist, we fail.
     auto Dir = FileMgr.getDirectory(FrameworkName);
     if (!Dir)
----------------
Is the plan to do these ones in later commits? Ie. this just does what's needed for `FrameworkCacheEntry`?


================
Comment at: clang/lib/Lex/HeaderSearch.cpp:1192
     // framework.
     CacheLookup.second.Directory = *Dir;
   }
----------------
Don't need the `*`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123854/new/

https://reviews.llvm.org/D123854



More information about the cfe-commits mailing list