Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add a convenience createUniqueDirectory function. | Rafael Espindola | 2013-06-27 | 1 | -5/+1 |
| | | | | | | | | | | | There are a few valid situation where we care about the structure inside a directory, but not about the directory itself. A simple example is for unit testing directory traversal. PathV1 had a function like this, add one to V2 and port existing users of the created temp file and delete it hack to using it. llvm-svn: 185059 | ||||
* | Rename fs::GetUniqueID to fs::getUniqueID to match the style guide. | Rafael Espindola | 2013-06-20 | 1 | -4/+4 |
| | | | | llvm-svn: 184431 | ||||
* | Modified the implementation of fs::GetUniqueID on Windows such that it ↵ | Aaron Ballman | 2013-06-19 | 1 | -0/+36 |
| | | | | | | actually finds a unique identifier for a file. Also adds unit tests for GetUniqueID. llvm-svn: 184351 | ||||
* | Move PathV2.h to Path.h | Rafael Espindola | 2013-06-11 | 1 | -1/+1 |
| | | | | | | | Most clients have already been moved from Path V1 to V2. The ones using V1 now include PathV1.h explicitly. llvm-svn: 183801 | ||||
* | [Support][FileSystem] Fix identify_magic for big endian ELF. | Michael J. Spencer | 2013-04-05 | 1 | -2/+10 |
| | | | | llvm-svn: 178905 | ||||
* | Test case for graceful handling of long file names on Windows. Patch thanks ↵ | Aaron Ballman | 2013-03-16 | 1 | -0/+12 |
| | | | | | | to Paul Robinson! llvm-svn: 177223 | ||||
* | [Support][Test] Missed this in the API change. | Michael J. Spencer | 2013-03-14 | 1 | -0/+1 |
| | | | | llvm-svn: 176996 | ||||
* | Sort the #include lines for unittest/... | Chandler Carruth | 2012-12-04 | 1 | -2/+1 |
| | | | | llvm-svn: 169250 | ||||
* | 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 | ||||
* | Properly test the LLVM_USE_RVALUE_REFERENCES macro. | Michael J. Spencer | 2012-08-15 | 1 | -1/+1 |
| | | | | llvm-svn: 161979 | ||||
* | [PathV2] Add mapped_file_region. Implementation for Windows and POSIX. | Michael J. Spencer | 2012-08-15 | 1 | -26/+33 |
| | | | | llvm-svn: 161976 | ||||
* | unittests/Support/Path.cpp: [Win32] Suppress FileSystemTest.FileMapping for now. | NAKAMURA Takumi | 2012-06-24 | 1 | -0/+2 |
| | | | | llvm-svn: 159099 | ||||
* | unittests/Support/Path.cpp: [Win32] Suppress FileSystemTest.Permissions for now. | NAKAMURA Takumi | 2012-06-24 | 1 | -1/+2 |
| | | | | llvm-svn: 159098 | ||||
* | Add permissions(), map_file_pages(), and unmap_file_pages() to llvm::sys::fs ↵ | Nick Kledzik | 2012-06-20 | 1 | -0/+65 |
| | | | | | | and add unit test. Unix is implemented. Windows side needs to be implemented. llvm-svn: 158770 | ||||
* | Revert r146363 to allow buildbots to make forward progress. | Chad Rosier | 2011-12-12 | 1 | -28/+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 | -0/+8 |
| | | | | llvm-svn: 146364 | ||||
* | Support/FileSystem: Implement canonicalize. | Michael J. Spencer | 2011-12-12 | 1 | -0/+28 |
| | | | | llvm-svn: 146363 | ||||
* | unittests/Support/Path.cpp: [recursive_directory_iterator] Work around for ↵ | NAKAMURA Takumi | 2011-12-09 | 1 | -1/+4 |
| | | | | | | | end iterator. FIXME: It should be more robust. llvm-svn: 146294 | ||||
* | unittests/SupportTests: Fix test. pop modifies the current entry, thus the | Michael J. Spencer | 2011-12-09 | 1 | -5/+2 |
| | | | | | | dontlookhere check must be after it. llvm-svn: 146217 | ||||
* | unittests/SupportTests: Add some outs()'s to debug the issues on some bots. | Michael J. Spencer | 2011-12-09 | 1 | -0/+3 |
| | | | | | | | I have run these tests under many configurations on the exact same OS as the failures, and I can't reproduce them :(. llvm-svn: 146214 | ||||
* | Support/FileSystem: Implement recursive_directory_iterator and make | Michael J. Spencer | 2011-12-08 | 1 | -0/+51 |
| | | | | | | directory_iterator preserve InputIterator semantics on copy. llvm-svn: 146200 | ||||
* | Adds llvm::sys::path::is_separator() to test whether a char is a path separator | Zhanyong Wan | 2011-02-11 | 1 | -0/+13 |
| | | | | | | on the host OS. Reviewed by dgregor. llvm-svn: 125406 | ||||
* | Unittests/Support/Path: Tweak test. | Michael J. Spencer | 2011-01-15 | 1 | -1/+1 |
| | | | | llvm-svn: 123546 | ||||
* | UnitTests/Path: Add magical tests. This will also test identify_magic. | Michael J. Spencer | 2011-01-06 | 1 | -0/+23 |
| | | | | llvm-svn: 122948 | ||||
* | UnitTests/Path: More ASSERT_NO_ERROR cleanup. | Michael J. Spencer | 2011-01-06 | 1 | -12/+11 |
| | | | | llvm-svn: 122947 | ||||
* | UnitTests/Path: Fix typo, add error number, and enable the directory cleanup ↵ | Michael J. Spencer | 2011-01-05 | 1 | -7/+12 |
| | | | | | | code. llvm-svn: 122885 | ||||
* | UnitTests/PathV2: Setup a test fixture to make tracking created file system | Michael J. Spencer | 2011-01-05 | 1 | -0/+24 |
| | | | | | | entities easier. llvm-svn: 122880 | ||||
* | Support/PathV2: Implement directory iteration on POSIX. | Michael J. Spencer | 2011-01-05 | 1 | -3/+0 |
| | | | | llvm-svn: 122879 | ||||
* | UnitTests/Path: Produce useful diagnostics on error. | Michael J. Spencer | 2011-01-04 | 1 | -17/+25 |
| | | | | llvm-svn: 122812 | ||||
* | Support/PathV2: Change most functions in the path namespace to return their work | Michael J. Spencer | 2010-12-07 | 1 | -20/+18 |
| | | | | | | 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 | -21/+21 |
| | | | | | | | 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 make_absolute from path to fs. | Michael J. Spencer | 2010-12-07 | 1 | -1/+1 |
| | | | | llvm-svn: 121108 | ||||
* | Support/FileSystem: Add directory_iterator implementation. | Michael J. Spencer | 2010-12-06 | 1 | -0/+13 |
| | | | | llvm-svn: 120989 | ||||
* | Unittests/Support/PathV2: Add FileSystem tests. | Michael J. Spencer | 2010-12-04 | 1 | -0/+35 |
| | | | | llvm-svn: 120888 | ||||
* | Support/FileSystem: Add remove implementation. | Michael J. Spencer | 2010-12-03 | 1 | -1/+2 |
| | | | | llvm-svn: 120817 | ||||
* | unittests/Support/PathV2: remove(3) requires a terminated string. | Benjamin Kramer | 2010-12-03 | 1 | -3/+2 |
| | | | | llvm-svn: 120803 | ||||
* | Unittests/Support/PathV2: Cleanup and remove output. | Michael J. Spencer | 2010-12-03 | 1 | -44/+27 |
| | | | | llvm-svn: 120785 | ||||
* | unittests/Support/PathV2: Comment out test because some systems are saying that | Michael J. Spencer | 2010-12-03 | 1 | -1/+2 |
| | | | | | | a file exists when it shouldn't. llvm-svn: 120784 | ||||
* | Support/FileSystem: Add unique_file and exists implementations. | Michael J. Spencer | 2010-12-03 | 1 | -0/+18 |
| | | | | llvm-svn: 120776 | ||||
* | Make valgrind happy. | Michael J. Spencer | 2010-12-01 | 1 | -0/+2 |
| | | | | llvm-svn: 120616 | ||||
* | unittests/Support/PathV2: Fix -pedantic warning. | Michael J. Spencer | 2010-12-01 | 1 | -2/+2 |
| | | | | llvm-svn: 120590 | ||||
* | Support/PathV2: Add is_{absolute,relative} implementation. | Michael J. Spencer | 2010-12-01 | 1 | -0/+2 |
| | | | | llvm-svn: 120560 | ||||
* | Support/PathV2: Add ↵ | Michael J. Spencer | 2010-12-01 | 1 | -0/+8 |
| | | | | | | has_{root_path,root_name,root_directory,parent_path,filename,stem,extension} implementation. llvm-svn: 120559 | ||||
* | unittests/Support/PathV2: Make tests much shorter; although harder to ↵ | Michael J. Spencer | 2010-12-01 | 1 | -49/+35 |
| | | | | | | | | | understand. I'm going to replace this all anyway with a proper table and separated tests when done. llvm-svn: 120558 | ||||
* | Support/PathV2: Add extension implementation. | Michael J. Spencer | 2010-12-01 | 1 | -2/+12 |
| | | | | llvm-svn: 120550 | ||||
* | Support/PathV2: Add stem implementation. | Michael J. Spencer | 2010-12-01 | 1 | -0/+7 |
| | | | | llvm-svn: 120547 | ||||
* | Support/PathV2: Add filename implementation. | Michael J. Spencer | 2010-12-01 | 1 | -0/+3 |
| | | | | llvm-svn: 120546 | ||||
* | Support/PathV2: Add native implementation. | Michael J. Spencer | 2010-12-01 | 1 | -0/+3 |
| | | | | llvm-svn: 120539 | ||||
* | Support/PathV2: Add replace_extension implementation. | Michael J. Spencer | 2010-12-01 | 1 | -0/+4 |
| | | | | llvm-svn: 120514 | ||||
* | Support/PathV2: Add remove_filename implementation. | Michael J. Spencer | 2010-12-01 | 1 | -0/+4 |
| | | | | llvm-svn: 120513 |