Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change default error_code ctor to a 'named ctor' so it's more self-documenting. | David Blaikie | 2012-02-09 | 1 | -13/+11 |
| | | | | | | | | | | | 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 | ||||
* | PathV2: Remove static StringRef ctors. | Benjamin Kramer | 2012-02-08 | 1 | -4/+4 |
| | | | | llvm-svn: 150071 | ||||
* | Support/FileSystem: Add file_magic and move a vew clients over to it. | Michael J. Spencer | 2011-12-13 | 1 | -2/+114 |
| | | | | llvm-svn: 146523 | ||||
* | Cleanup whitespace. | Michael J. Spencer | 2011-12-13 | 1 | -3/+3 |
| | | | | llvm-svn: 146521 | ||||
* | Support/Windows: Cleanup scoped handles. | Michael J. Spencer | 2011-12-12 | 1 | -1/+3 |
| | | | | llvm-svn: 146362 | ||||
* | Fix a minor bug in fs::create_directories. Patch by Albert Wong. | Eli Friedman | 2011-09-16 | 1 | -1/+1 |
| | | | | llvm-svn: 139928 | ||||
* | Update the comment for system_temp_directory() to indicate when it | Douglas Gregor | 2011-09-14 | 1 | -1/+1 |
| | | | | | | | will ignore the erasedOnReboot option, and properly escape the backslash in "C:\TEMP". Thanks to Aaron and Francois. llvm-svn: 139755 | ||||
* | Add a simple routine to determine the typical system directory for | Douglas Gregor | 2011-09-14 | 1 | -0/+30 |
| | | | | | | temporary data. llvm-svn: 139725 | ||||
* | Remove unimplemented function prototypes from PathV2. They can be readded ↵ | Benjamin Kramer | 2011-09-14 | 1 | -3/+1 |
| | | | | | | | | when someone cares enough. Patch by Aaron Ballman! llvm-svn: 139682 | ||||
* | Implement a function from PathV2 whose definition is missing. | Argyrios Kyrtzidis | 2011-02-15 | 1 | -0/+6 |
| | | | | llvm-svn: 125574 | ||||
* | Adds llvm::sys::path::is_separator() to test whether a char is a path separator | Zhanyong Wan | 2011-02-11 | 1 | -12/+13 |
| | | | | | | on the host OS. Reviewed by dgregor. llvm-svn: 125406 | ||||
* | Support/PathV2: Add identify_magic. | Michael J. Spencer | 2011-01-15 | 1 | -0/+10 |
| | | | | llvm-svn: 123548 | ||||
* | Support/PathV2: Implement has_magic in terms of get_magic. | Michael J. Spencer | 2011-01-15 | 1 | -26/+8 |
| | | | | llvm-svn: 123545 | ||||
* | Support/Path: Deprecate PathV1::IsSymlink and replace all uses with ↵ | Michael J. Spencer | 2011-01-12 | 1 | -0/+8 |
| | | | | | | PathV2::is_symlink. llvm-svn: 123345 | ||||
* | Support/Path: Deprecate PathV1::isDirectory and replace all uses with ↵ | Michael J. Spencer | 2011-01-11 | 1 | -0/+16 |
| | | | | | | PathV2::is_directory. llvm-svn: 123209 | ||||
* | Support/PathV2: Implement remove_all. | Michael J. Spencer | 2011-01-05 | 1 | -0/+37 |
| | | | | llvm-svn: 122884 | ||||
* | Support/PathV2: Implement directory_entry::status. | Michael J. Spencer | 2011-01-05 | 1 | -0/+4 |
| | | | | llvm-svn: 122881 | ||||
* | Fix a signed/unsigned comparison warning. | Benjamin Kramer | 2010-12-28 | 1 | -1/+1 |
| | | | | llvm-svn: 122597 | ||||
* | Support/PathV2: Implement has_magic. | Michael J. Spencer | 2010-12-28 | 1 | -0/+38 |
| | | | | llvm-svn: 122587 | ||||
* | Support/PathV2: Add missing has_relative_path impl. | Michael J. Spencer | 2010-12-20 | 1 | -0/+7 |
| | | | | llvm-svn: 122243 | ||||
* | PathV2: Use StringRef::substr to simplify substring creation. | Benjamin Kramer | 2010-12-17 | 1 | -27/+17 |
| | | | | llvm-svn: 122085 | ||||
* | Missed some StringRefRefs. | Benjamin Kramer | 2010-12-17 | 1 | -1/+1 |
| | | | | llvm-svn: 122077 | ||||
* | Pass StringRefs by value, for consistency. | Benjamin Kramer | 2010-12-17 | 1 | -13/+13 |
| | | | | llvm-svn: 122074 | ||||
* | Support/FileSystem: Change file_status predicate functions that cannot fail to | Michael J. Spencer | 2010-12-09 | 1 | -0/+27 |
| | | | | | | | return their result instead of an error_code. Also add some missing predicate functions. llvm-svn: 121380 | ||||
* | Support/PathV2: Remove const from bool return types. | Michael J. Spencer | 2010-12-07 | 1 | -9/+9 |
| | | | | llvm-svn: 121157 | ||||
* | Support/PathV2: Change most functions in the path namespace to return their work | Michael J. Spencer | 2010-12-07 | 1 | -100/+62 |
| | | | | | | via their return value instead of an out parameter. llvm-svn: 121149 | ||||
* | Support/PathV2: Cleanup separator handling. | Michael J. Spencer | 2010-12-07 | 1 | -7/+10 |
| | | | | llvm-svn: 121110 | ||||
* | Support/PathV2: Remove the error_code return type from all functions in the path | Michael J. Spencer | 2010-12-07 | 1 | -90/+60 |
| | | | | | | | 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 | -55/+57 |
| | | | | llvm-svn: 121108 | ||||
* | Support/PathV2: Use SmallVector::clear instead of set_size. | Michael J. Spencer | 2010-12-07 | 1 | -1/+1 |
| | | | | llvm-svn: 121092 | ||||
* | Support/PathV2: Move current_path from path to fs and fix the Unix ↵ | Michael J. Spencer | 2010-12-07 | 1 | -1/+1 |
| | | | | | | | | implementation. Unix bug spotted by Dan Gohman. llvm-svn: 121090 | ||||
* | Support/FileSystem: Add directory_iterator implementation. | Michael J. Spencer | 2010-12-06 | 1 | -0/+10 |
| | | | | llvm-svn: 120989 | ||||
* | Support/PathV2: Fix append to not add a slash to empty or root paths. | Michael J. Spencer | 2010-12-06 | 1 | -1/+1 |
| | | | | llvm-svn: 120988 | ||||
* | Silence 'may be used uninitialized in this function' warnings. Static analysis | Bill Wendling | 2010-12-04 | 1 | -2/+2 |
| | | | | | | | may determine that they cannot be used uninitialized. But that might be a bit too much for the compiler to determine. llvm-svn: 120916 | ||||
* | Support/PathV2: Remove redundant calls to make_error_code. | Michael J. Spencer | 2010-12-04 | 1 | -32/+32 |
| | | | | llvm-svn: 120913 | ||||
* | Support/FileSystem: Add status implementation. | Michael J. Spencer | 2010-12-04 | 1 | -0/+2 |
| | | | | llvm-svn: 120870 | ||||
* | Support/FileSystem: Add create_director{y,ies} implementations. | Michael J. Spencer | 2010-12-03 | 1 | -0/+15 |
| | | | | llvm-svn: 120790 | ||||
* | Support/FileSystem: Add copy_file implementation. Not tests yet because the | Michael J. Spencer | 2010-12-01 | 1 | -3/+8 |
| | | | | | | file creation APIs aren't implemented. llvm-svn: 120593 | ||||
* | Support/PathV2: Add is_{absolute,relative} implementation. | Michael J. Spencer | 2010-12-01 | 1 | -0/+24 |
| | | | | llvm-svn: 120560 | ||||
* | Support/PathV2: Add ↵ | Michael J. Spencer | 2010-12-01 | 1 | -18/+70 |
| | | | | | | has_{root_path,root_name,root_directory,parent_path,filename,stem,extension} implementation. llvm-svn: 120559 | ||||
* | Support/PathV2: Add extension implementation. | Michael J. Spencer | 2010-12-01 | 1 | -0/+16 |
| | | | | llvm-svn: 120550 | ||||
* | Support/PathV2: Add stem implementation. | Michael J. Spencer | 2010-12-01 | 1 | -0/+16 |
| | | | | llvm-svn: 120547 | ||||
* | Support/PathV2: Add filename implementation. | Michael J. Spencer | 2010-12-01 | 1 | -0/+5 |
| | | | | llvm-svn: 120546 | ||||
* | Support/PathV2: Add native implementation. | Michael J. Spencer | 2010-12-01 | 1 | -0/+22 |
| | | | | llvm-svn: 120539 | ||||
* | Support/PathV2: Add replace_extension implementation. | Michael J. Spencer | 2010-12-01 | 1 | -0/+20 |
| | | | | llvm-svn: 120514 | ||||
* | Support/PathV2: Add remove_filename implementation. | Michael J. Spencer | 2010-12-01 | 1 | -0/+8 |
| | | | | llvm-svn: 120513 | ||||
* | Support/PathV2: Implement reverse iteration and parent_path. | Michael J. Spencer | 2010-11-30 | 1 | -8/+115 |
| | | | | llvm-svn: 120496 | ||||
* | Support: Add PathV2 implementation. | Michael J. Spencer | 2010-11-29 | 1 | -0/+409 |
llvm-svn: 120329 |