Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [C++11] Switch all uses of the llvm_move macro to use std::move | Chandler Carruth | 2014-03-02 | 1 | -1/+1 | |
| | | | | | | directly, and remove the macro. llvm-svn: 202612 | |||||
* | [C++11] Remove uses of LLVM_HAS_RVALUE_REFERENCES from the unittests. | Chandler Carruth | 2014-03-01 | 1 | -2/+0 | |
| | | | | llvm-svn: 202583 | |||||
* | Replace the F_Binary flag with a F_Text one. | Rafael Espindola | 2014-02-24 | 1 | -3/+3 | |
| | | | | | | | | | After this I will set the default back to F_None. The advantage is that before this patch forgetting to set F_Binary would corrupt a file on windows. Forgetting to set F_Text produces one that cannot be read in notepad, which is a better failure mode :-) llvm-svn: 202052 | |||||
* | Fix windows unittest I missed in the raw_fd_ostream constructor change. | Rafael Espindola | 2014-02-24 | 1 | -1/+1 | |
| | | | | llvm-svn: 202050 | |||||
* | Simplify remove, create_directory and create_directories. | Rafael Espindola | 2014-02-23 | 1 | -17/+24 | |
| | | | | | | | | | | | | | | | Before this patch they would take an boolean argument to say if the path already existed. This was redundant with the returned error_code which is able to represent that. This allowed for callers to incorrectly check only the existed flag instead of first checking the error code. Instead, pass in a boolean flag to say if the previous (non-)existence should be an error or not. Callers of the of the old simple versions are not affected. They still ignore the previous (non-)existence as they did before. llvm-svn: 201979 | |||||
* | Introduce llvm::sys::path::home_directory. | Peter Collingbourne | 2014-01-31 | 1 | -0/+13 | |
| | | | | | | | | | This will be used by the line editor library to derive a default path to the history file. Differential Revision: http://llvm-reviews.chandlerc.com/D2199 llvm-svn: 200594 | |||||
* | Remove remove_all. A compiler has no need for recursively deleting a directory. | Rafael Espindola | 2014-01-10 | 1 | -2/+15 | |
| | | | | llvm-svn: 198955 | |||||
* | Path: Recognize COFF import library file magic. | Rui Ueyama | 2013-11-15 | 1 | -0/+2 | |
| | | | | | | | | | | | | Summary: Make identify_magic to recognize COFF import file. Reviewers: Bigcheese CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2165 llvm-svn: 194852 | |||||
* | Recognize 0x0000 as a COFF file magic. | Rui Ueyama | 2013-11-14 | 1 | -0/+2 | |
| | | | | | | | | | | | | | | | Summary: Some machine-type-neutral object files containing only undefined symbols actually do exist in the Windows standard library. Need to recognize them as COFF files. Reviewers: Bigcheese CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2164 llvm-svn: 194734 | |||||
* | Path: Add tests for existing file magics. | Rui Ueyama | 2013-11-13 | 1 | -6/+36 | |
| | | | | llvm-svn: 194607 | |||||
* | Whitespace. | Rui Ueyama | 2013-11-13 | 1 | -3/+3 | |
| | | | | llvm-svn: 194605 | |||||
* | Try to fix the build on windows. | Rafael Espindola | 2013-10-25 | 1 | -2/+2 | |
| | | | | llvm-svn: 193431 | |||||
* | Fixes a bug when iterating on paths | Tareq A. Siraj | 2013-08-12 | 1 | -0/+69 | |
| | | | | | | | | | This fixes the incorrect implementation of iterating on file/directory paths. Differential Review: http://llvm-reviews.chandlerc.com/D1277 llvm-svn: 188183 | |||||
* | Fix windows' implementation of status when a file doesn't exist. | Rafael Espindola | 2013-07-31 | 1 | -0/+4 | |
| | | | | | | | | | The unix one was returning no_such_file_or_directory, but the windows one was return success. Update the one one caller that was depending on the old behavior. llvm-svn: 187463 | |||||
* | Implement getUniqueID for directories on windows. | Rafael Espindola | 2013-07-30 | 1 | -0/+13 | |
| | | | | llvm-svn: 187441 | |||||
* | Include st_dev to make the result of getUniqueID actually unique. | Rafael Espindola | 2013-07-29 | 1 | -3/+3 | |
| | | | | | | This will let us use getUniqueID instead of st_dev directly on clang. llvm-svn: 187378 | |||||
* | Don't end a file name with a dot. It looks odd. | Rafael Espindola | 2013-07-25 | 1 | -0/+5 | |
| | | | | llvm-svn: 187124 | |||||
* | Add a unit test for checking that we respect the F_Binary flag. | Rafael Espindola | 2013-07-19 | 1 | -0/+31 | |
| | | | | llvm-svn: 186676 | |||||
* | Remove dead code. | Rafael Espindola | 2013-07-18 | 1 | -7/+1 | |
| | | | | llvm-svn: 186561 | |||||
* | Add a wrapper for open. | Rafael Espindola | 2013-07-16 | 1 | -2/+1 | |
| | | | | | | | This centralizes the handling of O_BINARY and opens the way for hiding more differences (like how open behaves with directories). llvm-svn: 186447 | |||||
* | We now always create files with the correct permissions. Simplify the interface. | Rafael Espindola | 2013-07-08 | 1 | -28/+0 | |
| | | | | llvm-svn: 185834 | |||||
* | Fix windows build. | Rafael Espindola | 2013-07-05 | 1 | -1/+1 | |
| | | | | llvm-svn: 185730 | |||||
* | Use sys::fs::createTemporaryFile. | Rafael Espindola | 2013-07-05 | 1 | -7/+7 | |
| | | | | llvm-svn: 185719 | |||||
* | 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 |