llvm-project/clang/unittests/Basic
Sam McCall 0ae00567ba [VFS] vfs::directory_iterator yields path and file type instead of full Status
Summary:
Most callers I can find are using only `getName()`. Type is used by the
recursive iterator.

Now we don't have to call stat() on every listed file (on most platforms).
Exceptions are e.g. Solaris where readdir() doesn't include type information.
On those platforms we'll still stat() - see D51918.

The result is significantly faster (stat() can be slow).
My motivation: this may allow us to improve clang IO on large TUs with long
include search paths. Caching readdir() results may allow us to skip many stat()
and open() operations on nonexistent files.

Reviewers: bkramer

Subscribers: fedor.sergeev, cfe-commits

Differential Revision: https://reviews.llvm.org/D51921

llvm-svn: 342232
2018-09-14 12:47:38 +00:00
..
CMakeLists.txt [Fixed Point Arithmetic] Fixed Point Constant 2018-08-06 16:42:37 +00:00
CharInfoTest.cpp [Sema] Make deprecation fix-it replace all multi-parameter ObjC method slots. 2018-03-29 17:34:09 +00:00
DiagnosticTest.cpp [Basic] Add a DiagnosticError llvm::ErrorInfo subclass 2017-08-25 15:48:00 +00:00
FileManagerTest.cpp [Test commit] Fix a spelling error. 2018-07-24 03:34:15 +00:00
FixedPointTest.cpp Removed the OverflowConversionsToFract tests for now. Will add them back 2018-08-06 18:02:16 +00:00
MemoryBufferCacheTest.cpp Modules: Remove an invalid check in unit tests for r298278 2017-03-21 18:26:18 +00:00
SourceManagerTest.cpp Add dump() method for SourceRange 2018-08-30 23:10:52 +00:00
VirtualFileSystemTest.cpp [VFS] vfs::directory_iterator yields path and file type instead of full Status 2018-09-14 12:47:38 +00:00