summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Support/FileSystem.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix include guards so they exactly match file names.Jakub Staszak2013-01-101-2/+2
| | | | llvm-svn: 172025
* 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 couple of Doxygen comment issues pointed out by -Wdocumentation.Dmitri Gribenko2012-09-121-30/+30
| | | | llvm-svn: 163721
* Make sure macros in the include subdirectory are not used without being defined.Bob Wilson2012-09-041-2/+2
| | | | | | | | | | | | | | | | Rationale: For each preprocessor macro, either the definedness is what's meaningful, or the value is what's meaningful, or both. If definedness is meaningful, we should use #ifdef. If the value is meaningful, we should use and #ifdef interchangeably for the same macro, seems ugly to me, even if undefined macros are zero if used. This also has the benefit that including an LLVM header doesn't prevent you from compiling with -Wundef -Werror. Patch by John Garvin! <rdar://problem/12189979> llvm-svn: 163148
* Fix an assortment of doxygen comment mistakes found by -Wdocumentation.Ted Kremenek2012-08-221-7/+7
| | | | llvm-svn: 162411
* 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/+77
| | | | llvm-svn: 161976
* Fix a typo (the the => the)Sylvestre Ledru2012-07-231-1/+1
| | | | llvm-svn: 160621
* Add permissions(), map_file_pages(), and unmap_file_pages() to llvm::sys::fs ↵Nick Kledzik2012-06-201-2/+92
| | | | | | and add unit test. Unix is implemented. Windows side needs to be implemented. llvm-svn: 158770
* [Support] Add a version of sys::fs::equivalent() that treats errors as false.Daniel Dunbar2012-05-151-0/+7
| | | | llvm-svn: 156864
* Allow unique_file to take a mode for file permissions, but defaultEric Christopher2012-05-111-2/+2
| | | | | | | | to user only read/write. Part of rdar://11325849 llvm-svn: 156591
* Conflict with st_dev/st_ino identifiers under Debian GNU/HurdSylvestre Ledru2012-04-231-2/+2
| | | | | | | | | | | | | The problem is that the struct file_status on UNIX systems has two members called st_dev and st_ino; those are also members of the struct stat, and they are reserved identifiers which can also be provided as #define (and this is the case for st_dev on Hurd). The solution (attached) is to rename them, for example adding a "fs_" prefix (= file status) to them. Patch by Pino Toscano llvm-svn: 155354
* Zap unnecessary semicolons.Eli Friedman2011-12-151-2/+2
| | | | llvm-svn: 146682
* Support/FileSystem: Add file_magic and move a vew clients over to it.Michael J. Spencer2011-12-131-2/+43
| | | | llvm-svn: 146523
* Revert r146363 to allow buildbots to make forward progress.Chad Rosier2011-12-121-6/+2
| | | | | | | 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-1/+20
| | | | llvm-svn: 146364
* Support/FileSystem: Implement canonicalize.Michael J. Spencer2011-12-121-2/+6
| | | | llvm-svn: 146363
* Support/FileSystem: Implement recursive_directory_iterator and makeMichael J. Spencer2011-12-081-32/+130
| | | | | | directory_iterator preserve InputIterator semantics on copy. llvm-svn: 146200
* PathV2: Add simplified version of exists that returns false on error.Michael J. Spencer2011-10-081-0/+7
| | | | llvm-svn: 141450
* Remove unimplemented function prototypes from PathV2. They can be readded ↵Benjamin Kramer2011-09-141-144/+6
| | | | | | | | when someone cares enough. Patch by Aaron Ballman! llvm-svn: 139682
* Add an optional 'bool makeAbsolute' in llvm::sys::fs::unique_file function.Argyrios Kyrtzidis2011-07-281-1/+4
| | | | | | | 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
* Change directory_entry::path() to return a const std::string & instead ofDan Gohman2011-03-011-1/+1
| | | | | | | | a StringRef, for the benefit of clients that want the result as a nul-terminated string. Clients that expect a StringRef will get one via the implicit conversion. llvm-svn: 126784
* Support/PathV2: Add identify_magic.Michael J. Spencer2011-01-151-0/+9
| | | | llvm-svn: 123548
* Support/PathV2: Implement get_magic.Michael J. Spencer2011-01-151-3/+5
| | | | llvm-svn: 123544
* Support/PathV2: Implement has_magic.Michael J. Spencer2010-12-281-1/+1
| | | | llvm-svn: 122587
* Pass StringRefs by value, for consistency.Benjamin Kramer2010-12-171-4/+4
| | | | llvm-svn: 122074
* Support/FileSystem: Change file_status predicate functions that cannot fail toMichael J. Spencer2010-12-091-31/+34
| | | | | | | return their result instead of an error_code. Also add some missing predicate functions. llvm-svn: 121380
* Support/PathV2: Move make_absolute from path to fs.Michael J. Spencer2010-12-071-0/+13
| | | | llvm-svn: 121108
* Support/PathV2: Move current_path from path to fs and fix the Unix ↵Michael J. Spencer2010-12-071-0/+7
| | | | | | | | implementation. Unix bug spotted by Dan Gohman. llvm-svn: 121090
* Fix clang warning: "extra ';' inside a class [-pedantic]".Frits van Bommel2010-12-061-1/+1
| | | | llvm-svn: 120998
* Support/FileSystem: Add directory_iterator implementation.Michael J. Spencer2010-12-061-10/+45
| | | | llvm-svn: 120989
* Support/FileSystem: Add status implementation.Michael J. Spencer2010-12-041-3/+5
| | | | llvm-svn: 120870
* Support/FileSystem: Add unique_file and exists implementations.Michael J. Spencer2010-12-031-7/+9
| | | | llvm-svn: 120776
* Support/FileSystem: Remove temp_directory_path.Michael J. Spencer2010-12-031-8/+0
| | | | llvm-svn: 120775
* Support/PathV2: Split PathV2.h into PathV2.h and FileSystem.h.Michael J. Spencer2010-12-011-0/+625
llvm-svn: 120592
OpenPOWER on IntegriCloud