summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Windows/PathV2.inc
Commit message (Collapse)AuthorAgeFilesLines
* Rename PathV2 to just Path now that it is the only one.Rafael Espindola2013-06-261-1092/+0
| | | | llvm-svn: 185015
* Port GetMainExecutable over to PathV2.Rafael Espindola2013-06-261-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 Espindola2013-06-201-1/+1
| | | | llvm-svn: 184478
* Add a setLastModificationAndAccessTime to PathV2.Rafael Espindola2013-06-201-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 Espindola2013-06-201-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 Espindola2013-06-201-1/+1
| | | | llvm-svn: 184431
* Modified the implementation of fs::GetUniqueID on Windows such that it ↵Aaron Ballman2013-06-191-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 Espindola2013-06-181-0/+12
| | | | llvm-svn: 184233
* Add a GetUniqueID that will replace the uniqueID of PathV1.h.Rafael Espindola2013-06-181-0/+14
| | | | llvm-svn: 184217
* Replace use of PathV1.h in Program.cpp.Rafael Espindola2013-06-141-0/+11
| | | | llvm-svn: 183996
* [Support][Path][Windows] Fix dangling else. Don't call CloseHandle when ↵Michael J. Spencer2013-03-151-10/+10
| | | | | | CloseFD is false. llvm-svn: 177175
* [Support] Fix lifetime of file descriptors when using MemoryBuffer.Michael J. Spencer2013-03-141-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. Spencer2013-03-121-1/+7
| | | | | | Patch by Paul Robinson. llvm-svn: 176908
* [Support][FileSystem] Fix open mode in resize_file on Windows.Michael J. Spencer2012-12-031-1/+1
| | | | llvm-svn: 169166
* Switch LLVM_USE_RVALUE_REFERENCES to LLVM_HAS_RVALUE_REFERENCES.Chandler Carruth2012-11-301-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 buildNico Weber2012-09-251-1/+1
| | | | llvm-svn: 164587
* Properly test the LLVM_USE_RVALUE_REFERENCES macro.Michael J. Spencer2012-08-151-1/+1
| | | | llvm-svn: 161978
* [PathV2] Add mapped_file_region. Implementation for Windows and POSIX.Michael J. Spencer2012-08-151-0/+199
| | | | llvm-svn: 161976
* Unbreak the MSVC build: add return to unimplemented functions.Francois Pichet2012-06-201-0/+2
| | | | llvm-svn: 158788
* Add permissions(), map_file_pages(), and unmap_file_pages() to llvm::sys::fs ↵Nick Kledzik2012-06-201-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 defaultEric Christopher2012-05-111-2/+4
| | | | | | | | to user only read/write. Part of rdar://11325849 llvm-svn: 156591
* Windows/PathV2.inc: Retry rename() for (maximum) 2 seconds.NAKAMURA Takumi2012-05-081-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 Blaikie2012-02-091-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 Rosier2011-12-121-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. Spencer2011-12-121-62/+38
| | | | llvm-svn: 146364
* Support/FileSystem: Implement canonicalize.Michael J. Spencer2011-12-121-0/+38
| | | | llvm-svn: 146363
* Support/Windows: Cleanup scoped handles.Michael J. Spencer2011-12-121-17/+6
| | | | llvm-svn: 146362
* Support/FileSystem: Implement recursive_directory_iterator and makeMichael J. Spencer2011-12-081-6/+7
| | | | | | directory_iterator preserve InputIterator semantics on copy. llvm-svn: 146200
* PathV2: Handle more reserved filenames on windows.Benjamin Kramer2011-08-201-2/+24
| | | | | | Patch by Aaron Ballman! llvm-svn: 138213
* Add an optional 'bool makeAbsolute' in llvm::sys::fs::unique_file function.Argyrios Kyrtzidis2011-07-281-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 Takumi2011-03-161-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 Takumi2011-03-071-1/+1
| | | | llvm-svn: 127140
* Make Win32's header file name lower for cross build on case-sensitive ↵NAKAMURA Takumi2011-02-041-1/+1
| | | | | | filesystem. llvm-svn: 124864
* Windows/PathV2.inc: For CryptAcquireContext(), CRYPT_VERIFYCONTEXT may be ↵NAKAMURA Takumi2011-01-171-1/+1
| | | | | | specified for easy use. llvm-svn: 123687
* Windows/PathV2.inc: MoveFileEx() can behave like Posix's mv(1) to specify ↵NAKAMURA Takumi2011-01-171-1/+2
| | | | | | MOVEFILE_COPY_ALLOWED | MOVEFILE_REPLACE_EXISTING. llvm-svn: 123686
* Support/PathV2: Implement get_magic.Michael J. Spencer2011-01-151-0/+42
| | | | llvm-svn: 123544
* Support/Windows/PathV2: Make directory iteration ignore . and ..Michael J. Spencer2011-01-051-4/+24
| | | | llvm-svn: 122883
* Support/Windows/PathV2: Fix remove to handle both files and directories.Michael J. Spencer2011-01-051-7/+21
| | | | llvm-svn: 122882
* Missed some StringRefRefs.Benjamin Kramer2010-12-171-4/+2
| | | | llvm-svn: 122077
* Support/Windows/PathV2: Fix header comment.Michael J. Spencer2010-12-091-1/+1
| | | | llvm-svn: 121383
* Support: Move c_str from SmallVector back to SmallString and add a free standingMichael J. Spencer2010-12-091-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 workMichael J. Spencer2010-12-071-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 pathMichael J. Spencer2010-12-071-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. Spencer2010-12-071-5/+1
| | | | | | | | implementation. Unix bug spotted by Dan Gohman. llvm-svn: 121090
* Support/Windows: Make MinGW happy.Michael J. Spencer2010-12-061-1/+1
| | | | llvm-svn: 120991
* Support/FileSystem: Add directory_iterator implementation.Michael J. Spencer2010-12-061-0/+77
| | | | llvm-svn: 120989
* Support/Windows: Add ScopedHandle and move some clients over to it.Michael J. Spencer2010-12-061-10/+10
| | | | llvm-svn: 120987
* Support/PathV2: Remove redundant calls to make_error_code.Michael J. Spencer2010-12-041-49/+48
| | | | llvm-svn: 120913
* Support/FileSystem: Add status implementation.Michael J. Spencer2010-12-041-0/+48
| | | | llvm-svn: 120870
* Support/Windows/FileSystem: Fix MinGW warnings.Michael J. Spencer2010-12-041-6/+6
| | | | llvm-svn: 120868
OpenPOWER on IntegriCloud