Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rename PathV2 to just Path now that it is the only one. | Rafael Espindola | 2013-06-26 | 1 | -1092/+0 |
| | | | | llvm-svn: 185015 | ||||
* | Port GetMainExecutable over to PathV2. | Rafael Espindola | 2013-06-26 | 1 | -0/+7 |
| | | | | | | I will remove the V1 version as soon as I change clang in the next commit. llvm-svn: 184914 | ||||
* | make getLastModificationTime const. Move it with the other getters. | Rafael Espindola | 2013-06-20 | 1 | -1/+1 |
| | | | | llvm-svn: 184478 | ||||
* | Add a setLastModificationAndAccessTime to PathV2. | Rafael Espindola | 2013-06-20 | 1 | -0/+11 |
| | | | | | | With this we can remove the last use of PathV1 from llvm-ar.cpp. llvm-svn: 184464 | ||||
* | Add support for getting the last modification time from a file_status. | Rafael Espindola | 2013-06-20 | 1 | -0/+10 |
| | | | | | | Use that in llvm-ar.cpp to replace a use of sys::PathWithStatus. llvm-svn: 184450 | ||||
* | Rename fs::GetUniqueID to fs::getUniqueID to match the style guide. | Rafael Espindola | 2013-06-20 | 1 | -1/+1 |
| | | | | llvm-svn: 184431 | ||||
* | Modified the implementation of fs::GetUniqueID on Windows such that it ↵ | Aaron Ballman | 2013-06-19 | 1 | -9/+14 |
| | | | | | | actually finds a unique identifier for a file. Also adds unit tests for GetUniqueID. llvm-svn: 184351 | ||||
* | Add a can_write function to PathV2. | Rafael Espindola | 2013-06-18 | 1 | -0/+12 |
| | | | | llvm-svn: 184233 | ||||
* | Add a GetUniqueID that will replace the uniqueID of PathV1.h. | Rafael Espindola | 2013-06-18 | 1 | -0/+14 |
| | | | | llvm-svn: 184217 | ||||
* | Replace use of PathV1.h in Program.cpp. | Rafael Espindola | 2013-06-14 | 1 | -0/+11 |
| | | | | llvm-svn: 183996 | ||||
* | [Support][Path][Windows] Fix dangling else. Don't call CloseHandle when ↵ | Michael J. Spencer | 2013-03-15 | 1 | -10/+10 |
| | | | | | | CloseFD is false. llvm-svn: 177175 | ||||
* | [Support] Fix lifetime of file descriptors when using MemoryBuffer. | Michael J. Spencer | 2013-03-14 | 1 | -14/+23 |
| | | | | | | | Clients of MemoryBuffer::getOpenFile expect it not to take ownership of the file descriptor passed in. So don't. llvm-svn: 176995 | ||||
* | [Support][Path] Don't inf loop if creating the parent directory fails. | Michael J. Spencer | 2013-03-12 | 1 | -1/+7 |
| | | | | | | Patch by Paul Robinson. llvm-svn: 176908 | ||||
* | [Support][FileSystem] Fix open mode in resize_file on Windows. | Michael J. Spencer | 2012-12-03 | 1 | -1/+1 |
| | | | | llvm-svn: 169166 | ||||
* | Switch LLVM_USE_RVALUE_REFERENCES to LLVM_HAS_RVALUE_REFERENCES. | Chandler Carruth | 2012-11-30 | 1 | -1/+1 |
| | | | | | | | | | | | | | | Rationale: 1) This was the name in the comment block. ;] 2) It matches Clang's __has_feature naming convention. 3) It matches other compiler-feature-test conventions. Sorry for the noise. =] I've also switch the comment block to use a \brief tag and not duplicate the name. llvm-svn: 168996 | ||||
* | Fix a -Wparentheses warning in the mingw build | Nico Weber | 2012-09-25 | 1 | -1/+1 |
| | | | | llvm-svn: 164587 | ||||
* | Properly test the LLVM_USE_RVALUE_REFERENCES macro. | Michael J. Spencer | 2012-08-15 | 1 | -1/+1 |
| | | | | llvm-svn: 161978 | ||||
* | [PathV2] Add mapped_file_region. Implementation for Windows and POSIX. | Michael J. Spencer | 2012-08-15 | 1 | -0/+199 |
| | | | | llvm-svn: 161976 | ||||
* | Unbreak the MSVC build: add return to unimplemented functions. | Francois Pichet | 2012-06-20 | 1 | -0/+2 |
| | | | | llvm-svn: 158788 | ||||
* | Add permissions(), map_file_pages(), and unmap_file_pages() to llvm::sys::fs ↵ | Nick Kledzik | 2012-06-20 | 1 | -0/+46 |
| | | | | | | and add unit test. Unix is implemented. Windows side needs to be implemented. llvm-svn: 158770 | ||||
* | Allow unique_file to take a mode for file permissions, but default | Eric Christopher | 2012-05-11 | 1 | -2/+4 |
| | | | | | | | | to user only read/write. Part of rdar://11325849 llvm-svn: 156591 | ||||
* | Windows/PathV2.inc: Retry rename() for (maximum) 2 seconds. | NAKAMURA Takumi | 2012-05-08 | 1 | -4/+14 |
| | | | | | | Files might be opend by system scanners (eg. file indexer, virus scanner, &c). llvm-svn: 156380 | ||||
* | Change default error_code ctor to a 'named ctor' so it's more self-documenting. | David Blaikie | 2012-02-09 | 1 | -21/+21 |
| | | | | | | | | | | | Unify default construction of error_code uses on this idiom so that users don't feel compelled to make static globals for naming convenience. (unfortunately I couldn't make the original ctor private as some APIs don't return their result, instead using an out parameter (that makes sense to default construct) - which is a bit of a pity. I did, however, find/fix some cases of unnecessary default construction of error_code before I hit the unfixable cases) llvm-svn: 150197 | ||||
* | Revert r146363 to allow buildbots to make forward progress. | Chad Rosier | 2011-12-12 | 1 | -38/+0 |
| | | | | | | | Original commit message: Support/FileSystem: Implement canonicalize. llvm-svn: 146378 | ||||
* | Support/FileSystem: Implement bool equivalent(file_status A, file_status B); | Michael J. Spencer | 2011-12-12 | 1 | -62/+38 |
| | | | | llvm-svn: 146364 | ||||
* | Support/FileSystem: Implement canonicalize. | Michael J. Spencer | 2011-12-12 | 1 | -0/+38 |
| | | | | llvm-svn: 146363 | ||||
* | Support/Windows: Cleanup scoped handles. | Michael J. Spencer | 2011-12-12 | 1 | -17/+6 |
| | | | | llvm-svn: 146362 | ||||
* | Support/FileSystem: Implement recursive_directory_iterator and make | Michael J. Spencer | 2011-12-08 | 1 | -6/+7 |
| | | | | | | directory_iterator preserve InputIterator semantics on copy. llvm-svn: 146200 | ||||
* | PathV2: Handle more reserved filenames on windows. | Benjamin Kramer | 2011-08-20 | 1 | -2/+24 |
| | | | | | | Patch by Aaron Ballman! llvm-svn: 138213 | ||||
* | Add an optional 'bool makeAbsolute' in llvm::sys::fs::unique_file function. | Argyrios Kyrtzidis | 2011-07-28 | 1 | -11/+14 |
| | | | | | | | If true and 'model' parameter is not an absolute path, a temp directory will be prepended. Make it true by default to match current behaviour. llvm-svn: 136310 | ||||
* | Windows/PathV2.inc: [PR8520] Recognize "NUL" as special (character) file. | NAKAMURA Takumi | 2011-03-16 | 1 | -1/+8 |
| | | | | | FIXME: It is a temporal hack. We should detect as many "special file name" as possible. llvm-svn: 127724 | ||||
* | Windows/PathV2.inc: Eliminate redundant condition. DWORD is unsigned. | NAKAMURA Takumi | 2011-03-07 | 1 | -1/+1 |
| | | | | llvm-svn: 127140 | ||||
* | Make Win32's header file name lower for cross build on case-sensitive ↵ | NAKAMURA Takumi | 2011-02-04 | 1 | -1/+1 |
| | | | | | | filesystem. llvm-svn: 124864 | ||||
* | Windows/PathV2.inc: For CryptAcquireContext(), CRYPT_VERIFYCONTEXT may be ↵ | NAKAMURA Takumi | 2011-01-17 | 1 | -1/+1 |
| | | | | | | specified for easy use. llvm-svn: 123687 | ||||
* | Windows/PathV2.inc: MoveFileEx() can behave like Posix's mv(1) to specify ↵ | NAKAMURA Takumi | 2011-01-17 | 1 | -1/+2 |
| | | | | | | MOVEFILE_COPY_ALLOWED | MOVEFILE_REPLACE_EXISTING. llvm-svn: 123686 | ||||
* | Support/PathV2: Implement get_magic. | Michael J. Spencer | 2011-01-15 | 1 | -0/+42 |
| | | | | llvm-svn: 123544 | ||||
* | Support/Windows/PathV2: Make directory iteration ignore . and .. | Michael J. Spencer | 2011-01-05 | 1 | -4/+24 |
| | | | | llvm-svn: 122883 | ||||
* | Support/Windows/PathV2: Fix remove to handle both files and directories. | Michael J. Spencer | 2011-01-05 | 1 | -7/+21 |
| | | | | llvm-svn: 122882 | ||||
* | Missed some StringRefRefs. | Benjamin Kramer | 2010-12-17 | 1 | -4/+2 |
| | | | | llvm-svn: 122077 | ||||
* | Support/Windows/PathV2: Fix header comment. | Michael J. Spencer | 2010-12-09 | 1 | -1/+1 |
| | | | | llvm-svn: 121383 | ||||
* | Support: Move c_str from SmallVector back to SmallString and add a free standing | Michael J. Spencer | 2010-12-09 | 1 | -1/+1 |
| | | | | | | templated c_str in Windows.h to replace it. llvm-svn: 121381 | ||||
* | Support/PathV2: Change most functions in the path namespace to return their work | Michael J. Spencer | 2010-12-07 | 1 | -2/+1 |
| | | | | | | via their return value instead of an out parameter. llvm-svn: 121149 | ||||
* | Support/PathV2: Remove the error_code return type from all functions in the path | Michael J. Spencer | 2010-12-07 | 1 | -2/+2 |
| | | | | | | | namespace. None of them return anything except for success anyway. These will be converted to returning their result soon. llvm-svn: 121109 | ||||
* | Support/PathV2: Move current_path from path to fs and fix the Unix ↵ | Michael J. Spencer | 2010-12-07 | 1 | -5/+1 |
| | | | | | | | | implementation. Unix bug spotted by Dan Gohman. llvm-svn: 121090 | ||||
* | Support/Windows: Make MinGW happy. | Michael J. Spencer | 2010-12-06 | 1 | -1/+1 |
| | | | | llvm-svn: 120991 | ||||
* | Support/FileSystem: Add directory_iterator implementation. | Michael J. Spencer | 2010-12-06 | 1 | -0/+77 |
| | | | | llvm-svn: 120989 | ||||
* | Support/Windows: Add ScopedHandle and move some clients over to it. | Michael J. Spencer | 2010-12-06 | 1 | -10/+10 |
| | | | | llvm-svn: 120987 | ||||
* | Support/PathV2: Remove redundant calls to make_error_code. | Michael J. Spencer | 2010-12-04 | 1 | -49/+48 |
| | | | | llvm-svn: 120913 | ||||
* | Support/FileSystem: Add status implementation. | Michael J. Spencer | 2010-12-04 | 1 | -0/+48 |
| | | | | llvm-svn: 120870 | ||||
* | Support/Windows/FileSystem: Fix MinGW warnings. | Michael J. Spencer | 2010-12-04 | 1 | -6/+6 |
| | | | | llvm-svn: 120868 |