[PATCH] D52419: [clangd] Cache FS stat() calls when building preamble.

Sam McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 2 00:49:32 PDT 2018


sammccall accepted this revision.
sammccall added a comment.
This revision is now accepted and ready to land.

Sorry for dropping this.



================
Comment at: clangd/ClangdUnit.h:58
   IncludeStructure Includes;
+  std::unique_ptr<PreambleFileStatusCache> StatCache;
 };
----------------
This deserves a comment, even if it's a bit repetitive.
```// Cache of FS operations performed when building the preamble.
// When reusing a preamble, this cache can be consumed to save IO.```


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D52419





More information about the cfe-commits mailing list