llvm-project/llvm/lib/Support/Windows
Kristina Brooks 3a55d1ef27 [Support] sys::fs::directory_entry includes the file_type.
This is available on most platforms (Linux/Mac/Win/BSD) with no extra syscalls.
On other platforms (e.g. Solaris) we stat() if this information is requested.

This will allow switching clang's VFS to efficiently expose (path, type) when
traversing a directory. Currently it exposes an entire Status, but does so by
calling fs::status() on all platforms.
Almost all callers only need the path, and all callers only need (path, type).

Patch by sammccall (Sam McCall)

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

llvm-svn: 342089
2018-09-12 22:08:10 +00:00
..
COM.inc
DynamicLibrary.inc Move some function declarations out of WindowsSupport.h 2018-06-01 22:23:46 +00:00
Host.inc [Support] Avoid normalization in sys::getDefaultTargetTriple 2018-05-25 20:39:37 +00:00
Memory.inc [Support] Support NetBSD PaX MPROTECT in sys::Memory. 2017-11-16 23:04:44 +00:00
Mutex.inc Remove more name space pollution from .inc files 2017-03-31 14:26:44 +00:00
Path.inc [Support] sys::fs::directory_entry includes the file_type. 2018-09-12 22:08:10 +00:00
Process.inc [Support] Avoid calling CommandLineToArgvW from shell32.dll 2018-09-11 20:22:39 +00:00
Program.inc [Support] Quote arguments containing \n on Windows 2018-09-11 21:02:03 +00:00
RWMutex.inc Report fatal error in the case of out of memory 2018-02-20 05:41:26 +00:00
Signals.inc Move some function declarations out of WindowsSupport.h 2018-06-01 22:23:46 +00:00
ThreadLocal.inc Remove more name space pollution from .inc files 2017-03-31 14:26:44 +00:00
Threading.inc Fix C2712 build error on Windows 2017-03-07 20:09:46 +00:00
Watchdog.inc
WindowsSupport.h Move some function declarations out of WindowsSupport.h 2018-06-01 22:23:46 +00:00
explicit_symbols.inc