LLVM 17.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>

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...


namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.


enum class  llvm::atomic_write_error { llvm::failed_to_create_uniq_file = 0 , llvm::output_stream_error , llvm::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.
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.
llvm::Error llvm::writeFileAtomically (StringRef TempPathModel, StringRef FinalPath, std::function< llvm::Error(llvm::raw_ostream &)> Writer)