summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Basic/FileManagerTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use llvm::sys::fs::UniqueID for windows and unix.Rafael Espindola2013-08-011-13/+10
| | | | | | | | | | | | | | | | | | | This unifies the unix and windows versions of FileManager::UniqueDirContainer and FileManager::UniqueFileContainer by using UniqueID. We cannot just replace "struct stat" with llvm::sys::fs::file_status, since we want to be able to construct fake ones, and file_status has different members on unix and windows. What the patch does is: * Record only the information that clang is actually using. * Use llvm::sys::fs::status instead of stat and fstat. * Use llvm::sys::fs::UniqueID * Delete the old windows versions of UniqueDirContainer and UniqueFileContainer since the "unix" one now works on windows too. llvm-svn: 187619
* Fix handling of "clang c:foo"Rafael Espindola2013-07-291-0/+17
| | | | | | | | | | | | | On windows, c:foo is a valid file path, but stat fails on just "c:". This causes a problem for clang since its file manager wants to cache data about the parent directory. There are refactorings to be done in here, but this gives clang the correct behavior and testing first. Patch by Yunzhong Gao! llvm-svn: 187359
* Extend stat query APIs to explicitly specify if the query is forArgyrios Kyrtzidis2012-12-111-1/+1
| | | | | | | | | | a file or directory, allowing just a stat call if a file descriptor is not needed. Doing just 'stat' is faster than 'open/fstat/close'. This has the effect of cutting down system time for validating the input files of a PCH. llvm-svn: 169831
* Sort the #include lines for unittests/...Chandler Carruth2012-12-041-2/+1
| | | | | | I've tried to place sensible headers at the top as main-module headers. llvm-svn: 169243
* unittests/Basic/FileManagerTest.cpp: Suppress warnings on gcc.NAKAMURA Takumi2011-09-231-1/+2
| | | | llvm-svn: 140364
* unittests/Basic/FileManagerTest.cpp: Unbreak Win32, mingw and msvc.NAKAMURA Takumi2011-06-241-3/+3
| | | | | | | LLVM_ON_WIN32 is defined in llvm/Config/config.h. IMO, it might be enough with _WIN32 in most cases, LLVM_ON_xxx could be deprecated. llvm-svn: 133794
* Moves FileManagerTest.cpp to unittests/Basic such that the unit testZhanyong Wan2011-02-151-0/+222
directory structure matches the library structure. Reviewed by jyasskin. llvm-svn: 125600
OpenPOWER on IntegriCloud