LLVM  15.0.0git
Classes | Namespaces | Enumerations | Functions
FileUtilities.h File Reference
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/FileSystem.h"
#include <system_error>
Include dependency graph for FileUtilities.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  llvm::FileRemover
 FileRemover - This class is a simple object meant to be stack allocated. More...
class  llvm::AtomicFileWriteError
class  llvm::FilePermissionsApplier
 FilePermssionsApplier helps to copy permissions from an input file to an output one. More...


 This is an optimization pass for GlobalISel generic memory operations.


enum  llvm::atomic_write_error { llvm::atomic_write_error::failed_to_create_uniq_file = 0, llvm::atomic_write_error::output_stream_error, llvm::atomic_write_error::failed_to_rename_temp_file }


int llvm::DiffFilesWithTolerance (StringRef FileA, StringRef FileB, double AbsTol, double RelTol, std::string *Error=nullptr)
 DiffFilesWithTolerance - Compare the two files specified, returning 0 if the files match, 1 if they are different, and 2 if there is a file error. More...
llvm::Error llvm::writeFileAtomically (StringRef TempPathModel, StringRef FinalPath, StringRef Buffer)
 Creates a unique file with name according to the given TempPathModel, writes content of Buffer to the file and renames it to FinalPath. More...
llvm::Error llvm::writeFileAtomically (StringRef TempPathModel, StringRef FinalPath, std::function< llvm::Error(llvm::raw_ostream &)> Writer)